Hi All,
I now have a V171 phone and cable so I thought I might get started with this.
I checked out the code and started make. Osmocon built with no problem, but I got this error next:
cd shared/libosmocore/build-target && ../configure \ --host=arm-elf-linux --disable-vty --enable-panic-infloop \ --disable-shared --disable-talloc --disable-tests \ CC="arm-elf-gcc" CFLAGS="-Os -ffunction-sections -I../../../../target/firmware/include" 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 for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for arm-elf-linux-strip... no checking for strip... strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make sets $(MAKE)... (cached) yes checking for arm-elf-linux-gcc... arm-elf-gcc checking whether the C compiler works... no configure: error: in `/mnt/site/osmocom-bb/src/shared/libosmocore/build-target': configure: error: C compiler cannot create executables See `config.log' for more details make: *** [shared/libosmocore/build-target/Makefile] Error 77
Checking config.log I can see it chokes here:
/usr/bin/arm-elf-ld: this linker was not configured to use sysroots collect2: ld returned 1 exit status
I am running Arch Linux and have the packages cross-arm-elf-binutils and cross-arm-elf-gcc-base installed. Does anyone have any suggestions to fix this?
Thanks!
Scott Weisman wrote:
/usr/bin/arm-elf-ld: this linker was not configured to use sysroots collect2: ld returned 1 exit status
As always, it would be helpful to also see the last few commands that were executed, to get more context.
I am running Arch Linux and have the packages cross-arm-elf-binutils and cross-arm-elf-gcc-base installed. Does anyone have any suggestions to fix this?
Mh. My guess is that toolchain is intended for building Linux systems, or in any case building "systems" with some packaging support, and intent to install into a root filesystem - as opposed to just cross-compiling bare metal sources with no filesystem ever involved..
I assume you've googled for arch and this error and have found https://bbs.archlinux.org/viewtopic.php?id=62644 - and since you're an Arch user maybe you already know what PKGBUILD and ABS are and how they are intended to operate. (I've never used Arch, but I guess ABS is Arch Build System, which might support my other guess that your toolchain is just not suitable for building osmocom-bb.)
//Peter
This is very useful info. Thanks! I will look into building my own toolchain then.
I'm looking forward to playing around with this.
Scott
On Tue, Aug 31, 2010 at 5:04 PM, Peter Stuge peter@stuge.se wrote:
Scott Weisman wrote:
/usr/bin/arm-elf-ld: this linker was not configured to use sysroots collect2: ld returned 1 exit status
As always, it would be helpful to also see the last few commands that were executed, to get more context.
I am running Arch Linux and have the packages cross-arm-elf-binutils and cross-arm-elf-gcc-base installed. Does anyone have any suggestions to fix this?
Mh. My guess is that toolchain is intended for building Linux systems, or in any case building "systems" with some packaging support, and intent to install into a root filesystem - as opposed to just cross-compiling bare metal sources with no filesystem ever involved..
I assume you've googled for arch and this error and have found https://bbs.archlinux.org/viewtopic.php?id=62644 - and since you're an Arch user maybe you already know what PKGBUILD and ABS are and how they are intended to operate. (I've never used Arch, but I guess ABS is Arch Build System, which might support my other guess that your toolchain is just not suitable for building osmocom-bb.)
//Peter
Hi Scott
If you're still not able to build osmocomBB on Arch Linux try to install the packeges cross-arm-elf-gcc and cross-arm-elf-newlib from AUR. It worked for me, so give it a try.
Regards, Michael
2010/8/31 Scott Weisman sweisman@pobox.com:
This is very useful info. Thanks! I will look into building my own toolchain then.
I'm looking forward to playing around with this. Scott On Tue, Aug 31, 2010 at 5:04 PM, Peter Stuge peter@stuge.se wrote:
Scott Weisman wrote:
/usr/bin/arm-elf-ld: this linker was not configured to use sysroots collect2: ld returned 1 exit status
As always, it would be helpful to also see the last few commands that were executed, to get more context.
I am running Arch Linux and have the packages cross-arm-elf-binutils and cross-arm-elf-gcc-base installed. Does anyone have any suggestions to fix this?
Mh. My guess is that toolchain is intended for building Linux systems, or in any case building "systems" with some packaging support, and intent to install into a root filesystem - as opposed to just cross-compiling bare metal sources with no filesystem ever involved..
I assume you've googled for arch and this error and have found https://bbs.archlinux.org/viewtopic.php?id=62644 - and since you're an Arch user maybe you already know what PKGBUILD and ABS are and how they are intended to operate. (I've never used Arch, but I guess ABS is Arch Build System, which might support my other guess that your toolchain is just not suitable for building osmocom-bb.)
//Peter
baseband-devel@lists.osmocom.org