This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

undefined references during cross-compile of glibc.2.1.3 --> powerpc


This is my first posting to this mail list, hopefully I will be able to return the favor some day.  I am attempting to cross compile
glibc-2.1.3 on a redhat 6.2 host targeted to a PowerPC, but without much luck.  I downloaded Hardhat's CDK and am using the
cross-compiler binaries unmodified, gcc version 2.95.1.  The math patches and cache line length patches have been applied to glibc
sources.  I have attempted to compile glibc 2.1.2 and 2.1.3 with the same results.  The configuration command is as follows.

export CC=powerpc-linux-gcc
export AR=powerpc-linux-ar
export RANLIB=powerpc-linux-ranlib
../configure --build=i486-pc-linux --host=powerpc-linux --libexecdir=/opt/hardhat/devkit/ppc/8xx/bin --with-binutils=/opt/hardhat/de
vkit/ppc/8xx/bin --prefix=/opt/hardhat/devkit/ppc/8xx/powerpc-linux --with-headers=/opt/hardhat/devkit/ppc/8xx/kernel/linux-2.3.51/i
nclude --enable-add-ons=linuxthreads,crypt --with-gnu-as --with-gnu-ld --disable-profile --without-fp --disable-sanity-checks

The glibc source is installed at ...8xx/src/glibc-2.1.3, the libraries are to be installed at ...8xx/powerpc-linux/lib and the
kernel to be used with this glibc is at ....8xx/kernel/linux-2.3.51.  The library is being compiled in a "compile" directory under
the glibc-2.1.3 directory.   When I run make, the operation runs for about 35 minutes on my P450 then fails with the message
appended at the end.  I attempted to run make install, then make again but the same problem occurs.  Has anybody seen this before? I
am guessing that the configuration is wrong and the compiler doesn't know where the freshly compiled libraries are, but I am not
sure how to tell it where to look.  Suggestions would be greatly appreciated.

powerpc-linux-gcc -B/opt/hardhat/devkit/ppc/8xx/bin/ -nostdlib -nostartfiles -o
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/db2/makedb  -Wl,-dynamic-linker=/opt/hardhat/devkit/ppc/8xx/powerpc-linux/lib/ld
.so.1   /opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/csu/crt1.o
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/csu/crti.o
`powerpc-linux-gcc -B/opt/hardhat/devkit/ppc/8xx/bin/ --print-file-name=crtbegin.o`
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/db2/makedb.o
opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/db2/libdb.so.3  -Wl,-rpath-link=/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compi
le:/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/math:/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/elf:/opt/hardhat/dev
kit/ppc/8xx/src/glibc-2.1.3/compile/nss:/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/nis:/opt/hardhat/devkit/ppc/8xx/src/glib
c-2.1.3/compile/db2:/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/rt:/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/resol
v:/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/linuxthreads /opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc.so.6
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc_nonshared.a -lgcc
`powerpc-linux-gcc -B/opt/hardhat/devkit/ppc/8xx/bin/ --print-file-name=crtend.o`
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/csu/crtn.o
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc.so.6: undefined reference to `__dup'
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc.so.6: undefined reference to `__syscall_getpriority'
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc.so.6: undefined reference to `__syscall_execve'
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc.so.6: undefined reference to `__setregid'
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc.so.6: undefined reference to `__syscall_sigaction'
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc.so.6: undefined reference to `__syscall_sigprocmask'
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc.so.6: undefined reference to `__getpid'
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc.so.6: undefined reference to `__setsid'
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc.so.6: undefined reference to `__select'
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc.so.6: undefined reference to `utime'
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc.so.6: undefined reference to `__syscall_chown'
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc.so.6: undefined reference to `__syscall_pread'
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/db2/libdb.so.3: undefined reference to `munmap'
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc.so.6: undefined reference to `__wait4'
/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/libc.so.6: undefined reference to `__ftruncate'
      .
      .  continues for about 75 lines.
     .
collect2: ld returned 1 exit status
powerpc-linux-gcc: file path prefix `/opt/hardhat/devkit/ppc/8xx/bin/' never used
make[2]: *** [/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/compile/db2/makedb] Error 1
make[2]: Leaving directory `/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3/db2'
make[1]: *** [db2/others] Error 2
make[1]: Leaving directory `/opt/hardhat/devkit/ppc/8xx/src/glibc-2.1.3'
make: *** [all] Error 2

                Thanks and Later
                George Stein







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]