FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 11-22-2007, 02:53 PM
"Bernhard R. Link"
 
Default Bug#452402: gcc-4.2: cannot generate sparc64 executables

Package: gcc-4.2
Version: 4.2.2-3
Severity: normal

When I try to compile a 64 bit executable on sparc, I get errors
about missing a libgcc.a file for it:

$ cat > test.c <<EOF
int main() { return 0; }
EOF
$ gcc -Wall -W -m64 -c test.c
$ gcc -Wall -W -m64 test.o
/usr/bin/ld: skipping incompatible /usr/lib/gcc/sparc-linux-gnu/4.2.3/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/sparc-linux-gnu/4.2.3/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status

A related problem seems to be, that
$ gcc -print-libgcc-file-name
and
$ gcc -m64 -print-libgcc-file-name
both report
/usr/lib/gcc/sparc-linux-gnu/4.2.3/libgcc.a

(Which I'm somewhat suspecting might be the cause for the klibc
segfaults, as that tries to build 64 bit binaries)


-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: sparc (sparc64)

Kernel: Linux 2.6.22-3-sparc64-smp (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages gcc-4.2 depends on:
ii binutils 2.18-1 The GNU assembler, linker and bina
ii cpp-4.2 4.2.2-3 The GNU C preprocessor
ii gcc-4.2-base 4.2.2-3 The GNU Compiler Collection (base
ii libc6 2.6.1-6 GNU C Library: Shared libraries
ii libgcc1 1:4.2.2-3 GCC support library
ii libgomp1 4.2.2-3 GCC OpenMP (GOMP) support library

Versions of packages gcc-4.2 recommends:
ii libc6-dev 2.6.1-6 GNU C Library: Development Librari

-- no debconf information



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-22-2007, 03:41 PM
"Bernhard R. Link"
 
Default Bug#452402: gcc-4.2: cannot generate sparc64 executables

* Matthias Klose <doko@cs.tu-berlin.de> [071122 17:14]:
> > When I try to compile a 64 bit executable on sparc, I get errors
> > about missing a libgcc.a file for it:
>
> please install gcc-multilib.

Thanks for you quick response. I guess I was to fixated to search for
packages with 64 in the name and there seems to be a bug in
http://packages.debian.org/search?suite=sid&arch=sparc&mode=filename&searchon =contents&keywords=libgcc.a

What is still an issue is that gcc -m64 -print-libgcc-file-name prints
a wrong filename without gcc-multilib installed. Is this worth reopening
another bug or reopen/retitle this one?

Hochachtungsvoll,
Bernhard R. Link



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-22-2007, 04:06 PM
Matthias Klose
 
Default Bug#452402: gcc-4.2: cannot generate sparc64 executables

tag 452402 + wontfix
thanks

Bernhard R. Link writes:
> * Matthias Klose <doko@cs.tu-berlin.de> [071122 17:14]:
> > > When I try to compile a 64 bit executable on sparc, I get errors
> > > about missing a libgcc.a file for it:
> >
> > please install gcc-multilib.
>
> Thanks for you quick response. I guess I was to fixated to search for
> packages with 64 in the name and there seems to be a bug in
> http://packages.debian.org/search?suite=sid&arch=sparc&mode=filename&searchon =contents&keywords=libgcc.a
>
> What is still an issue is that gcc -m64 -print-libgcc-file-name prints
> a wrong filename without gcc-multilib installed. Is this worth reopening
> another bug or reopen/retitle this one?

only if you do submit a patch. I don't intend to write a patch
myself. gcc does suggest gcc-multilib. that should be enough.



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 02:28 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org