« Redefining key binding of Screen to avoid conflicts with Emacs | Main | 看病时常用到的英文 »

March 01, 2006

The compile error "invalid option `tune=pentium4'"

Note that this error doesn't necessarily relate to perl.

http://www.issociate.de/board/goto/601229/Compile_fails_***_The_httpd_binary_was_not_found.html

Ken Gillett wrote:
> [root [at] neXus mod_perl]# make
> cd "src/modules/perl" && make
> make[1]: Entering directory `/usr/src/mod_perl-2.0.0-RC3/src/modules/perl'
> gcc -I/usr/src/mod_perl-2.0.0-RC3/src/modules/perl
[...]
> -D_SVID_SOURCE -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -fPIC \
> -c mod_perl.c && mv mod_perl.o mod_perl.lo
> cc1: invalid option `tune=pentium4'

that means that your perl wasn't built with the same gcc that you've on
your machine. It's your perl that suggests modperl to use -mtune=pentium
as you can see:

> config_args='-des -Doptimize=-O2 -g -pipe -m32 -march=i386
> -mtune=pentium4 -Dversion=5.8.5 -Dmyh

rebuild perl using the compiler you have on *your* machine and then return
on the modperl build process and you will be fine.

Posted by Roy at March 1, 2006 12:58 AM

Comments

Post a comment








Remember Me?