This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: progress but not there: crosstool-0.32, OS X 10.4 ->i686, gcc-4.0-20050305-glibc-2.3.4


Thanks to Dan's suggestion, the next build got further. However, still didn't complete successfully. Now we get into linking in glib, and fail with:

..../crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0-20050305- glibc-2.3.4/build-glibc/libc_nonshared.a(errno.os)(.bss+0x0): multiple definition of `_errno@GLIBC_2.0'

The last full command that printed that error was (long breath...):

i686-unknown-linux-gnu-gcc -shared -static-libgcc -Wl,-O1 -Wl,- z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.2 -B/Users/rarnold/devel/ crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0-20050305- glibc-2.3.4/build-glibc/linuxthreads/ -B/Users/rarnold/devel/ crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0-20050305- glibc-2.3.4/build-glibc/csu/ -B/Users/rarnold/devel/crosstool-0.32/ build/i686-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3.4/build-glibc/ linuxthreads/ -Wl,--version-script=/Users/rarnold/devel/ crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0-20050305- glibc-2.3.4/build-glibc/libpthread.map -Wl,-soname=libpthread.so.0 - Wl,--enable-new-dtags,-z,nodelete -Wl,--enable-new-dtags,-z,initfirst -L/Users/rarnold/devel/crosstool-0.32/build/i686-unknown-linux-gnu/ gcc-4.0-20050305-glibc-2.3.4/build-glibc -L/Users/rarnold/devel/ crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0-20050305- glibc-2.3.4/build-glibc/math -L/Users/rarnold/devel/crosstool-0.32/ build/i686-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3.4/build-glibc/ elf -L/Users/rarnold/devel/crosstool-0.32/build/i686-unknown-linux- gnu/gcc-4.0-20050305-glibc-2.3.4/build-glibc/dlfcn -L/Users/rarnold/ devel/crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0-20050305- glibc-2.3.4/build-glibc/nss -L/Users/rarnold/devel/crosstool-0.32/ build/i686-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3.4/build-glibc/ nis -L/Users/rarnold/devel/crosstool-0.32/build/i686-unknown-linux- gnu/gcc-4.0-20050305-glibc-2.3.4/build-glibc/rt -L/Users/rarnold/ devel/crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0-20050305- glibc-2.3.4/build-glibc/resolv -L/Users/rarnold/devel/crosstool-0.32/ build/i686-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3.4/build-glibc/ crypt -L/Users/rarnold/devel/crosstool-0.32/build/i686-unknown-linux- gnu/gcc-4.0-20050305-glibc-2.3.4/build-glibc/linuxthreads -Wl,-rpath- link=/Users/rarnold/devel/crosstool-0.32/build/i686-unknown-linux-gnu/ gcc-4.0-20050305-glibc-2.3.4/build-glibc:/Users/rarnold/devel/ crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0-20050305- glibc-2.3.4/build-glibc/math:/Users/rarnold/devel/crosstool-0.32/ build/i686-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3.4/build-glibc/ elf:/Users/rarnold/devel/crosstool-0.32/build/i686-unknown-linux-gnu/ gcc-4.0-20050305-glibc-2.3.4/build-glibc/dlfcn:/Users/rarnold/devel/ crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0-20050305- glibc-2.3.4/build-glibc/nss:/Users/rarnold/devel/crosstool-0.32/build/ i686-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3.4/build-glibc/nis:/ Users/rarnold/devel/crosstool-0.32/build/i686-unknown-linux-gnu/ gcc-4.0-20050305-glibc-2.3.4/build-glibc/rt:/Users/rarnold/devel/ crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0-20050305- glibc-2.3.4/build-glibc/resolv:/Users/rarnold/devel/crosstool-0.32/ build/i686-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3.4/build-glibc/ crypt:/Users/rarnold/devel/crosstool-0.32/build/i686-unknown-linux- gnu/gcc-4.0-20050305-glibc-2.3.4/build-glibc/linuxthreads -o /Users/ rarnold/devel/crosstool-0.32/build/i686-unknown-linux-gnu/ gcc-4.0-20050305-glibc-2.3.4/build-glibc/linuxthreads/libpthread.so - T /Users/rarnold/devel/crosstool-0.32/build/i686-unknown-linux-gnu/ gcc-4.0-20050305-glibc-2.3.4/build-glibc/shlib.lds /Users/rarnold/ devel/crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0-20050305- glibc-2.3.4/build-glibc/csu/abi-note.o -Wl,--whole-archive /Users/ rarnold/devel/crosstool-0.32/build/i686-unknown-linux-gnu/ gcc-4.0-20050305-glibc-2.3.4/build-glibc/linuxthreads/ libpthread_pic.a -Wl,--no-whole-archive /Users/rarnold/devel/ crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0-20050305- glibc-2.3.4/build-glibc/elf/interp.os /Users/rarnold/devel/ crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0-20050305- glibc-2.3.4/build-glibc/linuxthreads/libc.so /Users/rarnold/devel/ crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0-20050305- glibc-2.3.4/build-glibc/libc_nonshared.a /Users/rarnold/devel/ crosstool-0.32/build/i686-unknown-linux-gnu/gcc-4.0-20050305- glibc-2.3.4/build-glibc/elf/ld.so
/Users/rarnold/devel/crosstool-0.32/build/i686-unknown-linux-gnu/ gcc-4.0-20050305-glibc-2.3.4/build-glibc/libc_nonshared.a(errno.os) (.bss+0x0): multiple definition of `_errno@GLIBC_2.0'
collect2: ld returned 1 exit status
make[2]: *** [/Users/rarnold/devel/crosstool-0.32/build/i686-unknown- linux-gnu/gcc-4.0-20050305-glibc-2.3.4/build-glibc/linuxthreads/ libpthread.so] Error 1
make[1]: *** [linuxthreads/install-lib] Error 2
make: *** [install-lib-all] Error 2



