This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

Re: Building LyX 1.2.0 on HP-UX 11.11 with G++ 3.2


In message <20020822114834.B9686@oolong.il.thewrittenword.com>, Albert Chin wri
tes:
 >What's odd is that the 3.2-prerelease provided by HP works fine. I
 >don't necessarily think binutils is the problem. I replaced the 'as' I
 >built with the one provided in their package and have the same
 >problem. So, GCC must be emitting the 't'.
The underlying *object file format* can't handle weak symbols.  Any attempt
to use them will ultimately fail.


[ ... ]
 >(HP 3.2-prerelease)
 >$ g++ -v
 >Reading specs from /usr/local/lib/gcc-lib/hppa1.1-hp-hpux11.00/3.2/specs
 >Configured with: ../gcc/configure --enable-languages=c,c++
 >--host=hppa1.1-hp-hpux11.00 --target=hppa1.1-hp-hpux11.00
 >--with-ld=/usr/ccs/bin/ld --with-gnu-as --enable-libstdcxx-v3
 >--disable-checking
 >
 >I rebuild the offending source with -s and compared the .s files from
 >both compilers. I get lots of:
 >-       .weak   _ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_EPKS3_RKS6_
 >-       .EXPORT _ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_EPKS3_RKS6_,ENTRY,
 >PRIV_LEV=3,ARGW0=GR,ARGW1=GR,RTNVAL=GR
 >+       .PARAM _ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_EPKS3_RKS6_,PRIV_LE
 >V=3,ARGW0=GR,ARGW1=GR,RTNVAL=GR
Looks like they (HP) are using aborted code -- we tried to make SOM
secondary definitions masquerade as weak symbols, but in the end it won't
work due to limitations of secondary definitions.  Trust me, if they're
emitting .weak for SOM, it's going to break -- it's just a matter of time.

Of course, the HP provided binaries for GNU tools have always been broken in
various ways -- I strongly recommend against using them.  

jeff


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