Hello,
I'm experiencing problems getting started with building BB and wondered if someone might be able to advise. Seems that whenever I specify a toolchain prefix it is ignored. E.g.
$make -e CROSS_TOOL_PREFIX=arm-none-linux-gnueabi-
Results in an error:
"configure: error: in `/home/andrew/Work/AB Open/Projects/GSM/Osmocom/osmocom-bb/src/shared/libosmocore/build-target': configure: error: C compiler cannot create executables See `config.log' for more details"
If I check ./shared/libosmocore/build-target/config.log for instances of "arm" these are all still "arm-none-eabi", which I do not have.
The prefix example above was to attempt to use CodeSourcery Lite tools. I've also tried with a prefix of "arm-linux-gnueabi-" to use a toolchain installed from Emdebian via apt-get, and I experience the same problem. Although in searching for a fix I read something which suggested that the Emdebian toolchains may be no use.
So, am I doing something wrong in the first step? And is there perhaps another toolchain I should be using? Apologies if this has already been answered — I have done a bit of searching but only found similar errors where a prefix was not being specified.
Regards,
Andrew
I'm experiencing problems getting started with building BB and wondered if someone might be able to advise. Seems that whenever I specify a toolchain prefix it is ignored. E.g.
$make -e CROSS_TOOL_PREFIX=arm-none-linux-gnueabi-
Try with
make CROSS_HOST=arm-none-linux-gnueabi
Cheers,
Sylvain
Hi Sylvain,
On 4 April 2012 12:53, Sylvain Munaut 246tnt@gmail.com wrote:
I'm experiencing problems getting started with building BB and wondered if someone might be able to advise. Seems that whenever I specify a toolchain prefix it is ignored. E.g.
$make -e CROSS_TOOL_PREFIX=arm-none-linux-gnueabi-
Try with
make CROSS_HOST=arm-none-linux-gnueabi
It now gets further. Additional errors below.
Regards,
Andrew
--
Thread model: posix gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70) configure:3229: $? = 0 configure:3218: arm-none-linux-gnueabi-gcc -V >&5 arm-none-linux-gnueabi-gcc: error: unrecognized option '-V' arm-none-linux-gnueabi-gcc: fatal error: no input files compilation terminated. configure:3229: $? = 1 configure:3218: arm-none-linux-gnueabi-gcc -qversion >&5 arm-none-linux-gnueabi-gcc: error: unrecognized option '-qversion' arm-none-linux-gnueabi-gcc: fatal error: no input files compilation terminated. configure:3229: $? = 1 configure:3249: checking whether the C compiler works configure:3271: arm-none-linux-gnueabi-gcc -Os -ffunction-sections -I/home/andrew/Work/AB Open/Projects/GSM/Osmocom/osmocom-bb/src/target/firmware/include -nostartfiles -nodefaultlibs conftest.c >&5 arm-none-linux-gnueabi-gcc: error: Open/Projects/GSM/Osmocom/osmocom-bb/src/target/firmware/include: No such file or directory configure:3275: $? = 1 configure:3313: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libosmocore" | #define PACKAGE_TARNAME "libosmocore" | #define PACKAGE_VERSION "UNKNOWN" | #define PACKAGE_STRING "libosmocore UNKNOWN" | #define PACKAGE_BUGREPORT "openbsc@lists.osmocom.org" | #define PACKAGE_URL "" | #define PACKAGE "libosmocore" | #define VERSION "UNKNOWN" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3318: error: in `/home/andrew/Work/AB Open/Projects/GSM/Osmocom/osmocom-bb/src/shared/libosmocore/build-target': configure:3320: error: C compiler cannot create executables See `config.log' for more details
## ---------------- ## ## Cache variables. ## ## ---------------- ##
ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-Os -ffunction-sections -I/home/andrew/Work/AB Open/Projects/GSM/Osmocom/osmocom-bb/src/target/firmware/include -nostartfiles -nodefaultlibs' ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=arm-none-linux-gnueabi ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_header_sys_select_h=no ac_cv_header_sys_socket_h=no ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=mawk ac_cv_prog_CC=arm-none-linux-gnueabi-gcc ac_cv_prog_STRIP=arm-none-linux-gnueabi-strip ac_cv_prog_make_make_set=yes
It now gets further. Additional errors below.
It's now official: your toolchain sucks for this purpose.
Build one as described here : http://bb.osmocom.org/trac/wiki/GnuArmToolchain
Cheers,
Sylvain
On 4 April 2012 13:32, Sylvain Munaut 246tnt@gmail.com wrote:
It now gets further. Additional errors below.
It's now official: your toolchain sucks for this purpose.
Build one as described here : http://bb.osmocom.org/trac/wiki/GnuArmToolchain
Thanks for the link. I've done that and was still getting what appeared to be the same error, and then discovered that this could be fixed by building from a different directory. Looks like something doesn't like builds being run from a dir where path has spaces in its name... See "No such file or directory" error where the path has been truncated.
Regards,
Andrew
--
arm-elf-gcc (GCC) 4.5.2 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3229: $? = 0 configure:3218: arm-elf-gcc -v >&5 Using built-in specs. COLLECT_GCC=arm-elf-gcc COLLECT_LTO_WRAPPER=/home/andrew/SW/gnu-arm/install/libexec/gcc/arm-elf/4.5.2/lto-wrapper Target: arm-elf Configured with: /home/andrew/SW/gnu-arm/src/gcc-4.5.2/configure --target=arm-elf --prefix=/home/andrew/SW/gnu-arm/install --enable-interwork --enable-multilib --with-float=soft --disable-werror --enable-languages=c,c++ --with-newlib --with-headers=/home/andrew/SW/gnu-arm/src/newlib-1.19.0/newlib/libc/include --with-system-zlib --disable-shared Thread model: single gcc version 4.5.2 (GCC) configure:3229: $? = 0 configure:3218: arm-elf-gcc -V >&5 arm-elf-gcc: '-V' option must have argument configure:3229: $? = 1 configure:3218: arm-elf-gcc -qversion >&5 arm-elf-gcc: unrecognized option '-qversion' arm-elf-gcc: no input files configure:3229: $? = 1 configure:3249: checking whether the C compiler works configure:3271: arm-elf-gcc -Os -ffunction-sections -I/home/andrew/Work/AB Open/Projects/GSM/Osmocom/osmocom-bb/src/target/firmware/include -nostartfiles -nodefaultlibs conftest.c >&5 arm-elf-gcc: Open/Projects/GSM/Osmocom/osmocom-bb/src/target/firmware/include: No such file or directory configure:3275: $? = 1 configure:3313: result: no | /* confdefs.h */ | #define PACKAGE_NAME "libosmocore" | #define PACKAGE_TARNAME "libosmocore" | #define PACKAGE_VERSION "UNKNOWN" | #define PACKAGE_STRING "libosmocore UNKNOWN" | #define PACKAGE_BUGREPORT "openbsc@lists.osmocom.org" | #define PACKAGE_URL "" | #define PACKAGE "libosmocore" | #define VERSION "UNKNOWN" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3318: error: in `/home/andrew/Work/AB Open/Projects/GSM/Osmocom/osmocom-bb/src/shared/libosmocore/build-target': configure:3320: error: C compiler cannot create executables See `config.log' for more details
--
baseband-devel@lists.osmocom.org