gcc-3.3 on i386, mipsel and sparc is built against binutils 2.15 and will try to use --as-needed

Bug #7305 reported by Debian Bug Importer
6
Affects Status Importance Assigned to Milestone
gcc-3.3 (Debian)
Fix Released
Unknown
gcc-3.3 (Ubuntu)
Invalid
High
Unassigned

Bug Description

Automatically imported from Debian bug report #263426 http://bugs.debian.org/263426

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #263426 http://bugs.debian.org/263426

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 4 Aug 2004 12:33:01 +0200
From: Andreas Metzler <email address hidden>
To: <email address hidden>
Subject: gcc-3.3 on i386,
 mipsel and sparc is built against binutils 2.15 and will try to use --as-needed

Package: gcc-3.3
Version: 1:3.3.4-7
Severity: serious

This bug report is the result of a conversation on #debian-release, as
IRC is volatile I capture it now.

If gcc-3.3 is built on a machine with binutils 2.15 gcc's ./configure
test
| checking linker --as-needed support... yes
will succeed and the resulting gcc will use --as-needed when linking,
although it does not depend on binutils (>=2.15). James Troup noticed
this on sparc "because it's broken the buildds".

Checking the buildlogs yielded that s390, ia64, arm are built with
older binutils, mips, mipsel, alpha and sparc are built with 2.15.
Heuristically I also tested with
dpkg --fsys-tarfile gcc-3.3.deb | grep -- --as-needed
which showed matches only in i386, mipsel and sparc

This breaks the compiler completely, minimal testcase:
$ echo 'int main () { return(0) ; }' > foo.c
$ gcc -Wall -o foo foo.c
/usr/bin/ld: unrecognized option '--as-needed'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status

Possible "solutions":
1) Delay gcc-3.3's entry into sarge by making it Depend on binutils
2.15.

2) Make binary NMUs of the broken binaries. (Too late for today's
dinstall, mipsel takes more than 8 hours)

3) Ignore this bug and temporarily live with a non-working gcc in
sarge.

