On Mon, Dec 01, 2003 at 10:03:01AM -0500, Ben Collins wrote: > On Mon, Dec 01, 2003 at 11:47:48AM +0100, Wolfram Quester wrote: > > Hi alltogether! > > > > gcc produces 64Bit executables by default on UltraSparc. > > I consider this a broken behaviour since many debian-packages don't > > build any longer: > > wolfi@uranos:~/src/sodipodi/sodipodi-0.32.uus.20031012$ fakeroot dpkg-buildpackage -us -uc > > <snip> > > checking build system type... sparc64-unknown-linux-gnu > > checking host system type... sparc64-unknown-linux-gnu > > checking for style of include used by make... GNU > > checking for gcc... gcc > > checking for C compiler default output file name... a.out > > checking whether the C compiler works... configure: error: cannot run C compiled programs. > > If you meant to cross compile, use `--host'. > > See `config.log' for more details. > > > > IMHO, gcc should default to -m32. If it really should default to -m64 > > then this should only be done if all libs are 64Bit-compliant. > > I'd be interested in the error in config.log Here it is: configure:2514: $? = 0 configure:2516: gcc -v </dev/null >&5 Reading specs from /usr/lib/gcc-lib/sparc-linux/3.3.2/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/inc lude/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --with-cpu=v7 --enable-objc-gc sparc-linux Thread model: posix gcc version 3.3.2 (Debian) configure:2519: $? = 0 configure:2521: gcc -V </dev/null >&5 gcc: couldn't run `sparc-linux-gcc--m64': No such file or directory configure:2524: $? = 1 configure:2547: checking for C compiler default output file name configure:2550: gcc -O2 conftest.c >&5 configure:2553: $? = 0 configure:2599: result: a.out configure:2604: checking whether the C compiler works configure:2610: ./a.out ./a.out: error while loading shared libraries: /lib64/libc.so.6: unexpected reloc type 0x08 configure:2613: $? = 127 configure:2622: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. > > Anyhow, you can override this easily by prepeding your build commands > with the sparc32 command. E.g. > > # sparc32 ./configure > # sparc32 make > > I've also added a "permanent" override that will be coming in the next, > for those that wish to do a system-wide override. You can just touch > /etc/disable_64_gcc, and all the defaults will be -m32. This is good to know. Thanks for your fast reply. This is what I need to build debian-compliant packes, right? Best regards, Wolfi > > > -- > Debian - http://www.debian.org/ > Linux 1394 - http://www.linux1394.org/ > Subversion - http://subversion.tigris.org/ > WatchGuard - http://www.watchguard.com/ > > > -- > To UNSUBSCRIBE, email to debian-sparc-request@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org --
Attachment:
pgp6eM9aVprUi.pgp
Description: PGP signature