**** BEGIN LOGGING AT Mon Feb 25 01:44:17 2008 Feb 25 01:53:35 /usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a(__main.o): In function `__do_global_ctors': Feb 25 01:53:35 __main.o(.text+0xc4): undefined reference to `__CTOR_LIST__' Feb 25 01:53:35 /usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a(__main.o)(.data+0x0): undefined reference to\ Feb 25 01:53:35 `__DTOR_LIST__' Feb 25 01:53:39 anyone seen that before? Feb 25 01:54:05 oh yes, plenty of times trying to get about 3 different compilers working Feb 25 01:54:14 I'm attempting to build GNU hello with the arm-elf toolchain you posted. Feb 25 01:54:16 configure:2711: /usr/local/bin/arm-elf-gcc -O2 -pipe -I/home/slug/optware/openwiz/stagin\ Feb 25 01:54:16 g/opt/include -L/usr/local/arm-elf/lib -Wl,/usr/local/bin/elf2flt -L/home/slug/optware/ope\ Feb 25 01:54:16 nwiz/staging/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link,/home/slug/optware/openwiz/staging\ Feb 25 01:54:16 /opt/lib conftest.c >&5 Feb 25 01:55:29 do you have a link to gnu hello? Feb 25 01:55:37 I'm building it from optware Feb 25 01:56:08 http://ftp.gnu.org/gnu/hello Feb 25 01:56:27 * peteru is in the middle of the dinner, but anything referring to CTORS or DTORS is most likely to be C++ related. Feb 25 10:12:34 hi guys Feb 25 10:19:04 hi Feb 25 10:19:22 Hi tony Feb 25 10:19:31 looks like i need a lesson in how to get ./configure to pick up the cross compiler rather than native compiler Feb 25 10:19:57 have you installed it Feb 25 10:20:03 gcc that is Feb 25 10:20:10 i tried exporting LIBS/INCLUDES/CFLAGS/LDFLAGS & CC and the ./configure still picks up the native one Feb 25 10:20:12 yep Feb 25 10:20:25 happily compiles your wizremote Feb 25 10:20:34 where is your cross compiler installed? Feb 25 10:20:34 hang on, yuv=eric, right? Feb 25 10:20:40 yeah Feb 25 10:20:47 the very same Feb 25 10:20:51 Have a look at the Makefiles in http://icebox.sf.net/ Feb 25 10:21:20 \/usr/local/arm-elf Feb 25 10:21:45 do you have a /usr/local/arm-elf/arm-elf/bin dir? Feb 25 10:22:01 huh, no Feb 25 10:22:06 http://icebox.cvs.sourceforge.net/icebox/icebox/netgear_daemon/Makefile?revision=1.1&view=markup Feb 25 10:22:23 this works: Feb 25 10:22:24 env PATH=/usr/local/arm-elf/bin/:$PATH gcc -O2 -I/usr/local/arm-elf/include/ -L/usr/local/arm-elf/lib/ -Wl,-elf2flt -o wizremote ezxml.c wizremote.c Feb 25 10:22:35 grr, silly emoticons Feb 25 10:23:03 you should have your arm-elf-gcc plus a bin with symlinks to gcc etc Feb 25 10:23:24 i setup a different compiler Feb 25 10:23:26 In a nutshell, you define environment variables for all the crosstools. Feb 25 10:23:50 it has normal gcc/ld/etc in /usr/local/arm-elf/bin Feb 25 10:23:54 Do not rely on the order of tools in the path, it's bound to bite you. Feb 25 10:24:21 however setting up a cross compiler for my Asus router, I notice *it* makes symlinks to these with a prefic Feb 25 10:24:25 prefix Feb 25 10:24:38 i am not.. i setup env variables Feb 25 10:25:01 but the configure script doesn't seem to want to use them Feb 25 10:26:16 i am not at the makefile stage, i am at the "run configure to build the makefile" Feb 25 10:26:32 does it fail checking the compiler? Feb 25 10:26:42 ? Feb 25 10:26:51 no, it uses the native compiler, not the arm-elf one Feb 25 10:27:02 how do you know that? Feb 25 10:27:13 because I can run the app it builds :-) Feb 25 10:27:19 ah Feb 25 10:27:20 and I can see it in the configure list Feb 25 10:27:37 checking for msgmerge... no Feb 25 10:27:38 checking build system type... i686-pc-linux-gnu Feb 25 10:27:38 checking host system type... i686-pc-linux-gnu Feb 25 10:27:38 checking for ld used by GCC... /usr/bin/ld Feb 25 10:27:38 checking if the linker (/usr/bin/ld) is GNU ld... yes Feb 25 10:27:38 checking for shared library run path origin... done Feb 25 10:27:53 i guess i need to tell it somehow "don't do this for 686, do it for arm-elf" Feb 25 10:28:11 have you tried --target=arm-elf Feb 25 10:28:33 i did once with no luck, i will try again now I have also setup environment variables Feb 25 10:29:06 grr Feb 25 10:29:15 checking for msgmerge... no Feb 25 10:29:15 checking build system type... i686-pc-linux-gnu Feb 25 10:29:15 checking host system type... i686-pc-linux-gnu Feb 25 10:29:15 checking for ld used by GCC... /usr/bin/ld Feb 25 10:29:15 checking if the linker (/usr/bin/ld) is GNU ld... yes Feb 25 10:29:37 have you looked in config.log Feb 25 10:29:48 to see what it is doing Feb 25 10:30:51 man, that is one mother of a log Feb 25 10:30:59 yeah Feb 25 10:31:07 autoconf is a dark art Feb 25 10:31:09 can't find anything obvious Feb 25 10:31:21 but can't find any reference to arm-elf either Feb 25 10:32:19 that is interesting, my environment setup shell script hasn't set any environments Feb 25 10:32:24 it's interesting that your mmap support doesn't work either Feb 25 10:32:40 are you running bash Feb 25 10:32:45 yep Feb 25 10:33:15 the script has "export LIBS=blah" etc in it Feb 25 10:33:52 aha Feb 25 10:33:56 . ./env Feb 25 10:34:02 rather than ./env Feb 25 10:34:44 now configure fails :-) Feb 25 10:48:38 I used the following for optware: Feb 25 10:48:38 AR=/usr/local/bin/arm-elf-ar AS=/usr/local/bin/arm-elf-as LD=/usr/local/bin\ Feb 25 10:48:38 arm-elf-gcc -E" GCC=/usr/local/bin/arm-elf-gcc CXX=/usr/local/bin/arm-elf-g++ RANLIB=/usr/l\ Feb 25 10:48:40 ocal/bin/arm-elf-ranlib STRIP=/usr/local/bin/arm-elf-strip \ Feb 25 10:48:40 CPPFLAGS="-O2 -pipe -I/home/slug/optware/openwiz/staging/opt/include " \ Feb 25 10:48:42 LDFLAGS="-L/usr/local/arm-elf/lib -Wl,/usr/local/bin/elf2flt -L/home/slug/o\ Feb 25 10:48:42 ptware/openwiz/staging/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link,/home/slug/optware/openw\ Feb 25 10:48:45 iz/staging/opt/lib " \ Feb 25 10:48:46 ./configure \ Feb 25 10:48:50 --build=i386-pc-linux-gnu \ Feb 25 10:48:52 --host=arm-elf \ Feb 25 10:48:54 --target=arm-elf \ Feb 25 10:48:56 --prefix=/opt \ Feb 25 10:48:58 --disable-nls \ Feb 25 10:49:00 --disable-static \ Feb 25 10:49:12 and... it is ok now? Feb 25 10:49:20 no, that's the one that fails. Feb 25 10:49:42 I don't think host should be arm-elf Feb 25 10:50:32 what should it be? Feb 25 10:50:55 maybe you should just let the configure script set that Feb 25 10:51:05 cross compilers confuse me a bit Feb 25 10:51:19 but host sounds like the machine you are compilingg on Feb 25 10:52:35 no, that's build Feb 25 10:52:50 ah k Feb 25 10:53:21 same result if I set that to the same as build Feb 25 10:54:35 ah k **** ENDING LOGGING AT Mon Feb 25 10:59:56 2008