[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[issues] Eglibc issue on PPC?



 Been looking at this issue for a few weeks, and everyone has pointed this out to be a glibc/eglibc issue. Want your take on this. Using the latest GCC 4.4.0. Building from a x86_64 to powerpc G3.

The build method used is the cross-lfs dev book, temporary system gcc.
http://cross-lfs.org/view/svn/ppc/temp-system/gcc.html
our eglibc instructions are at
http://cross-lfs.org/view/svn/ppc/cross-tools/eglibc.html

This build method works on x86 and x86_64, but Sparc and Powerpc get the same error message below.
  1. gcc -c -DIN_GCC    -DGENERATOR_FILE -I. -Ibuild -I/mnt/clfs/var/build_system/work/gcc-4.4.0/gcc -I/mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/build -I/mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/../include -I/mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/../libcpp/include -I/tools/include -I/tools/include -I/mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/../libdecnumber -I/mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/tools/include  -I/tools/include -DCLOOG_PPL_BACKEND   -o build/genmodes.o /mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/genmodes.c
  2. In file included from /tools/include/endian.h:37,
  3.                  from /tools/include/ctype.h:41,
  4.                  from /mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/../include/safe-ctype.h:122,
  5.                  from /mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/system.h:179,
  6.                  from /mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/genmodes.c:22:
  7. /tools/include/bits/endian.h:34:4: warning: #warning Cannot determine current byte order, assuming big-endian.
  8. gcc -c -DIN_GCC    -DGENERATOR_FILE -I. -Ibuild -I/mnt/clfs/var/build_system/work/gcc-4.4.0/gcc -I/mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/build -I/mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/../include -I/mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/../libcpp/include -I/tools/include -I/tools/include -I/mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/../libdecnumber -I/mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/tools/include  -I/tools/include -DCLOOG_PPL_BACKEND   -o build/errors.o /mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/errors.c
  9. In file included from /tools/include/endian.h:37,
  10.                  from /tools/include/ctype.h:41,
  11.                  from /mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/../include/safe-ctype.h:122,
  12.                  from /mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/system.h:179,
  13.                  from /mnt/clfs/var/build_system/work/gcc-4.4.0/gcc/errors.c:30:
  14. /tools/include/bits/endian.h:34:4: warning: #warning Cannot determine current byte order, assuming big-endian.
  15. gcc -DIN_GCC    -DGENERATOR_FILE  -o build/genmodes \
  16.             build/genmodes.o build/errors.o ../build-x86_64-cross-linux-gnu/libiberty/libiberty.a
  17. build/genmodes.o: In function `make_complex_modes':
  18. genmodes.c:(.text+0xc8b): undefined reference to `__nldbl_snprintf'
  19. genmodes.c:(.text+0xcb0): undefined reference to `__nldbl_snprintf'
  20. build/genmodes.o: In function `make_vector_modes':
  21. genmodes.c:(.text+0xddb): undefined reference to `__nldbl_snprintf'
  22. build/genmodes.o: In function `make_vector_mode':
  23. genmodes.c:(.text+0x1233): undefined reference to `__nldbl_snprintf'
  24. build/genmodes.o: In function `emit_insn_modes_h':
  25. genmodes.c:(.text+0x1c59): undefined reference to `__nldbl_printf'
  26. genmodes.c:(.text+0x1c9f): undefined reference to `__nldbl_printf'
  27. genmodes.c:(.text+0x1ce6): undefined reference to `__nldbl_printf'
  28. genmodes.c:(.text+0x1dc7): undefined reference to `__nldbl_printf'
  29. genmodes.c:(.text+0x1e11): undefined reference to `__nldbl_printf'
  30. build/genmodes.o:genmodes.c:(.text+0x1e56): more undefined references to `__nldbl_printf' follow
  31. build/errors.o: In function `warning':
  32. errors.c:(.text+0xc8): undefined reference to `__nldbl_fprintf'
  33. errors.c:(.text+0xe8): undefined reference to `__nldbl_vfprintf'
  34. build/errors.o: In function `error':
  35. errors.c:(.text+0x1d0): undefined reference to `__nldbl_fprintf'
  36. errors.c:(.text+0x1f0): undefined reference to `__nldbl_vfprintf'
  37. build/errors.o: In function `fatal':
  38. errors.c:(.text+0x2dd): undefined reference to `__nldbl_fprintf'
  39. errors.c:(.text+0x2fd): undefined reference to `__nldbl_vfprintf'
  40. build/errors.o: In function `internal_error':
  41. errors.c:(.text+0x3e8): undefined reference to `__nldbl_fprintf'
  42. errors.c:(.text+0x408): undefined reference to `__nldbl_vfprintf'
  43. collect2: ld returned 1 exit status
  44. make[2]: *** [build/genmodes] Error 1
  45. make[2]: Leaving directory `/mnt/clfs/var/build_system/work/gcc-build/gcc'
  46. make[1]: *** [all-gcc] Error 2
  47. make[1]: Leaving directory `/mnt/clfs/var/build_system/work/gcc-build'
  48. make: *** [all] Error 2