Dave,

I did that, but I'm not really sure what to look for!  Did you have something particular in mind?

Here's what I get from the native compiler:

[root@192 ~]#cc -v hello.c
Using built-in specs.
Configured with: /home/sakoman/perforce/development-buildroot/toolchain_build_arm_nofpu/gcc-3.4.5/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=arm-linux-uclibc --target=arm-linux-uclibc --enable-languages=c --enable-shared --with-gxx-include-dir=/usr/include/c++ --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-nls --disable-threads --disable-multilib --with-float=soft
Thread model: single
gcc version 3.4.5
 /usr/libexec/gcc/arm-linux-uclibc/3.4.5/cc1 -quiet -v -D__ARM_ARCH_3__ hello.c -quiet -dumpbase hello.c -msoft-float -auxbase hello -version -o /tmp/cc20lMr1.signoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/lib/gcc/arm-linux-uclibc/3.4.5/../../../../arm-linux-uclibc/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/arm-linux-uclibc/3.4.5/include
 /usr/include
End of search list.
GNU C version 3.4.5 (arm-linux-uclibc)
        compiled by GNU C version 3.4.5.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
 as -mfpu=softfpa -mfpu=softfpa -o /tmp/cc3r2Jqp.o /tmp/cc20lMr1.s
 /usr/libexec/gcc/arm-linux-uclibc/3.4.5/collect2 --eh-frame-hdr -dynamic-linker /lib/ld-uClibc.so.0 -X -m armelf_linux -p /usr/lib/gcc/arm-linux-uclibc/3.4.5/../../../crt1.o /usr/lib/gcc/arm-linux-uclibc/3.4.5/../../../crti.o /usr/lib/gcc/arm-linux-uclibc/3.4.5/crtbegin.o -L/usr/lib/gcc/arm-linux-uclibc/3.4.5 -L/usr/lib/gcc/arm-linux-uclibc/3.4.5 -L/usr/lib/gcc/arm-linux-uclibc/3.4.5/../../.. /tmp/cc3r2Jqp.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/arm-linux-uclibc/3.4.5/crtend.o /usr/lib/gcc/arm-linux-uclibc/3.4.5/../../../crtn.o
/usr/lib/gcc/arm-linux-uclibc/3.4.5/../../../libc.so: undefined reference to `__libc_stack_end'
collect2: ld returned 1 exit status

And here's what I get from the cross compiler:

sakoman@tera:~/perforce/development-buildroot$ ./build_arm_nofpu/staging_dir/bin/arm-linux-cc -v hello.c
Reading specs from /home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.5/specs
Configured with: /home/sakoman/perforce/development-buildroot/toolchain_build_arm_nofpu/gcc- 3.4.5/configure --prefix=/home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=arm-linux-uclibc --enable-languages=c --enable-shared --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-nls --disable-threads --disable-multilib --with-float=soft
Thread model: single
gcc version 3.4.5
 /home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../libexec/gcc/arm-linux-uclibc/3.4.5/cc1 -quiet -v -iprefix /home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.5/ -D__ARM_ARCH_3__ hello.c -quiet -dumpbase hello.c -msoft-float -auxbase hello -version -o /tmp/ccdFsnJY.s
ignoring nonexistent directory "/home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.5/../../../../arm-linux-uclibc/include"
ignoring duplicate directory "/home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/lib/gcc/arm-linux-uclibc/3.4.5/include"
ignoring duplicate directory "/home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/lib/gcc/arm-linux-uclibc/3.4.5/../../../../arm-linux-uclibc/sys-include"
ignoring nonexistent directory "/home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/lib/gcc/arm-linux-uclibc/3.4.5/../../../../arm-linux-uclibc/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.5/include
 /home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.5/../../../../arm-linux-uclibc/sys-include
End of search list.
GNU C version 3.4.5 (arm-linux-uclibc)
        compiled by GNU C version 4.0.3 (Ubuntu 4.0.3-1ubuntu5).
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128559
 /home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.5/../../../../arm-linux-uclibc/bin/as -mfpu=softfpa -mfpu=softfpa -o /tmp/ccaXnJPP.o /tmp/ccdFsnJY.s
 /home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../libexec/gcc/arm-linux-uclibc/3.4.5/collect2 --eh-frame-hdr -dynamic-linker /lib/ld-uClibc.so.0 -X -m armelf_linux -p /home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.5/../../../../arm-linux-uclibc/lib/crt1.o /home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.5/../../../../arm-linux-uclibc/lib/crti.o /home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.5/crtbegin.o -L/home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.5 -L/home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../lib/gcc -L/home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/lib/gcc/arm-linux-uclibc/3.4.5 -L/home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.5/../../../../arm-linux-uclibc/lib -L/home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/lib/gcc/arm-linux-uclibc/3.4.5/../../../../arm-linux-uclibc/lib /tmp/ccaXnJPP.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.5/crtend.o /home/sakoman/perforce/development-buildroot/build_arm_nofpu/staging_dir/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.5/../../../../arm-linux-uclibc/lib/crtn.o
sakoman@tera:~/perforce/development-buildroot$

Any pointers on where to look would be much appreciated!

Steve

On 6/16/07, Dave Hylands <dhylands@gmail.com> wrote:
Hi Steve,

On 6/16/07, Steve Sakoman <sakoman@gmail.com> wrote:
> Hmmm . . . now this is strange.  If I do the same thing I get:
>
> sakoman@tera:~/perforce/test/gumstix-buildroot/build_arm_nofpu/staging_dir/lib$
> nm libc.a | grep libc_stack_end
>          U __libc_stack_end
> 0000000000000000 B __libc_stack_end
>
> So now I'm wondering why the cross compiler was able to build the root fs
> I'm booting!

Well I  was just taking a stab at what the problem might be.

I'd recommend that you try compiling the same program with the cross
compiler using the -v option and compare the output between using the
native toolchain and using the cross-compiler.

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users