NSLU2-Linux
view · edit · print · history

Info.NativeNSLU2Toolchain History

Hide minor edits - Show changes to markup

January 22, 2005, at 10:26 PM by ChristianLescuyer --
Added lines 155-157:

6th Note: Coreutils should be installed before building make. (./configure relies on uname.)

January 20, 2005, at 01:16 AM by DaveHooper --
Changed line 106 from:
 echo "export LDFLAGS=\"-L /usr/local/lib\"" >>/share/hdd/data/tools/setup.sh
to:
 echo "export LDFLAGS=\"-L/usr/local/lib\"" >>/share/hdd/data/tools/setup.sh
January 20, 2005, at 12:55 AM by DaveHooper --
Changed line 106 from:
 echo "export LDFLAGS=\"-L /lib -L /opt/lib -L /usr/lib -L /usr/local/lib -L /share/hdd/data/tools/gcc/armv5b-softfloat-linux/lib\"" >>/share/hdd/data/tools/setup.sh
to:
 echo "export LDFLAGS=\"-L /usr/local/lib\"" >>/share/hdd/data/tools/setup.sh
Changed line 153 from:

5th Note: I added /usr/lib and /usr/local/lib to LD_LIBRARY_PATH, as well as LDFLAGS, to setup.sh to fix link errors when libraries have been installed to e.g. /usr/local/lib . It's maybe generally unnecessary but seems to be solving some problems for me (e.g. building libvorbis)

to:

5th Note: I added /usr/local/lib to LD_LIBRARY_PATH, as well as LDFLAGS, to setup.sh to fix link errors when libraries have been installed to e.g. /usr/local/lib . It's maybe generally unnecessary but seems to be solving some problems for me (e.g. building libvorbis)

January 20, 2005, at 12:27 AM by DaveHooper --
Changed lines 105-107 from:
 echo "export LD_LIBRARY_PATH=/lib:/opt/lib:/share/hdd/data/tools/gcc/armv5b-softfloat-linux/lib" >>/share/hdd/data/tools/setup.sh
 echo "export LD_RUN_PATH=$LD_LIBRARY_PATH" >>/share/hdd/data/tools/setup.sh
 echo "export C_INCLUDE_PATH=/share/hdd/data/tools/gcc/include:/share/hdd/data/tools/gcc/armv5b-softfloat-linux/include:/share/hdd/data/tools/gcc/armv5b-softfloat-linux/sys-include" >>/share/hdd/data/tools/setup.sh
to:
 echo "export LD_LIBRARY_PATH=/lib:/opt/lib:/usr/lib:/usr/local/lib:/share/hdd/data/tools/gcc/armv5b-softfloat-linux/lib" >>/share/hdd/data/tools/setup.sh
 echo "export LDFLAGS=\"-L /lib -L /opt/lib -L /usr/lib -L /usr/local/lib -L /share/hdd/data/tools/gcc/armv5b-softfloat-linux/lib\"" >>/share/hdd/data/tools/setup.sh
 echo "export C_INCLUDE_PATH=/usr/include:/usr/local/include:/share/hdd/data/tools/gcc/include:/share/hdd/data/tools/gcc/armv5b-softfloat-linux/include:/share/hdd/data/tools/gcc/armv5b-softfloat-linux/sys-include" >>/share/hdd/data/tools/setup.sh
Changed line 153 from:

5th Note: I added LD_RUN_PATH to setup.sh (==LD_LIBRARY_PATH) to fix link errors when libraries have been installed to e.g. /usr/local/lib . It's probably unnecessary but seems to be solving some problems for me.

to:

5th Note: I added /usr/lib and /usr/local/lib to LD_LIBRARY_PATH, as well as LDFLAGS, to setup.sh to fix link errors when libraries have been installed to e.g. /usr/local/lib . It's maybe generally unnecessary but seems to be solving some problems for me (e.g. building libvorbis)

