Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache log: "illegal instruction" [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wetter
n00b
n00b


Joined: 13 Jan 2004
Posts: 26
Location: amsterdam

PostPosted: Thu Oct 05, 2006 2:39 pm    Post subject: apache log: "illegal instruction" [solved] Reply with quote

hi everybody,

i just freshly installed gentoo 2006.1 on a pentium4 system.

make.conf:
x86
cflags: -march=prescott -O2 -pipe -fomit-frame-pointer
makeopts: -j3

lamp installs no problem, apachectl checkconfig finds everythin ok, apache starts, i can see phpinfo() output but then, wenn i send a request to a vhost running a typo3 installation all goes terribly wrong.

links says: 'error reading from socket'
in apaches error log i find child pid 2134 exit signal illegal instruction(4)
it is always 4

i reinstalled from scratch already with the same result. it is a 2.6.18 kernel apache2 and php5 the only gcc's version on that system so far is 4.1.1.

please help and sorry, i've posted this on gentooinstall as well, i only have some hours left to go (ubuntu cd already next to me) :(

...at the moment i rebuild world with -j1 and default -march 686 ...

hope you can help me, thank you,

best regards, jo


edit:

changing the cflags maybe solved the issue. the rebuild is still running but apache and php are already done. i now use '-o2 -march=i686 -pipe'

if this is really it, should i maybe add a note to the wiki page where i found the "safe cflags" for my cpu?


Last edited by wetter on Sun Oct 08, 2006 7:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Fri Oct 06, 2006 3:53 am    Post subject: Reply with quote

If you do leave a note on the wiki article be sure to include that these flags seem to be safe with gcc 4.1.1, leave to other flags unchanged for now.
Back to top
View user's profile Send private message
wetter
n00b
n00b


Joined: 13 Jan 2004
Posts: 26
Location: amsterdam

PostPosted: Sun Oct 08, 2006 7:07 pm    Post subject: wrong cflags Reply with quote

the wiki is fine, the error was: one of the boxes had a pentium4 and the other one a pentium4-prescott. unforutnately the resulting "illegal instruction" errors appeared very late. in running apache and compiling gtk+.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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