Personally I think 3 is not acceptable for gcc-3.3 but might be for
gcc-3.4 .(#263019).
                  cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"

Revision history for this message
Matt Zimmerman (mdz) wrote :

No mipsel or sparc for Warty (oh, the joy!)

Revision history for this message
In , Adrian Bunk (bunk-fs) wrote : Your second suggestion is flawed

Hi Andreas,

your second suggestion for this bug ("gcc-3.3 on i386, mipsel and sparc
is built against binutils 2.15 and will try to use --as-needed") is
flawed, since this will break again with any binary NMU or other update
for gcc-3.3.

The only real choices are:
1. update the dependency on binutils
2. hack gcc/configure.in to not define HAVE_LD_AS_NEEDED

The preferred approach at least in the long term is definitely the first
one.

cu
Adrian

--

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 5 Aug 2004 13:20:16 +0200
From: Adrian Bunk <email address hidden>
To: <email address hidden>
Cc: <email address hidden>
Subject: Your second suggestion is flawed

Hi Andreas,

your second suggestion for this bug ("gcc-3.3 on i386, mipsel and sparc
is built against binutils 2.15 and will try to use --as-needed") is
flawed, since this will break again with any binary NMU or other update
for gcc-3.3.

The only real choices are:
1. update the dependency on binutils
2. hack gcc/configure.in to not define HAVE_LD_AS_NEEDED

The preferred approach at least in the long term is definitely the first
one.

cu
Adrian

--

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

Revision history for this message
In , Daniel Jacobowitz (dan) wrote : Re: Bug#263426: gcc-3.3 on i386, mipsel and sparc is built against binutils 2.15 and will try to use --as-needed

On Wed, Aug 04, 2004 at 12:33:01PM +0200, Andreas Metzler wrote:
> Possible "solutions":
> 1) Delay gcc-3.3's entry into sarge by making it Depend on binutils
> 2.15.

For the record, I consider this to be the better idea.

--
Daniel Jacobowitz

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 5 Aug 2004 11:52:24 -0400
From: Daniel Jacobowitz <email address hidden>
To: Andreas Metzler <email address hidden>, <email address hidden>
Subject: Re: Bug#263426: gcc-3.3 on i386,
 mipsel and sparc is built against binutils 2.15 and will try to use --as-needed

On Wed, Aug 04, 2004 at 12:33:01PM +0200, Andreas Metzler wrote:
> Possible "solutions":
> 1) Delay gcc-3.3's entry into sarge by making it Depend on binutils
> 2.15.

For the record, I consider this to be the better idea.

--
Daniel Jacobowitz

Revision history for this message
In , Matthias Klose (doko-cs) wrote : tag gcc reports

tags 263426 + pending
tags 263019 + pending
tags 262208 + pending
tags 262249 + pending
tags + pending
thanks

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 5 Aug 2004 23:29:09 +0200
From: Matthias Klose <email address hidden>
To: <email address hidden>
Subject: tag gcc reports

tags 263426 + pending
tags 263019 + pending
tags 262208 + pending
tags 262249 + pending
tags + pending
thanks

Revision history for this message
In , Matthias Klose (doko) wrote : Bug#263426: fixed in gcc-3.3 1:3.3.4-9
Download full text (9.8 KiB)

Source: gcc-3.3
Source-Version: 1:3.3.4-9

We believe that the bug you reported is fixed in the latest version of
gcc-3.3, which is due to be installed in the Debian FTP archive:

cpp-3.3-doc_3.3.4-9_all.deb
  to pool/main/g/gcc-3.3/cpp-3.3-doc_3.3.4-9_all.deb
cpp-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/cpp-3.3_3.3.4-9_i386.deb
fixincludes_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/fixincludes_3.3.4-9_i386.deb
g++-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/g++-3.3_3.3.4-9_i386.deb
g77-3.3-doc_3.3.4-9_all.deb
  to pool/main/g/gcc-3.3/g77-3.3-doc_3.3.4-9_all.deb
g77-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/g77-3.3_3.3.4-9_i386.deb
gcc-3.3-base_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/gcc-3.3-base_3.3.4-9_i386.deb
gcc-3.3-doc_3.3.4-9_all.deb
  to pool/main/g/gcc-3.3/gcc-3.3-doc_3.3.4-9_all.deb
gcc-3.3_3.3.4-9.diff.gz
  to pool/main/g/gcc-3.3/gcc-3.3_3.3.4-9.diff.gz
gcc-3.3_3.3.4-9.dsc
  to pool/main/g/gcc-3.3/gcc-3.3_3.3.4-9.dsc
gcc-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/gcc-3.3_3.3.4-9_i386.deb
gcj-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/gcj-3.3_3.3.4-9_i386.deb
gij-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/gij-3.3_3.3.4-9_i386.deb
gnat-3.3-doc_3.3.4-9_all.deb
  to pool/main/g/gcc-3.3/gnat-3.3-doc_3.3.4-9_all.deb
gnat-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/gnat-3.3_3.3.4-9_i386.deb
gobjc-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/gobjc-3.3_3.3.4-9_i386.deb
gpc-2.1-3.3-doc_3.3.4.20040516-9_all.deb
  to pool/main/g/gcc-3.3/gpc-2.1-3.3-doc_3.3.4.20040516-9_all.deb
gpc-2.1-3.3_3.3.4.20040516-9_i386.deb
  to pool/main/g/gcc-3.3/gpc-2.1-3.3_3.3.4.20040516-9_i386.deb
libffi2-dev_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libffi2-dev_3.3.4-9_i386.deb
libffi2_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libffi2_3.3.4-9_i386.deb
libg2c0-dev_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libg2c0-dev_3.3.4-9_i386.deb
libg2c0_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libg2c0_3.3.4-9_i386.deb
libgcj-common_3.3.4-9_all.deb
  to pool/main/g/gcc-3.3/libgcj-common_3.3.4-9_all.deb
libgcj4-awt_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libgcj4-awt_3.3.4-9_i386.deb
libgcj4-common_3.3.4-9_all.deb
  to pool/main/g/gcc-3.3/libgcj4-common_3.3.4-9_all.deb
libgcj4-dev_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libgcj4-dev_3.3.4-9_i386.deb
libgcj4_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libgcj4_3.3.4-9_i386.deb
libobjc1_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libobjc1_3.3.4-9_i386.deb
libstdc++5-3.3-dbg_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libstdc++5-3.3-dbg_3.3.4-9_i386.deb
libstdc++5-3.3-dev_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libstdc++5-3.3-dev_3.3.4-9_i386.deb
libstdc++5-3.3-doc_3.3.4-9_all.deb
  to pool/main/g/gcc-3.3/libstdc++5-3.3-doc_3.3.4-9_all.deb
libstdc++5-3.3-pic_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libstdc++5-3.3-pic_3.3.4-9_i386.deb
libstdc++5_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libstdc++5_3.3.4-9_i386.deb
protoize_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/protoize_3.3.4-9_i386.deb
treelang-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/treelang-3.3_3.3.4-9_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be clos...

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (10.1 KiB)

Message-Id: <email address hidden>
Date: Sat, 14 Aug 2004 21:32:13 -0400
From: Matthias Klose <email address hidden>
To: <email address hidden>
Subject: Bug#263426: fixed in gcc-3.3 1:3.3.4-9

Source: gcc-3.3
Source-Version: 1:3.3.4-9

We believe that the bug you reported is fixed in the latest version of
gcc-3.3, which is due to be installed in the Debian FTP archive:

cpp-3.3-doc_3.3.4-9_all.deb
  to pool/main/g/gcc-3.3/cpp-3.3-doc_3.3.4-9_all.deb
cpp-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/cpp-3.3_3.3.4-9_i386.deb
fixincludes_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/fixincludes_3.3.4-9_i386.deb
g++-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/g++-3.3_3.3.4-9_i386.deb
g77-3.3-doc_3.3.4-9_all.deb
  to pool/main/g/gcc-3.3/g77-3.3-doc_3.3.4-9_all.deb
g77-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/g77-3.3_3.3.4-9_i386.deb
gcc-3.3-base_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/gcc-3.3-base_3.3.4-9_i386.deb
gcc-3.3-doc_3.3.4-9_all.deb
  to pool/main/g/gcc-3.3/gcc-3.3-doc_3.3.4-9_all.deb
gcc-3.3_3.3.4-9.diff.gz
  to pool/main/g/gcc-3.3/gcc-3.3_3.3.4-9.diff.gz
gcc-3.3_3.3.4-9.dsc
  to pool/main/g/gcc-3.3/gcc-3.3_3.3.4-9.dsc
gcc-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/gcc-3.3_3.3.4-9_i386.deb
gcj-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/gcj-3.3_3.3.4-9_i386.deb
gij-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/gij-3.3_3.3.4-9_i386.deb
gnat-3.3-doc_3.3.4-9_all.deb
  to pool/main/g/gcc-3.3/gnat-3.3-doc_3.3.4-9_all.deb
gnat-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/gnat-3.3_3.3.4-9_i386.deb
gobjc-3.3_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/gobjc-3.3_3.3.4-9_i386.deb
gpc-2.1-3.3-doc_3.3.4.20040516-9_all.deb
  to pool/main/g/gcc-3.3/gpc-2.1-3.3-doc_3.3.4.20040516-9_all.deb
gpc-2.1-3.3_3.3.4.20040516-9_i386.deb
  to pool/main/g/gcc-3.3/gpc-2.1-3.3_3.3.4.20040516-9_i386.deb
libffi2-dev_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libffi2-dev_3.3.4-9_i386.deb
libffi2_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libffi2_3.3.4-9_i386.deb
libg2c0-dev_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libg2c0-dev_3.3.4-9_i386.deb
libg2c0_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libg2c0_3.3.4-9_i386.deb
libgcj-common_3.3.4-9_all.deb
  to pool/main/g/gcc-3.3/libgcj-common_3.3.4-9_all.deb
libgcj4-awt_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libgcj4-awt_3.3.4-9_i386.deb
libgcj4-common_3.3.4-9_all.deb
  to pool/main/g/gcc-3.3/libgcj4-common_3.3.4-9_all.deb
libgcj4-dev_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libgcj4-dev_3.3.4-9_i386.deb
libgcj4_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libgcj4_3.3.4-9_i386.deb
libobjc1_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libobjc1_3.3.4-9_i386.deb
libstdc++5-3.3-dbg_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libstdc++5-3.3-dbg_3.3.4-9_i386.deb
libstdc++5-3.3-dev_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libstdc++5-3.3-dev_3.3.4-9_i386.deb
libstdc++5-3.3-doc_3.3.4-9_all.deb
  to pool/main/g/gcc-3.3/libstdc++5-3.3-doc_3.3.4-9_all.deb
libstdc++5-3.3-pic_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libstdc++5-3.3-pic_3.3.4-9_i386.deb
libstdc++5_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/libstdc++5_3.3.4-9_i386.deb
protoize_3.3.4-9_i386.deb
  to pool/main/g/gcc-3.3/protoize_3.3.4-9_i386.deb
treelang-3.3_3...

Changed in gcc-3.3:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.