Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc 3.2/binutils 2.13: system calls segfault
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mhuhtala
n00b
n00b


Joined: 27 Oct 2002
Posts: 16
Location: Finland

PostPosted: Mon Dec 23, 2002 11:48 am    Post subject: gcc 3.2/binutils 2.13: system calls segfault Reply with quote

Ran into a very strange problem trying to use a C++ program compiled
on Gentoo 1.4. I have got

gcc 3.2
binutils 2.13.90.0.4 20020814

The program compiles with some warnings about the use of old standard
library headers (strstream.h etc.) and other minor things. I have
compiled a lot of stuff on this system that give the same warnings,
but the binaries have always run more or less without problems. This
one, however, segfaults at the first system call, which happens to be
times(). If I comment that out in the source and recompile, it will
segfault at next system call. Gdb does not show anything other than a
SIGSEV at each and every system call. The binary seems somehow
completely incorrectly linked. GCC 3.2 is the only compiler on the
system.

The same source compiles and executes correctly on Mandrake 8.2 with
GCC 3.2 and binutils 2.12.xx (compiler and binutils updated from
standard installation). This binary will also only segfault on
Gentoo. I haven't got the faintest idea what is going on. Is this sort
of thing known to happen with binutils 2.13.90?

M
Back to top
View user's profile Send private message
Starfox
Tux's lil' helper
Tux's lil' helper


Joined: 04 Sep 2002
Posts: 93

PostPosted: Mon Dec 23, 2002 3:50 pm    Post subject: Reply with quote

if ( CFLAGS="-march=k6 ..." ) then try CFLAGS="-march=i586 ..."
else don't know! :cry:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum