toolchain-script with live-cd

Erich Dachleger edachleger at yahoo.com
Mon Sep 9 14:52:57 UTC 2013


Hi list,

When using the build-toolchain script in the osmocom-bb wiki,which works fine, I sometimes also want to use the obtained toolchain on a live cd, with same OS.

When I try to build the script on the live-cd I run out of space so I thougt it would be easy to just copy the the script built on first disk by issuing

cp -r /root/dublin/install/* /root/copyfile

and then


tar cf name.tar copyfile/ && bzip2 name.tar


Here dublin is the original folder where the full toolchain resulting from osmocombb buildscript, http://bb.osmocom.org/trac/wiki/GnuArmToolchain,  is placed.

name.tar.bz2 is then copied onto the live-cd, decompressed into copyfile, but compiling osmocombb fails.

I suspect I introduce errors when copying /root/dublin/install/* onto copyfile since that command is omitting files(such as binutils)and some directories, from the original directory, but copying the full original directory osmocombb-buildscript directory dublin would lead to lack of disc-space in the live-cd.  Somebody on the list noted in March that a simple chmod 777 /root/copyfile would fix it, but in my case it does not work. When I used the old now removed) toolchain available as tarball on the osmocombb-website about 7 months ago it worked to build on a live cd using that tooldchain, but maybe it is not possible to use the toolchain from the buildscript on such media as an OS booted from a live cd?

/regards erich


----------------------------------------------------------------------------------------------------------

some error message from running osmocom-bb/src/make  on the live-cd:


cd shared/libosmocore/build-target && ../configure \
                        --host=arm-elf --enable-embedded --disable-shared \
                        --disable-tests ac_cv_header_sys_select_h=no \
                        --disable-tests ac_cv_header_sys_socket_h=no \
                CFLAGS="-Os -ffunction-sections -I/root/osmocom-bb/src/target/firmware/include -nostartfiles
 -nodefaultlibs"
configure: WARNING: unrecognized options: --disable-tests, --disable-tests
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... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-elf-strip... arm-elf-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-gcc... arm-elf-gcc
checking whether the C compiler works... no
configure: error: in `/root/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

-------------------------------------------------------------------------------------
also on live-cd:

root at bt:~# arm-elf-gcc -v
Using built-in specs.
COLLECT_GCC=arm-elf-gcc
COLLECT_LTO_WRAPPER=/root/apple/bin/../libexec/gcc/arm-elf/4.5.2/lto-wrapper
Target: arm-elf
Configured
 with: /root/dublin/src/gcc-4.5.2/configure --target=arm-elf 
--prefix=/root/dublin/install --enable-interwork --enable-multilib 
--with-float=soft --disable-werror --enable-languages=c,c++ 
--with-newlib 
--with-headers=/root/dublin/src/newlib-1.19.0/newlib/libc/include 
--with-system-zlib --disable-shared
Thread model: single
gcc version 4.5.2 (GCC) 

-----------------------------------------------------------------------------------------
Some content of osmocom-bb-buildscript on original disk where building of osmocombb works:

root at bt:~/dublin# ls -a
.  ..  build  gnu-arm-build.2.sh  install  src
root at bt:~/dublin# cd build
root at bt:~/dublin/build# ls -a
.  ..  binutils-2.21.1  gcc-4.5.2  newlib-1.19.0
root at bt:~/dublin/build# cd ..
root at bt:~/dublin# ls -a
.  ..  build  gnu-arm-build.2.sh  install  src
root at bt:~/dublin# cd src
root at bt:~/dublin/src# ls -a
.  ..  binutils-2.21.1  binutils-2.21.1a.tar.bz2  gcc-4.5.2  gcc-4.5.2.tar.bz2  newlib-1.19.0  newlib-1.19.0.tar.gz
root at bt:~/dublin/src# cd ..
root at bt:~/dublin# clear
root at bt:~/dublin# ls -a
.  ..  build  gnu-arm-build.2.sh  install  src
root at bt:~/dublin# cd build
root at bt:~/dublin/build# ls -a
.  .. 
 binutils-2.21.1  gcc-4.5.2  newlib-1.19.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/baseband-devel/attachments/20130909/d66c1528/attachment.html>


More information about the baseband-devel mailing list