January 19, 2005, at 11:08 PM by DaveHooper --
Added lines 151-154:

5th Note: I added LD_RUN_PATH to setup.sh (==LD_LIBRARY_PATH) to fix link errors when libraries have been installed to e.g. /usr/local/lib . It's probably unnecessary but seems to be solving some problems for me. DaveHooper?

January 19, 2005, at 11:06 PM by DaveHooper --
Changed line 28 from:

Be sure to export C_INCLUDE_PATH once it is set to avoid compile time errors.

to:

Be sure to export C_INCLUDE_PATH once it is set to avoid compile time errors. You will probably also need to export LD_LIBRARY_PATH and/or LD_RUN_PATH also, if you need to be able to link to locally built libs

Added line 106:
 echo "export LD_RUN_PATH=$LD_LIBRARY_PATH" >>/share/hdd/data/tools/setup.sh
January 19, 2005, at 02:41 PM by rwhitby --
Changed lines 1-3 from:

Note that this native toolchain is an externally contributed item, and is not supported by the Unslung or OpenSlug development teams. Please address any questions or bugs to the original contributor (gullc at phys.ethz.ch).

to:

Note that the Unslung development team uses the native toolchain which is built by crosstool-native.mk in the Unslung CVS repository. See NativelyCompileUnslungPackages for more details.

Note that the following native toolchain is an externally contributed item, and is not supported by the Unslung or OpenSlug development teams. Please address any questions or bugs to the original contributor (gullc at phys.ethz.ch).

January 18, 2005, at 11:28 PM by DaveHooper --
Changed line 13 from:

The download is very slow, so try using the Coralized link which caches the file. It may well download much faster once it has been Coralized.

to:

The download is very slow, so try using the Coralized link which caches the file. It may well download much faster once it has been Coralized. Or it might not (some people have found that the Coralized link delivers less than 1KB/s, but the original link delivers >100KB/s)

Added line 15:

Coralized link

Added lines 17-20:

Non-coralized link http://n.ethz.ch/student/gullc/download/gcc-3.3.4-glibc-2.2.5.tar.gz

January 04, 2005, at 12:32 PM by tlhackque --
Added lines 136-142:

Just a brief "Thank you" for the corrections. I apologize for the errors; actually, I had fixed them, but posted the wrong version by mistake. In any case, I hope that the automation has been helpful to others.

 --tlhackque 
December 30, 2004, at 02:32 AM by timdau --
Changed line 119 from:
 /opt/bin/sh build-fixed.sh
to:
 /bin/sh build-fixed.sh
Added lines 134-135:

4th Note: Corrected script - changed "/opt/bin/sh build-fixed.sh" to "/bin/sh build-fixed.sh". It is our shell environment after all.

December 22, 2004, at 02:24 PM by krki --
Changed lines 110-111 from:
 bunzip2 make-3.80.tar.bz2
 tar -xf make-3.80.tar -C /share/hdd/data/tools && rm /share/hdd/data/tools/make-3.80.tar && rm make-3.80.tar.bz2
to:
 bunzip2 /share/hdd/data/tools/make-3.80.tar.bz2
 tar -xf /share/hdd/data/tools/make-3.80.tar -C /share/hdd/data/tools && rm /share/hdd/data/tools/make-3.80.tar && rm make-3.80.tar.bz2
December 22, 2004, at 10:06 AM by krki --
Changed line 65 from:
 tar -xzf native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz -C /share/hdd/data/tools && rm /share/hdd/data/tools/native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz
to:
 tar -xzf /share/hdd/data/tools/native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz -C /share/hdd/data/tools && rm /share/hdd/data/tools/native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz
December 22, 2004, at 02:49 AM by krki --
Deleted lines 133-214:

