This is the mail archive of the gcc-bugs@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]

[Bug c++/50230] [4.5 regression] compiling CMake on PA-RISC fails due to unreachable symbols


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

--- Comment #2 from Rolf Eike Beer <eike@sf-mail.de> 2011-09-05 15:48:10 UTC ---
> It is possible your tools are miscompiled.  For example, some
> fixes to reorg were backported in May.  These caused GCC to be
> miscompiled and produce incorrect code when optimizing at -O1 and above.
>
> Given that I can't duplicate the problem, further information is needed.

Seems that trying to debug this issue now also destroyed the version I
have on my system (or just the libstdc++, I don't know). What I did today
is:

rebuild binutils 2.21.1 using the gcc-4.5.3 I have installed
rebuild binutils 2.21.1 using the gcc-4.5.3 I have installed once again
rebuild gcc 4.5.3
rebuild binutils 2.21.1 again
created new build directory
cd this build directory
/path/to/cmake-next/configure
make

This fails with:

/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/../../../../hppa2.0-unknown-linux-gnu/bin/ld:
cmPropertyDefinitionMap.o(.text._ZN9__gnu_cxx13new_allocatorISt4pairIKSsP22cmDocumentationSectionEE9constructEPS5_RKS5_[__gnu_cxx::new_allocator<std::pair<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const,
cmDocumentationSection*> >::construct(std::pair<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const,
cmDocumentationSection*>*, std::pair<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const,
cmDocumentationSection*> const&)]+0x54): cannot reach
000025c2__ZNSt4pairIKSsP22cmDocumentationSectionEC1ERKS3_+0, recompile
with -ffunction-sections
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/../../../../hppa2.0-unknown-linux-gnu/bin/ld:
cmPropertyDefinitionMap.o(.text._ZN9__gnu_cxx13new_allocatorISt4pairIKSsP22cmDocumentationSectionEE9constructEPS5_RKS5_[__gnu_cxx::new_allocator<std::pair<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const,
cmDocumentationSection*> >::construct(std::pair<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const,
cmDocumentationSection*>*, std::pair<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const,
cmDocumentationSection*> const&)]+0x54): cannot handle R_PARISC_PCREL17F
for std::pair<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const,
cmDocumentationSection*>::pair(std::pair<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const,
cmDocumentationSection*> const&)
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.5.3/../../../../hppa2.0-unknown-linux-gnu/bin/ld:
final link failed: Bad value

objdump shows this:

objdump -x ./Bootstrap.cmk/cmPropertyDefinitionMap.o | grep
_ZN9__gnu_cxx13new_allocatorISt4pairIKSsP22cmDocumentationSectionEE9constructEPS5_RKS5
332
.text._ZN9__gnu_cxx13new_allocatorISt4pairIKSsP22cmDocumentationSectionEE9constructEPS5_RKS5_
000000a0  00000000  00000000  00006008  2**2
00000000 l    d 
.text._ZN9__gnu_cxx13new_allocatorISt4pairIKSsP22cmDocumentationSectionEE9constructEPS5_RKS5_
 00000000
.text._ZN9__gnu_cxx13new_allocatorISt4pairIKSsP22cmDocumentationSectionEE9constructEPS5_RKS5_
00000000  w    F
.text._ZN9__gnu_cxx13new_allocatorISt4pairIKSsP22cmDocumentationSectionEE9constructEPS5_RKS5_
 000000a0
_ZN9__gnu_cxx13new_allocatorISt4pairIKSsP22cmDocumentationSectionEE9constructEPS5_RKS5_
000009e0 R_PARISC_SEGREL32 
.text._ZN9__gnu_cxx13new_allocatorISt4pairIKSsP22cmDocumentationSectionEE9constructEPS5_RKS5_
000009e4 R_PARISC_SEGREL32 
.text._ZN9__gnu_cxx13new_allocatorISt4pairIKSsP22cmDocumentationSectionEE9constructEPS5_RKS5_+0x0000009c
00000054 R_PARISC_PCREL17F 
_ZN9__gnu_cxx13new_allocatorISt4pairIKSsP22cmDocumentationSectionEE9constructEPS5_RKS5_
RELOCATION RECORDS FOR
[.text._ZN9__gnu_cxx13new_allocatorISt4pairIKSsP22cmDocumentationSectionEE9constructEPS5_RKS5_]:
000013b0 R_PARISC_PCREL32 
.text._ZN9__gnu_cxx13new_allocatorISt4pairIKSsP22cmDocumentationSectionEE9constructEPS5_RKS5_+0x00000008


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