* [Bug other/54671] gcc 4.7.2 -Wl,--no-ctors-in-init-array causes binutils test failure, works with 4.7.1
2012-09-22 18:59 [Bug other/54671] New: gcc 4.7.2 -Wl,--no-ctors-in-init-array causes binutils test failure, works with 4.7.1 ncahill_alt at yahoo dot com
@ 2012-09-22 19:00 ` ncahill_alt at yahoo dot com
2012-09-24 9:29 ` [Bug other/54671] [4.7/4.8 Regression] " rguenth at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: ncahill_alt at yahoo dot com @ 2012-09-22 19:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54671
--- Comment #1 from ncahill_alt at yahoo dot com 2012-09-22 19:00:06 UTC ---
gcc -v:
Using built-in specs.
COLLECT_GCC=/usr/i686-pc-linux-gnu/gcc-bin/4.7.2/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-linux-gnu/4.7.2/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.7.2/configure --disable-bootstrap --disable-libada
--disable-ld --disable-gold --enable-lto --enable-libssp
--enable-cloog-backend=isl --without-cloog --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.7.2
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.7.2/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.7.2
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.7.2/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.7.2/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.7.2/include/g++-v4
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
--disable-fixed-point --without-ppl --enable-nls --without-included-gettext
--with-system-zlib --disable-werror --enable-secureplt --disable-multilib
--enable-libmudflap --disable-libgomp
--with-python-dir=/share/gcc-data/i686-pc-linux-gnu/4.7.2/python
--enable-checking=release --disable-libgcj --enable-languages=c,c++,fortran,lto
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/
Thread model: posix
gcc version 4.7.2 (GCC)
Neil.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/54671] [4.7/4.8 Regression] gcc 4.7.2 -Wl,--no-ctors-in-init-array causes binutils test failure, works with 4.7.1
2012-09-22 18:59 [Bug other/54671] New: gcc 4.7.2 -Wl,--no-ctors-in-init-array causes binutils test failure, works with 4.7.1 ncahill_alt at yahoo dot com
2012-09-22 19:00 ` [Bug other/54671] " ncahill_alt at yahoo dot com
@ 2012-09-24 9:29 ` rguenth at gcc dot gnu.org
2012-09-24 10:14 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-24 9:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54671
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |i?86-*-*
Known to work| |4.7.1
Target Milestone|--- |4.7.3
Summary|gcc 4.7.2 |[4.7/4.8 Regression] gcc
|-Wl,--no-ctors-in-init-arra |4.7.2
|y causes binutils test |-Wl,--no-ctors-in-init-arra
|failure, works with 4.7.1 |y causes binutils test
| |failure, works with 4.7.1
Known to fail| |4.7.2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/54671] [4.7/4.8 Regression] gcc 4.7.2 -Wl,--no-ctors-in-init-array causes binutils test failure, works with 4.7.1
2012-09-22 18:59 [Bug other/54671] New: gcc 4.7.2 -Wl,--no-ctors-in-init-array causes binutils test failure, works with 4.7.1 ncahill_alt at yahoo dot com
2012-09-22 19:00 ` [Bug other/54671] " ncahill_alt at yahoo dot com
2012-09-24 9:29 ` [Bug other/54671] [4.7/4.8 Regression] " rguenth at gcc dot gnu.org
@ 2012-09-24 10:14 ` jakub at gcc dot gnu.org
2012-09-24 20:14 ` ncahill_alt at yahoo dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-24 10:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54671
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-24 10:13:53 UTC ---
I think this is a user bug. If gcc is configured against binutils that support
conversion of ctors into init_array, then it will assume it, obviously you
can't use --no-ctors-in-init-array then, you'd need to configure gcc not to
assume it.
Why do you need to use that option (actually, I wonder why the linker has that
option at all)?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/54671] [4.7/4.8 Regression] gcc 4.7.2 -Wl,--no-ctors-in-init-array causes binutils test failure, works with 4.7.1
2012-09-22 18:59 [Bug other/54671] New: gcc 4.7.2 -Wl,--no-ctors-in-init-array causes binutils test failure, works with 4.7.1 ncahill_alt at yahoo dot com
` (2 preceding siblings ...)
2012-09-24 10:14 ` jakub at gcc dot gnu.org
@ 2012-09-24 20:14 ` ncahill_alt at yahoo dot com
2012-09-25 19:23 ` pluto at agmk dot net
2012-11-07 18:16 ` jakub at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: ncahill_alt at yahoo dot com @ 2012-09-24 20:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54671
--- Comment #3 from ncahill_alt at yahoo dot com 2012-09-24 20:14:04 UTC ---
>From what I understand, gold's failing test assumes that gcc will make
available in general the old functionality, functionality that certain BSD
derived systems lacking the .init_array ELF section require(d), but which glibc
has not used in 10 years. What can I say, the test is wrong.
I will report this to binutils, that the initpri3b test should disclaim or run
only when the system-default is a separate .ctors section.
Thank you, Jakub, for the quick response and clarification.
Neil.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/54671] [4.7/4.8 Regression] gcc 4.7.2 -Wl,--no-ctors-in-init-array causes binutils test failure, works with 4.7.1
2012-09-22 18:59 [Bug other/54671] New: gcc 4.7.2 -Wl,--no-ctors-in-init-array causes binutils test failure, works with 4.7.1 ncahill_alt at yahoo dot com
` (3 preceding siblings ...)
2012-09-24 20:14 ` ncahill_alt at yahoo dot com
@ 2012-09-25 19:23 ` pluto at agmk dot net
2012-11-07 18:16 ` jakub at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: pluto at agmk dot net @ 2012-09-25 19:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54671
--- Comment #4 from Pawel Sikora <pluto at agmk dot net> 2012-09-25 19:23:15 UTC ---
(In reply to comment #2)
> I think this is a user bug. If gcc is configured against binutils that support
> conversion of ctors into init_array, then it will assume it, obviously you
> can't use --no-ctors-in-init-array then, you'd need to configure gcc not to
> assume it.
> Why do you need to use that option (actually, I wonder why the linker has that
> option at all)?
e.g. i'd like to build an application for an old enterprise distro
(which doesn't support init/fini arrays) on my brand new distro.
-Wl,--no-ctors-in-init-array works perfectly fine in this case.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/54671] [4.7/4.8 Regression] gcc 4.7.2 -Wl,--no-ctors-in-init-array causes binutils test failure, works with 4.7.1
2012-09-22 18:59 [Bug other/54671] New: gcc 4.7.2 -Wl,--no-ctors-in-init-array causes binutils test failure, works with 4.7.1 ncahill_alt at yahoo dot com
` (4 preceding siblings ...)
2012-09-25 19:23 ` pluto at agmk dot net
@ 2012-11-07 18:16 ` jakub at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-11-07 18:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54671
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-07 18:16:12 UTC ---
You should then configure your compiler with --disable-initfini-array.
^ permalink raw reply [flat|nested] 7+ messages in thread