On May 4, 2005, at 12:32 PM, Rob Arnold wrote:


Thanks for the response.

On the os x side, I am using binutils 2.15 from darwinports. A port info on it says binutils 2.15, Revision 1 though, so maybe it has some patch applied to it. I think you are talking about the cross compiled binutils though, in which case I'm just using whatever crosstool pulled down (2.15), no changes.

I was tempted to try the patch I had found on the rocklinux message, but it seemed too old, and too odd that no one else had seen the problem.

Patch applies ok. Looks like that's the same section that was giving the folks trouble in the http://www.rocklinux.net/lurker/ message/20040521.142508.80214165.html message. Strange that that was a year ago, this patch is just days old, and that there are only a few references to it online.

I'm rebuilding now, will let the list know the results.

Btw, just in case someone found this message in the archives and is trying to build the old toolchain under OS X 10.4, I forgot to mention, in addition to the gnu install (or patch configure to prefer it's shell script install), you'll need to use gcc-select or otherwise get the toolchain to use gcc 3.3 to start the build, since the default in Tiger is gcc 4, and the tests for gcc version error out on it.

Dan, you mentioned in another message that the project could use a volunteer OS X platform for running nightly automated tests. If you don't find a better offer, I'd be willing to take this on in a few weeks. I'm currently running this on an old powerbook, which just isn't fast enough to offer, but when I get a new powermac setup fairly soon, I'd be happy to help.



On May 4, 2005, at 11:44 AM, Daniel Kegel wrote:


Rob Arnold wrote:


../sysdeps/i386/i686/memcmp.S: Assembler messages:
../sysdeps/i386/i686/memcmp.S:390: Error: can't resolve `.rodata' {.rodata section} - `memcmp' {.text section}




Goodness. Looks like there's a .section problem in memcmp.S in glibc-2.3.3 ... glibc-2.3.5:



------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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