public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/12902] New: -rdynamic flag causes link failure on x86_64-sun-solaris2.10
@ 2011-06-16 20:08 tim.mooney at ndsu dot edu
  2012-04-20 17:30 ` [Bug build/12902] " tim.mooney at ndsu dot edu
  0 siblings, 1 reply; 2+ messages in thread
From: tim.mooney at ndsu dot edu @ 2011-06-16 20:08 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12902

           Summary: -rdynamic flag causes link failure on
                    x86_64-sun-solaris2.10
           Product: gdb
           Version: 7.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
        AssignedTo: unassigned@sourceware.org
        ReportedBy: tim.mooney@ndsu.edu


I'm building gdb-7.2 on x86_64-sun-solaris2.10 (Solaris 10 update6, *not*
OpenSolaris) with the Sun Workshop 12u1 tools.

configure is deciding that the "dynamic export flag" for the linker is
-rdynamic:

checking for the dynamic export flag... -rdynamic

However, the Solaris linker does not understand that flag, so linking later
fails:

cc -Xa -xs -g -xtarget=native -m64 -xarch=native -I/local/gnu/include
-I/local/g
nu/include -I/local/include   -L/local/gnu/lib/64 -L/local/gnu/lib/64
-L/local/l
ib/64 -rdynamic  \
        -o gdb gdb.o libgdb.a \
           ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a
/lo
cal/gnu/lib/64/libintl.so -lc -R/local/gnu/lib/64 ../libiberty/libiberty.a
../li
bdecnumber/libdecnumber.a    -ldl -lcurses -lz -lsocket -lnsl -lm    -lsocket
-l
nsl -lrt -ldl -lm -lpython2.6 /local/lib/64/libexpat.so -R/local/lib/64
../libib
erty/libiberty.a  gnulib/libgnu.a 
cc: Warning: Option -dynamic passed to ld, if ld is invoked, ignored otherwise
ld: fatal: option -d has illegal argument `ynamic'
ld: fatal: Flags processing errors
gmake[2]: *** [gdb] Error 1
gmake[2]: Leaving directory `/local/src/RPM/BUILD/gdb-7.2/gdb'
gmake[1]: *** [install-gdb] Error 2
gmake[1]: Leaving directory `/local/src/RPM/BUILD/gdb-7.2'
gmake: *** [install] Error 2


Hacking the -rdynamic out of the relevant Makefiles allows the build to
proceed, but I'm not even certain what the intent is with the flag so I don't
know if there's flag that would be (somewhat) equivalent that I could instead
use with the Solaris ld.

This problem was not present with gdb-7.0.1.  I never tried gdb-7.1, so I don't
know if it was present there.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug build/12902] -rdynamic flag causes link failure on x86_64-sun-solaris2.10
  2011-06-16 20:08 [Bug build/12902] New: -rdynamic flag causes link failure on x86_64-sun-solaris2.10 tim.mooney at ndsu dot edu
@ 2012-04-20 17:30 ` tim.mooney at ndsu dot edu
  0 siblings, 0 replies; 2+ messages in thread
From: tim.mooney at ndsu dot edu @ 2012-04-20 17:30 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12902

tim.mooney at ndsu dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|7.2                         |7.4

--- Comment #1 from tim.mooney at ndsu dot edu 2012-04-20 17:29:15 UTC ---
I just tested gdb-7.4, and this issue is still present there.  Updating version
to reflect that.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2012-04-20 17:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-16 20:08 [Bug build/12902] New: -rdynamic flag causes link failure on x86_64-sun-solaris2.10 tim.mooney at ndsu dot edu
2012-04-20 17:30 ` [Bug build/12902] " tim.mooney at ndsu dot edu

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).