This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/12902] New: -rdynamic flag causes link failure onx86_64-sun-solaris2.10


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]