begin  quote
On Wed, 29 Oct 2003 22:20:28 +0000
Mark Fisher <[EMAIL PROTECTED]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Wednesday 29 October 2003 6:00 pm, Spider wrote:
> > grep CFLAGS /etc/make.conf
> >
> > ask yourself. why is "-2" in your CFLAGS that gcc tries to compile
> > with
> > and so clearly says -doesn't work -
> >
> >
> > Changing CC and CPP Won't change the fact that gcc doesn't recognies
> > the command line option "-2" .   This is the same problem as
> > "-yet_exec" and I'm starting to wonder where people come up with
> > theese flags.
> 
> I think im following you correctly, my CFLAGS were '-march=k6-2 -O3
> -pipe'  which I believe is valid.  As altered the variable to 
> '-march=i586 -O3-pipe'  but alas a similar error is produces, on the
> console it displays:

CFLAGS="-march=k6-2 -O3 -pipe" 
and
CFLAGS="-march=i586 -O3 -pipe" 

are both valid lines and should work. (problem earlier was probably that
you changed "k6-2" into "i586 -2"    when editing. )

 

 

> configure:2086: checking if compiler supports -R
> configure:2101: gcc -o conftest -march=i586 -O3 -pipe   conftest.c -R
> /usr/lib  
> - -lxmlparse -lxmltok 1>&5
> gcc: unrecognized option `-R'
> /usr/lib: file not recognized: Is a directory
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 2094 "configure"
> #include "confdefs.h"


This isn't the actual error, but a failed test (that the compiler
supports -R or not. It doesnt as is visible)

The real g++ error is further down in the log. grep for the line "C++
compiler" And you shall find the correct one. (thats the test that
fails)

looking at this output :

g++ -march=i586 -O3 -pipe -L/usr/lib - -ldb-4.0 -Wl,-rpath,/usr/qt/3/lib
-L/usr/qt/3/lib

leads me to believe that the extra "-" there is somewhat strange, but I
can't say for sure until I see more of the log.

 
> I have also re-sync'd my portage tree after which there was a mod_php
> update  to v4.3.3-r3 - the same result however


well, if configure says that your c++ compiler is borked, then theres a
few possibilities:
1) CXXFLAGS or other variable is set to an invald value, example :

g++ -2
g++: unrecognized option `-2'

   this will make it break on configure tests.

2) Other
3) a base library needed is broken. Damaged headerfile, misplaced
configuration for a library or misdetection

4) Dynamic linker is broken

5) gcc is broken.

Note that the "other" takes predecence above most of the other errors ;)



//Spider

Note here 

-- 
begin  .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to