Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2002 15:03:06 -0500 (EST)
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        obrien@FreeBSD.ORG
Cc:        sparc@FreeBSD.ORG
Subject:   Re: bad toolchain
Message-ID:  <200203132003.g2DK36k73844@khavrinen.lcs.mit.edu>
In-Reply-To: <20020312232635.B73618@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In article <20020312232635.B73618@dragon.nuxi.com> you write:

>    cd /arch/sparc64/uber*/lib/gcc-lib/*/3.1
>    ln -sf /usr/lib/*.o .
>
>this should fix the "hanging" binary problem.

Well, sort of.  Now I don't even get that far:

cc -static -o baz.static baz.o -L. -lbaz
/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crtbegin.o: In function `_init':
/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crtbegin.o(.init+0x0): multiple definition of `_init'
/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crti.o(.init+0x0): first defined here
/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/../../../../sparc64-deo-freebsd5/bin/ld: Disabling relaxation: it will not work with multiple definitions
/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crtbegin.o: In function `_fini':
/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crtbegin.o(.fini+0x0): multiple definition of `_fini'
/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crti.o(.fini+0x0): first defined here
collect2: ld returned 1 exit status

My copies of the object files look like:

- -r--r--r--  1 root  wheel  2589 Mar 10 18:14 crtbegin.o
- -r--r--r--  1 root  wheel  1157 Jan  9 00:12 crti.o
MD5 (crtbegin.o) = 08b86d6d5582b61c0362ec85d5322f4e
MD5 (crti.o) = adeab31f1ebd52ab04a805fd0caaac94

Here's the full output from cc -v:

cc -v -static -o baz.static baz.o -L. -lbaz
Reading specs from /arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/specs
Configured with: ../uberbaum/configure --target=sparc64-deo-freebsd5 --host=sparc64-deo-freebsd5 --build=i386-deo-freebsd5 --prefix=/arch/sparc64/native-uberbaum --enable-languages=c --disable-shared --disable-multilibs --disable-nls --disable-threads --without-newlib --without-libgloss
Thread model: single
gcc version 3.1 20020310 (prerelease)
 /arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/collect2 -m elf64_sparc -relax -Bstatic -o baz.static /arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crt1.o /arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crti.o /arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crtbegin.o -L. -L/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1 -L/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/../../../../sparc64-deo-freebsd5/lib baz.o -lbaz -lgcc -lc -lgcc /arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crtend.o /arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crtn.o
/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crtbegin.o: In function `_init':
/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crtbegin.o(.init+0x0): multiple definition of `_init'
/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crti.o(.init+0x0): first defined here
/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/../../../../sparc64-deo-freebsd5/bin/ld: Disabling relaxation: it will not work with multiple definitions
/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crtbegin.o: In function `_fini':
/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crtbegin.o(.fini+0x0): multiple definition of `_fini'
/arch/sparc64/native-uberbaum/lib/gcc-lib/sparc64-deo-freebsd5/3.1/crti.o(.fini+0x0): first defined here
collect2: ld returned 1 exit status

- -GAWollman

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8j7BvI+eG6b7tlG4RAkBpAJ9xS4enDcepTsngpuXM2bFSs5MfzwCfWuLm
9WssmEBHx2T7Jz8tQSSOiYs=
=ahba
-----END PGP SIGNATURE-----

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-sparc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203132003.g2DK36k73844>