Re: Weird gcc parameter with RC5
| From: | Olivier Cahagne | Date: | Wed, 13 Dec 2000 18:48:56 +0000 |
| Subject: | Re: Weird gcc parameter with RC5 | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-1839@lists.php.net to get a copy of this message | ||
> > [...]
> > gcc: unrecognized option `-qlanglvl=ansi'
> > [...]
> >
> > I get this all the time, any idea ?
>
> Can you please post the complete gcc.. line as well as gcc
> -dumpspecs?
Here's an extract (the final step building php), this parameter gets
included every time:
BTW, where can I find RC3 or 4 ? I deleted them and can't find them anymore
on php.net
./configure && make
[...]
Making all in .
make[1]: Entering directory `/home/cahagn_o/php/php-4.0.4RC5'
/bin/sh /home/cahagn_o/php/php-4.0.4RC5/libtool --silent --mode=link
gcc -qlanglvl=ansi -I. -I/home/cahagn_o/php/php-4.0.4RC5/ -I/home/cahagn_o/
php/php-4.0.4RC5/main -I/home/cahagn_o/php/php-4.0.4RC5 -I/home/cahagn_o/php
/php-4.0.4RC5/Zend -I/home/cahagn_o/php/php-4.0.4RC5/ext/mysql/libmysql -I/h
ome/cahagn_o/php/php-4.0.4RC5/ext/xml/expat/xmltok -I/home/cahagn_o/php/php-
4.0.4RC5/ext/xml/expat/xmlparse -I/home/cahagn_o/php/php-4.0.4RC5/TSRM -DXM
L_BYTE_ORDER=12 -g -O2 -o php -export-dynamic stub.lo libphp4.la
gcc: unrecognized option `-qlanglvl=ansi'
make[1]: Leaving directory `/home/cahagn_o/php/php-4.0.4RC5'
Here's gcc -dumpspecs output (this is a basic RedHat 6.2 with the original
gcc/egcs):
pc2% gcc -dumpspecs|more
*asm:
%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}
*asm_final:
%|
*cpp:
%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__}
%{posix:-D_PO
SIX_SOURCE} %{pthread:-D_REENTRANT}
*cc1:
%(cc1_cpu) %{profile:-p}
*cc1plus:
*endfile:
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
*link:
-m elf_i386 %{shared:-shared} %{!shared: %{!ibcs: %{!static:
%{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker
/lib/ld-linux.
so.2}} %{static:-static}}}
*lib:
%{shared: -lc --version-script libgcc.map%s} %{!shared:
%{mieee-fp:-lieee} %{
pthread:-lpthread} %{profile:-lc_p} %{!profile: -lc}}
*libgcc:
-lgcc
*startfile:
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s}
%{!p:%{pr
ofile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s
%{!
shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
*switches_need_spaces:
*signed_char:
%{funsigned-char:-D__CHAR_UNSIGNED__}
*predefines:
-D__ELF__ -Dunix -Di386 -D__i386__ -Dlinux -Asystem(posix)
*cross_compile:
0
*version:
egcs-2.91.66
*multilib:
. ;
*multilib_defaults:
*multilib_extra:
*multilib_matches:
*linker:
collect2
*cpp_cpu_default:
-D__tune_i386__
*cpp_cpu:
-Asystem(unix) -Acpu(i386) -Amachine(i386)
%{!ansi:-Di386} -D__i386 -D__i386__ %
{march=i486:-D__i486 -D__i486__}
%{march=pentium|march=i586:-D__pentium -D__pent
ium__ } %{march=pentiumpro|march=i686:-D__pentiumpro -D__pentiumpro__ }
%{m386|m
cpu=i386:-D__tune_i386__ } %{m486|mcpu=i486:-D__tune_i486__ }
%{mpentium|mcpu=pe
ntium|mcpu=i586:-D__tune_pentium__ }
%{mpentiumpro|mcpu=pentiumpro|mcpu=i686:-D_
_tune_pentiumpro__ }
%{!mcpu*:%{!m386:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}}
}
*cc1_cpu:
%{!mcpu*: %{m386:-mcpu=i386} %{mno-486:-mcpu=i386 -march=i386}
%{m486:-mcpu=i486
} %{mno-386:-mcpu=i486 -march=i486} %{mno-pentium:-mcpu=i486 -march=i486}
%{mpen
tium:-mcpu=pentium} %{mno-pentiumpro:-mcpu=pentium}
%{mpentiumpro:-mcpu=pentiump
ro}}