Skip to content

Instantly share code, notes, and snippets.

@kellydunn
Last active December 29, 2015 06:39
Show Gist options
  • Save kellydunn/7630766 to your computer and use it in GitHub Desktop.
Save kellydunn/7630766 to your computer and use it in GitHub Desktop.
Attempts to cross compile libsndfile for teensy3
// Configure step
$ CC=arm-none-eabi-gcc ./configure --host=arm-none-eabi
configure: WARNING: if you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-none-eabi
checking target system type... arm-none-eabi
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-none-eabi-strip... arm-none-eabi-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-none-eabi-gcc... arm-none-eabi-gcc
checking whether the C compiler works... no
configure: error: in `/home/kelly/Downloads/libsndfile-1.0.25':
configure: error: C compiler cannot create executables
See `config.log' for more details
// Error message in config.log
gcc version 4.7.2 (PJRC Build of GNU Toolchain from CodeSourcery)
configure:3702: $? = 0
configure:3691: arm-none-eabi-gcc -V >&5
arm-none-eabi-gcc: error: unrecognized command line option '-V'
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.
configure:3702: $? = 1
configure:3691: arm-none-eabi-gcc -qversion >&5
arm-none-eabi-gcc: error: unrecognized command line option '-qversion'
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.
configure:3702: $? = 1
configure:3722: checking whether the C compiler works
configure:3744: arm-none-eabi-gcc conftest.c >&5
arm-none-eabi-gcc: fatal error: selected multilib '.' not installed
compilation terminated.
configure:3748: $? = 1
configure:3786: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libsndfile"
| #define PACKAGE_TARNAME "libsndfile"
| #define PACKAGE_VERSION "1.0.25"
| #define PACKAGE_STRING "libsndfile 1.0.25"
| #define PACKAGE_BUGREPORT "sndfile@mega-nerd.com"
| #define PACKAGE_URL "http://www.mega-nerd.com/libsndfile/"
| #define PACKAGE "libsndfile"
| #define VERSION "1.0.25"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3791: error: in `/home/kelly/Downloads/libsndfile-1.0.25':
configure:3793: error: C compiler cannot create executables
See `config.log' for more details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment