public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* -lpthread -lstdc++ crashes on IRIX 6.5
@ 2011-02-21 19:31 Peter O'Gorman
  2011-02-22  0:49 ` Jonathan Wakely
  0 siblings, 1 reply; 8+ messages in thread
From: Peter O'Gorman @ 2011-02-21 19:31 UTC (permalink / raw)
  To: gcc-help; +Cc: ro

Hi,

We're currently using gcc-4.4.

On IRIX 6.5, we get crashes if -lpthread is ordered before
-lstdc++ (warnings about "not used for resolving any symbol" removed
below):
% echo 'int main() {}' >a.cpp
% g++ a.cpp -lpthread; ./a.out; echo $?
zsh: segmentation fault (core dumped)  ./a.out
139
% g++ a.cpp -pthread; ./a.out; echo $? 
0
% g++ a.cpp -lstdc++ -lpthread; ./a.out; echo $?
0

With gcc-4.2.x we had a similar issue, but on Tru64, that seems to be
fixed in 4.4.5. We have not tried trunk yet, is the problem already
fixed there?

We're looking at reordering -lpthread to come after -lstdc++ by patching
cp/g++spec.c to fix this, but perhaps that is the wrong approach?

Thanks for any help,
Peter
-- 
Peter O'Gorman
pogma@thewrittenword.com

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

end of thread, other threads:[~2011-02-22 20:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-21 19:31 -lpthread -lstdc++ crashes on IRIX 6.5 Peter O'Gorman
2011-02-22  0:49 ` Jonathan Wakely
2011-02-22  1:06   ` Peter O'Gorman
2011-02-22  1:24     ` Jonathan Wakely
2011-02-22  1:45       ` Peter O'Gorman
2011-02-22 20:18         ` Peter O'Gorman
2011-02-22 20:50           ` Rainer Orth
2011-02-22 22:54             ` Peter O'Gorman

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