<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><div>Hi list,</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">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.</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">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</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">cp -r /root/dublin/install/* /root/copyfile</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">and then<br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family:
 times new roman,new york,times,serif; background-color: transparent; font-style: normal;">tar cf name.tar copyfile/ && bzip2 name.tar</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Here dublin is the original folder where the full toolchain resulting from osmocombb buildscript, http://bb.osmocom.org/trac/wiki/GnuArmToolchain,  is placed.</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style:
 normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">name.tar.bz2 is then copied onto the live-cd, decompressed into copyfile, but compiling osmocombb fails.</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">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?</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">/regards erich<br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new
 roman,new york,times,serif; background-color: transparent; font-style: normal;">----------------------------------------------------------------------------------------------------------<br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">some error message from running osmocom-bb/src/make  on the live-cd:<br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">cd shared/libosmocore/build-target && ../configure \<br>                       
 --host=arm-elf --enable-embedded --disable-shared \<br>                        --disable-tests ac_cv_header_sys_select_h=no \<br>                        --disable-tests ac_cv_header_sys_socket_h=no \<br>                CFLAGS="-Os -ffunction-sections -I/root/osmocom-bb/src/target/firmware/include -nostartfiles
 -nodefaultlibs"<br>configure: WARNING: unrecognized options: --disable-tests, --disable-tests<br>configure: WARNING: If you wanted to set the --build type, don't use --host.<br>    If a cross compiler is detected then cross compile mode will be used.<br>checking for a BSD-compatible install... /usr/bin/install -c<br>checking whether build environment is sane... yes<br>checking for arm-elf-strip... arm-elf-strip<br>checking for a thread-safe mkdir -p... /bin/mkdir -p<br>checking for gawk... gawk<br>checking whether make sets $(MAKE)... yes<br>checking whether make sets $(MAKE)... (cached) yes<br>checking for arm-elf-gcc... arm-elf-gcc<br>checking whether the C compiler works... no<br>configure: error: in `/root/osmocom-bb/src/shared/libosmocore/build-target':<br>configure: error: C compiler cannot create executables<br>See `config.log' for more details.<br>make: *** [shared/libosmocore/build-target/Makefile] Error
 77</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">-------------------------------------------------------------------------------------</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">also on live-cd:<br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">root@bt:~# arm-elf-gcc -v<br>Using built-in specs.<br>COLLECT_GCC=arm-elf-gcc<br>COLLECT_LTO_WRAPPER=/root/apple/bin/../libexec/gcc/arm-elf/4.5.2/lto-wrapper<br>Target: arm-elf<br>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<br>Thread model: single<br>gcc version 4.5.2 (GCC) <br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">-----------------------------------------------------------------------------------------</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Some content of osmocom-bb-buildscript on original disk where building of osmocombb works:</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">root@bt:~/dublin# ls -a<br>. 
 ..  build  gnu-arm-build.2.sh  install  src<br>root@bt:~/dublin# cd build<br>root@bt:~/dublin/build# ls -a<br>.  ..  binutils-2.21.1  gcc-4.5.2  newlib-1.19.0<br>root@bt:~/dublin/build# cd ..<br>root@bt:~/dublin# ls -a<br>.  ..  build  gnu-arm-build.2.sh  install  src<br>root@bt:~/dublin# cd src<br>root@bt:~/dublin/src# ls -a<br>.  ..  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<br>root@bt:~/dublin/src# cd ..<br>root@bt:~/dublin# clear<br>root@bt:~/dublin# ls -a<br>.  ..  build  gnu-arm-build.2.sh  install  src<br>root@bt:~/dublin# cd build<br>root@bt:~/dublin/build# ls -a<br>.  .. 
 binutils-2.21.1  gcc-4.5.2  newlib-1.19.0</div></div></body></html>