public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34977]  New: GCC 3.4.6 link fails with undefined reference to .hidden symbol __floatdidf (libgcc.a)
@ 2008-01-26  2:39 gcc-bugzilla at gcc dot gnu dot org
  2008-01-26  4:26 ` [Bug c++/34977] " pinskia at gcc dot gnu dot org
  2008-01-26 17:58 ` reid dot madsen at tektronix dot com
  0 siblings, 2 replies; 3+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2008-01-26  2:39 UTC (permalink / raw)
  To: gcc-bugs


        Building Regina-REXX-3.4 from source distribution.  The linker fails
with the following error:

/usr/local/bin/gcc  -O2 -I/usr/local/include  -pthreads -L/usr/local/lib -o
execiser32 execiser.o -L. -lregina -lfl  -lm -lnsl -lsocket -lcrypt -ldl  
-lpthread
/usr/local/bin/ld: execiser32: hidden symbol `__floatdidf' in
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/libgcc.a(_floatdidf.oS) is
referenced by DSO
/usr/local/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status

I've verified that the compiled code has undefined references to the
__floatdidf function.

Environment:
System: SunOS arcade 5.9 Generic_122300-13 sun4u sparc SUNW,Sun-Fire-V490
Architecture: sun4


host: sparc-sun-solaris2.9
build: sparc-sun-solaris2.9
target: sparc-sun-solaris2.9
configured with: ../src/gcc-3.4.6/configure
--prefix=/sea/compilers/native/gcc-3.4.6 --with-local-prefix=/sea/local
--enable-threads --enable-languages=c,c++ --disable-multilib --with-gnu-as
--with-gnu-ld --with-as=/sea/compilers/native/gcc-3.4.6/bin/as
--with-ld=/sea/compilers/native/gcc-3.4.6/bin/ld

How-To-Repeat:
        Untar REXX
        configure --enable-32bit
        make


------- Comment #1 from Reid dot Madsen at tek dot com  2008-01-26 01:10 -------
Fix:
        I know of no workaround.


-- 
           Summary: GCC 3.4.6 link fails with undefined reference to .hidden
                    symbol __floatdidf (libgcc.a)
           Product: gcc
           Version: 3.4.6
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Reid dot Madsen at tek dot com
 GCC build triplet: sparc-sun-solaris2.9
  GCC host triplet: sparc-sun-solaris2.9
GCC target triplet: sparc-sun-solaris2.9


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34977


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/34977] GCC 3.4.6 link fails with undefined reference to .hidden symbol __floatdidf (libgcc.a)
  2008-01-26  2:39 [Bug c++/34977] New: GCC 3.4.6 link fails with undefined reference to .hidden symbol __floatdidf (libgcc.a) gcc-bugzilla at gcc dot gnu dot org
@ 2008-01-26  4:26 ` pinskia at gcc dot gnu dot org
  2008-01-26 17:58 ` reid dot madsen at tektronix dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-01-26  4:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-01-26 01:15 -------
>/usr/local/bin/ld: execiser32: hidden symbol `__floatdidf' in
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/libgcc.a(_floatdidf.oS) is
referenced by DSO


This means one of the libraries are you are using did not link against libgcc. 
This is not a bug in GCC but rather how the build one of the libraries is done,
most likely regina.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34977


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/34977] GCC 3.4.6 link fails with undefined reference to .hidden symbol __floatdidf (libgcc.a)
  2008-01-26  2:39 [Bug c++/34977] New: GCC 3.4.6 link fails with undefined reference to .hidden symbol __floatdidf (libgcc.a) gcc-bugzilla at gcc dot gnu dot org
  2008-01-26  4:26 ` [Bug c++/34977] " pinskia at gcc dot gnu dot org
@ 2008-01-26 17:58 ` reid dot madsen at tektronix dot com
  1 sibling, 0 replies; 3+ messages in thread
From: reid dot madsen at tektronix dot com @ 2008-01-26 17:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from reid dot madsen at tektronix dot com  2008-01-26 17:29 -------
Subject: RE:  GCC 3.4.6 link fails with undefined reference to .hidden symbol
__floatdidf (libgcc.a)

I now understand what was going on...

The configure script for REXX was incorrectly linking the regina.so
using 'ld' instead of 'gcc'.  Thus, all the libraries that gcc would
normally add were missing from the ld command line.

I corrected the configuration to use gcc to perform the link of
regina.so and that fixed the problem.

I've seen many threads on this issue.  Any way to publicize the
solution?

Reid

-----Original Message-----
From: pinskia at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org] 
Sent: Friday, January 25, 2008 7:15 PM
To: Reid.Madsen@tek.com
Subject: [Bug c++/34977] GCC 3.4.6 link fails with undefined reference
to .hidden symbol __floatdidf (libgcc.a)



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-01-26 01:15
-------
>/usr/local/bin/ld: execiser32: hidden symbol `__floatdidf' in
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/libgcc.a(_floatdidf.oS) is
referenced by DSO


This means one of the libraries are you are using did not link against
libgcc. 
This is not a bug in GCC but rather how the build one of the libraries
is done, most likely regina.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
------------------------------------------------------------------------
----
           Severity|critical                    |normal
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34977

------- You are receiving this mail because: ------- You reported the
bug, or are watching the reporter.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34977


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-26 17:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-26  2:39 [Bug c++/34977] New: GCC 3.4.6 link fails with undefined reference to .hidden symbol __floatdidf (libgcc.a) gcc-bugzilla at gcc dot gnu dot org
2008-01-26  4:26 ` [Bug c++/34977] " pinskia at gcc dot gnu dot org
2008-01-26 17:58 ` reid dot madsen at tektronix dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).