What is wrong? Configuring to build make. Please be patient checking for a BSD-compatible install... config/install-sh -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... no checking whether make sets ${MAKE}... make: No such file or directory no checking whether make sets ${MAKE}... (cached) no checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... make: No such file or directory make: No such file or directory none checking dependency style of gcc... make: No such file or directory make: No such file or directory make: No such file or directory none checking for a BSD-compatible install... config/install-sh -c checking for ranlib... ranlib checking how to run the C preprocessor... gcc -E checking for ar... ar checking for perl... perl checking build system type... Warning: creating insecure temp directory config/config.guess: unable to guess system type

This script, last modified 2004-06-11, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from

    ftp://ftp.gnu.org/pub/gnu/config/

If the version you run (config/config.guess) is already up to date, please send the following data and any information you think might be pertinent to <config-patches@gnu.org> in order to provide the needed information to handle your system.

config.guess timestamp = 2004-06-11

uname -m = unknown uname -r = unknown uname -s = unknown uname -v = unknown

/usr/bin/uname -p = /bin/uname -X =

hostinfo = /bin/universe = /usr/bin/arch -k = /bin/arch = /usr/bin/oslevel = /usr/convex/getsysinfo =

UNAME_MACHINE = unknown UNAME_RELEASE = unknown UNAME_SYSTEM = unknown UNAME_VERSION = unknown configure: error: cannot guess build type; you must specify one Patching make sed: build.sh: No such file or directory Building make. More patience is required... /setup_tools: /opt/bin/sh: No such file or directory strip: 'make': No such file Build complete, installing make mv: make: No such file or directory Tools environment is now setup. Please add . /share/hdd/data/tools/setup.sh to your .profile

December 22, 2004, at 02:46 AM by krki --
Changed lines 133-215 from:

3rd Note: Corrected script - added missing "/bin" in ln lines, and changed "s/@REMOTE@/stub" to "s/@REMOTE@/stub/"

to:

3rd Note: Corrected script - added missing "/bin" in ln lines, and changed "s/@REMOTE@/stub" to "s/@REMOTE@/stub/"

What is wrong? Configuring to build make. Please be patient checking for a BSD-compatible install... config/install-sh -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... no checking whether make sets ${MAKE}... make: No such file or directory no checking whether make sets ${MAKE}... (cached) no checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... make: No such file or directory make: No such file or directory none checking dependency style of gcc... make: No such file or directory make: No such file or directory make: No such file or directory none checking for a BSD-compatible install... config/install-sh -c checking for ranlib... ranlib checking how to run the C preprocessor... gcc -E checking for ar... ar checking for perl... perl checking build system type... Warning: creating insecure temp directory config/config.guess: unable to guess system type

This script, last modified 2004-06-11, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from

    ftp://ftp.gnu.org/pub/gnu/config/

If the version you run (config/config.guess) is already up to date, please send the following data and any information you think might be pertinent to <config-patches@gnu.org> in order to provide the needed information to handle your system.

config.guess timestamp = 2004-06-11

uname -m = unknown uname -r = unknown uname -s = unknown uname -v = unknown

/usr/bin/uname -p = /bin/uname -X =

hostinfo = /bin/universe = /usr/bin/arch -k = /bin/arch = /usr/bin/oslevel = /usr/convex/getsysinfo =

UNAME_MACHINE = unknown UNAME_RELEASE = unknown UNAME_SYSTEM = unknown UNAME_VERSION = unknown configure: error: cannot guess build type; you must specify one Patching make sed: build.sh: No such file or directory Building make. More patience is required... /setup_tools: /opt/bin/sh: No such file or directory strip: 'make': No such file Build complete, installing make mv: make: No such file or directory Tools environment is now setup. Please add . /share/hdd/data/tools/setup.sh to your .profile

December 13, 2004, at 07:48 PM by polkadotninja --
Changed line 117 from:
 sed -e 's/@REMOTE@/stub' build.sh > build-fixed.sh
to:
 sed -e 's/@REMOTE@/stub/' build.sh > build-fixed.sh
