This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

How to use gcc to compile glibc-2.1.2?


Hello,sir
when I compile glibc-2.1.2,I find an error:
powerpc-linux-gcc   -nostdlib -nostartfiles -r -o
/root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/librtld.os '-Wl,-('
/root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/dl-allobjs.os
/root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/libc_pic.a -lgcc '-Wl,-)'
/root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/libc_pic.a(init-first.os): In
function `_dl_start':
init-first.os(.text+0x128): multiple definition of `_dl_start'
/root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/dl-allobjs.os(.text+0x680):
first defined here
/root/LinuxPPC/CDK/powerpc-linux/bin/ld: Warning: size of symbol
`_dl_start' changed from 568 to 48 in init-first.os
collect2: ld returned 1 exit status
gmake[4]: ***
[/root/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/librtld.os] Error 1

Both allobjs.os and libc_pic.a has the symbol of '_dl_start'.
What do they mean '-Wl,-(' and '-Wl,-)'?
What can I do to solve the problem?
			thanks.
                           myw259@21cn.com




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