December 13, 2004, at 07:47 PM by polkadotninja --
Changed lines 72-92 from:
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-addr2line /share/hdd/data/tools/gcc/addr2line
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-ar /share/hdd/data/tools/gcc/ar
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-as /share/hdd/data/tools/gcc/as
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-c++ /share/hdd/data/tools/gcc/c++
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-c++filt //share/hdd/data/tools/gcc/c++filt
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-cpp /share/hdd/data/tools/gcc/cpp
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-g++ /share/hdd/data/tools/gcc/g++
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-gcc /share/hdd/data/tools/gcc/gcc
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-gcc-3.3.4 /share/hdd/data/tools/gcc/gcc-3.3.4
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-gccbug /share/hdd/data/tools/gcc/gccbug
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-gcov /share/hdd/data/tools/gcc/gcov
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-gprof /share/hdd/data/tools/gcc/gprof
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-ld /share/hdd/data/tools/gcc/ld
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-nm /share/hdd/data/tools/gcc/nm
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-objcopy /share/hdd/data/tools/gcc/objcopy
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-objdump /share/hdd/data/tools/gcc/objdump
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-ranlib /share/hdd/data/tools/gcc/ranlib
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-readelf /share/hdd/data/tools/gcc/readelf
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-size /share/hdd/data/tools/gcc/size
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-strings /share/hdd/data/tools/gcc/strings
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-strip /share/hdd/data/tools/gcc/strip
to:
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-addr2line /share/hdd/data/tools/gcc/bin/addr2line
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-ar /share/hdd/data/tools/gcc/bin/ar
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-as /share/hdd/data/tools/gcc/bin/as
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-c++ /share/hdd/data/tools/gcc/bin/c++
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-c++filt //share/hdd/data/tools/gcc/bin/c++filt
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-cpp /share/hdd/data/tools/gcc/bin/cpp
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-g++ /share/hdd/data/tools/gcc/bin/g++
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-gcc /share/hdd/data/tools/gcc/bin/gcc
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-gcc-3.3.4 /share/hdd/data/tools/gcc/bin/gcc-3.3.4
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-gccbug /share/hdd/data/tools/gcc/bin/gccbug
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-gcov /share/hdd/data/tools/gcc/bin/gcov
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-gprof /share/hdd/data/tools/gcc/bin/gprof
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-ld /share/hdd/data/tools/gcc/bin/ld
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-nm /share/hdd/data/tools/gcc/bin/nm
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-objcopy /share/hdd/data/tools/gcc/bin/objcopy
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-objdump /share/hdd/data/tools/gcc/bin/objdump
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-ranlib /share/hdd/data/tools/gcc/bin/ranlib
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-readelf /share/hdd/data/tools/gcc/bin/readelf
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-size /share/hdd/data/tools/gcc/bin/size
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-strings /share/hdd/data/tools/gcc/bin/strings
 ln -sf /share/hdd/data/tools/gcc/bin/armv5b-softfloat-linux-strip /share/hdd/data/tools/gcc/bin/strip
Changed lines 131-133 from:

2nd Note: Corrected script - in multiple places, "/share/data/hdd/..." was corrected to "/share/hdd/data/..."

to:

2nd Note: Corrected script - in multiple places, "/share/data/hdd/..." was corrected to "/share/hdd/data/..."

3rd Note: Corrected script - added missing "/bin" in ln lines, and changed "s/@REMOTE@/stub" to "s/@REMOTE@/stub/"

December 12, 2004, at 08:27 PM by Ewan --
Changed line 32 from:

Copy the toolset .gz file (from http://n.ethz.ch.nyud.net:8090/student/gullc/download/gcc-3.3.4-glibc-2.2.5.tar.gz http://n.ethz.ch.nyud.net:8090/student/gullc/download/gcc-3.3.4-glibc-2.2.5.tar.gz) to /share/hdd/data/tools.native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz

to:

Copy the toolset .gz file (from http://n.ethz.ch.nyud.net:8090/student/gullc/download/gcc-3.3.4-glibc-2.2.5.tar.gz http://n.ethz.ch.nyud.net:8090/student/gullc/download/gcc-3.3.4-glibc-2.2.5.tar.gz) to /share/hdd/data/tools/native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz

December 08, 2004, at 04:58 AM by ByronT --
Changed line 61 from:
 echo "Please copy native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz to /share/data/hdd/tools"
to:
 echo "Please copy native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz to /share/hdd/data/tools"
Changed line 65 from:
 tar -xzf native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz -C /share/data/hdd/tools && rm /share/data/hdd/tools/native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz
to:
 tar -xzf native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz -C /share/hdd/data/tools && rm /share/hdd/data/tools/native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz
Changed line 70 from:
 ln -sf /share/data/hdd/tools/gcc-3.3.4-glibc-2.2.5 /share/data/hdd/tools/gcc
to:
 ln -sf /share/hdd/data/tools/gcc-3.3.4-glibc-2.2.5 /share/hdd/data/tools/gcc
Changed lines 72-92 from:
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-addr2line /share/data/hdd/tools/gcc/addr2line
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-ar /share/data/hdd/tools/gcc/ar
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-as /share/data/hdd/tools/gcc/as
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-c++ /share/data/hdd/tools/gcc/c++
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-c++filt /share/data/hdd/tools/gcc/c++filt
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-cpp /share/data/hdd/tools/gcc/cpp
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-g++ /share/data/hdd/tools/gcc/g++
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-gcc /share/data/hdd/tools/gcc/gcc
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-gcc-3.3.4 /share/data/hdd/tools/gcc/gcc-3.3.4
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-gccbug /share/data/hdd/tools/gcc/gccbug
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-gcov /share/data/hdd/tools/gcc/gcov
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-gprof /share/data/hdd/tools/gcc/gprof
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-ld /share/data/hdd/tools/gcc/ld
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-nm /share/data/hdd/tools/gcc/nm
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-objcopy /share/data/hdd/tools/gcc/objcopy
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-objdump /share/data/hdd/tools/gcc/objdump
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-ranlib /share/data/hdd/tools/gcc/ranlib
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-readelf /share/data/hdd/tools/gcc/readelf
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-size /share/data/hdd/tools/gcc/size
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-strings /share/data/hdd/tools/gcc/strings
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-strip /share/data/hdd/tools/gcc/strip
to:
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-addr2line /share/hdd/data/tools/gcc/addr2line
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-ar /share/hdd/data/tools/gcc/ar
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-as /share/hdd/data/tools/gcc/as
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-c++ /share/hdd/data/tools/gcc/c++
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-c++filt //share/hdd/data/tools/gcc/c++filt
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-cpp /share/hdd/data/tools/gcc/cpp
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-g++ /share/hdd/data/tools/gcc/g++
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-gcc /share/hdd/data/tools/gcc/gcc
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-gcc-3.3.4 /share/hdd/data/tools/gcc/gcc-3.3.4
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-gccbug /share/hdd/data/tools/gcc/gccbug
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-gcov /share/hdd/data/tools/gcc/gcov
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-gprof /share/hdd/data/tools/gcc/gprof
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-ld /share/hdd/data/tools/gcc/ld
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-nm /share/hdd/data/tools/gcc/nm
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-objcopy /share/hdd/data/tools/gcc/objcopy
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-objdump /share/hdd/data/tools/gcc/objdump
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-ranlib /share/hdd/data/tools/gcc/ranlib
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-readelf /share/hdd/data/tools/gcc/readelf
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-size /share/hdd/data/tools/gcc/size
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-strings /share/hdd/data/tools/gcc/strings
 ln -sf /share/hdd/data/tools/gcc/armv5b-softfloat-linux-strip /share/hdd/data/tools/gcc/strip
Changed line 111 from:
 tar -xf make-3.80.tar -C /share/data/hdd/tools && rm /share/data/hdd/tools/make-3.80.tar && rm make-3.80.tar.bz2
to:
 tar -xf make-3.80.tar -C /share/hdd/data/tools && rm /share/hdd/data/tools/make-3.80.tar && rm make-3.80.tar.bz2
Changed line 113 from:
 cd /share/data/hdd/tools/make-3.80
to:
 cd /share/hdd/data/tools/make-3.80
Changed lines 129-131 from:

Note: As usual, remove the singe space at the front of each line. Also, note that some lines are very long; don't wrap!.

to:

Note: As usual, remove the single space at the front of each line. Also, note that some lines are very long; don't wrap!.

2nd Note: Corrected script - in multiple places, "/share/data/hdd/..." was corrected to "/share/hdd/data/..."

December 06, 2004, at 10:45 AM by tlhackque --
Changed line 44 from:

Disclaimer: Providing this script does not consitute "support."

to:

Disclaimer: Providing this script does not constitute "support."

December 06, 2004, at 01:26 AM by tlhackque --
Added lines 22-129:

Some folks have had trouble with this. I've had some success, including building a very large package. Time to share the technique.

This work based on the above, and BuildGNUMakeOnYourNSLU2Box.

Here are some scripts that may help with setup and use:

This one copies the tools (I renamed the .gz file to keep it straight - too many toolsets is confusing).

Copy the toolset .gz file (from http://n.ethz.ch.nyud.net:8090/student/gullc/download/gcc-3.3.4-glibc-2.2.5.tar.gz http://n.ethz.ch.nyud.net:8090/student/gullc/download/gcc-3.3.4-glibc-2.2.5.tar.gz) to /share/hdd/data/tools.native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz

Copy make from ftp://ftp.gnu.org/pub/gnu/make/make-3.80.tar.bz2 ftp://ftp.gnu.org/pub/gnu/make/make-3.80.tar.bz2 to /share/hdd/data/tools

Then run this script. It will install the toolchain and make. Eventually. It takes quite a while.

It will also create /share/hdd/data/tools/setup.sh, which you should source (.) in your .profile.

I suppose one could delete the build files, but it seems like work, and disk space is cheap. I leave that as an exercise to the reader.

That's as automated as I could make it.

Disclaimer: Providing this script does not consitute "support."

Enjoy,

    --tlhackque

setup_tools

 #! /bin/sh
 echo "Setup for native tools on NSLU2"

 if [ ! -d /share/hdd/data/tools ]; then
 echo "Creating tools directory /share/hdd/data/tools"
 mkdir /share/hdd/data/tools
 return 0
 fi

 if [ ! -d /share/hdd/data/tools/gcc-3.3-4-glibc-2.2.5 ]; then
 if [ ! -e /share/hdd/data/tools/native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz ]; then
 echo "Please copy native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz to /share/data/hdd/tools"
 return 0
 fi
 echo "Installing native tools"
 tar -xzf native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz -C /share/data/hdd/tools && rm /share/data/hdd/tools/native-arm-gcc-3.3.4-glibc-2.2.5.tar.gz
 fi

 echo "Creating links"

 ln -sf /share/data/hdd/tools/gcc-3.3.4-glibc-2.2.5 /share/data/hdd/tools/gcc

 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-addr2line /share/data/hdd/tools/gcc/addr2line
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-ar /share/data/hdd/tools/gcc/ar
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-as /share/data/hdd/tools/gcc/as
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-c++ /share/data/hdd/tools/gcc/c++
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-c++filt /share/data/hdd/tools/gcc/c++filt
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-cpp /share/data/hdd/tools/gcc/cpp
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-g++ /share/data/hdd/tools/gcc/g++
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-gcc /share/data/hdd/tools/gcc/gcc
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-gcc-3.3.4 /share/data/hdd/tools/gcc/gcc-3.3.4
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-gccbug /share/data/hdd/tools/gcc/gccbug
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-gcov /share/data/hdd/tools/gcc/gcov
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-gprof /share/data/hdd/tools/gcc/gprof
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-ld /share/data/hdd/tools/gcc/ld
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-nm /share/data/hdd/tools/gcc/nm
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-objcopy /share/data/hdd/tools/gcc/objcopy
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-objdump /share/data/hdd/tools/gcc/objdump
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-ranlib /share/data/hdd/tools/gcc/ranlib
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-readelf /share/data/hdd/tools/gcc/readelf
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-size /share/data/hdd/tools/gcc/size
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-strings /share/data/hdd/tools/gcc/strings
 ln -sf /share/data/hdd/tools/gcc/armv5b-softfloat-linux-strip /share/data/hdd/tools/gcc/strip

 echo "Writing setup file"

 if [ ! -e /share/hdd/data/tools/setup.sh ]; then
 echo "export PATH=\$PATH:/share/hdd/data/tools/gcc/bin" >/share/hdd/data/tools/setup.sh
 echo "export LD_LIBRARY_PATH=/lib:/opt/lib:/share/hdd/data/tools/gcc/armv5b-softfloat-linux/lib" >>/share/hdd/data/tools/setup.sh
 echo "export C_INCLUDE_PATH=/share/hdd/data/tools/gcc/include:/share/hdd/data/tools/gcc/armv5b-softfloat-linux/include:/share/hdd/data/tools/gcc/armv5b-softfloat-linux/sys-include" >>/share/hdd/data/tools/setup.sh
 fi
 . /share/hdd/data/tools/setup.sh

 if [ ! -x /opt/bin/make ]; then
 if [ ! -d /share/hdd/data/tools/make-3.80 ]; then
 if [ ! -e /share/hdd/data/tools/make-3.80.tar.bz2 ]; then
 echo "Please copy make-3.80.tar.bz2 to /share/data/hdd/tools"
 return 0
 fi
 echo "Installing make 3.80"
 bunzip2 make-3.80.tar.bz2
 tar -xf make-3.80.tar -C /share/data/hdd/tools && rm /share/data/hdd/tools/make-3.80.tar && rm make-3.80.tar.bz2
 fi
 cd /share/data/hdd/tools/make-3.80
 echo "Configuring to build make.  Please be patient"
 ./configure
 echo "Patching make"
 sed -e 's/@REMOTE@/stub' build.sh > build-fixed.sh
 echo "Building make.  More patience is required..."
 /opt/bin/sh build-fixed.sh
 strip make
 echo "Build complete, installing make"
 mv make /opt/bin
 fi

 echo "Tools environment is now setup."
 echo "Please add ". /share/hdd/data/tools/setup.sh" to your .profile"

 return 1

Note: As usual, remove the singe space at the front of each line. Also, note that some lines are very long; don't wrap!.

December 03, 2004, at 02:28 PM by jeremyeglen --
Changed line 21 from:
to:

Be sure to export C_INCLUDE_PATH once it is set to avoid compile time errors.

December 01, 2004, at 11:47 PM by rwhitby --
Added lines 1-2:

Note that this native toolchain is an externally contributed item, and is not supported by the Unslung or OpenSlug development teams. Please address any questions or bugs to the original contributor (gullc at phys.ethz.ch).

November 28, 2004, at 11:09 PM by jsilence --
Changed line 9 from:

Nov 07 <michaelebrown> It works fine for me for simple things. I'm running into some slight complications with locations of include files for more complex projects, but nothing major. For an example, check out MakeGNUMakeOnYourNSLU2Box?.

to:

Nov 07 <michaelebrown> It works fine for me for simple things. I'm running into some slight complications with locations of include files for more complex projects, but nothing major. For an example, check out BuildGNUMakeOnYourNSLU2Box.

November 21, 2004, at 01:00 AM by Steve Wart --
Added lines 10-11:

The download is very slow, so try using the Coralized link which caches the file. It may well download much faster once it has been Coralized.

Added line 13:

http://n.ethz.ch.nyud.net:8090/student/gullc/download/gcc-3.3.4-glibc-2.2.5.tar.gz

Added line 15:

BuildGNUMakeOnYourNSLU2Box worked well with the above instructions, but if you've never setup a toolchain before (like me), you might not find gcc is configured correctly if you want to MakeGNUGawkOnYourNSLU2Box. In addition to creating various symlinks and the library path, you should set the C_INCLUDE_PATH environment variable to an appropriate value; I used this:

Changed line 17 from:

The download is very slow, so try using the Coralized link which caches the file. It may well download much faster once it has been Coralized.

to:

/share/hdd/data/public/gcc/include:/share/hdd/data/public/gcc/armv5b-softfloat-linux/include:/share/hdd/data/public/gcc/armv5b-softfloat-linux/sys-include

Deleted line 18:

http://n.ethz.ch.nyud.net:8090/student/gullc/download/gcc-3.3.4-glibc-2.2.5.tar.gz

November 08, 2004, at 01:10 AM by michaelebrownmindspringcom --
Deleted lines 16-19:

(Dupped this page under HowTo Recipes - seemed to be the more appropriate place for this. If so, then this page should be deleted. If not, then the page under HowTo should be deleted. Can they be joined?)

(If it was a HowTo page, it would tell us how to build the native toolchain from scratch. - rwhitby)

November 07, 2004, at 02:21 PM by Jason --
Changed line 9 from:

Nov 07 <michaelebrown> It works fine for me for simple things. I'm running into some slight complications with locations of include files for more complex projects, but nothing major. For an example, check out MakeGNUMakeOnYourNSLU2Box?.

to:

Nov 07 <michaelebrown> It works fine for me for simple things. I'm running into some slight complications with locations of include files for more complex projects, but nothing major. For an example, check out MakeGNUMakeOnYourNSLU2Box?.

November 07, 2004, at 12:15 PM by rwhitby --
Added lines 9-10:

Nov 07 <michaelebrown> It works fine for me for simple things. I'm running into some slight complications with locations of include files for more complex projects, but nothing major. For an example, check out MakeGNUMakeOnYourNSLU2Box?.

November 07, 2004, at 12:12 PM by rwhitby --
Added lines 17-18:

(If it was a HowTo page, it would tell us how to build the native toolchain from scratch. - rwhitby)

November 07, 2004, at 07:11 AM by michaelebrownmindspringcom --
Added lines 15-16:

(Dupped this page under HowTo Recipes - seemed to be the more appropriate place for this. If so, then this page should be deleted. If not, then the page under HowTo should be deleted. Can they be joined?)

October 05, 2004, at 02:47 PM by MattMcN --
Added lines 8-14:

The download is very slow, so try using the Coralized link which caches the file. It may well download much faster once it has been Coralized.

http://n.ethz.ch.nyud.net:8090/student/gullc/download/gcc-3.3.4-glibc-2.2.5.tar.gz

October 05, 2004, at 04:45 AM by rwhitby --
Changed lines 1-7 from:

Describe NativeNSLU2Toolchain here.

to:

Oct 01 21:34:45 <emanuel> Hi guys, unfortunately I can't post to the mailing list right now, but you might want to check out the gnu compiler:

Oct 01 21:35:24 <emanuel> http://n.ethz.ch/student/gullc/download/toolchain.html

Oct 01 21:35:51 <emanuel> It's a gcc that runs on the NSLU2-box and produces code for the NSLU2-box.

Oct 01 21:36:29 <emanuel> It works fine for me - maybe someone else ought to try it too to check if everything's fine.

Page last modified on April 14, 2005, at 10:26 PM