unwanted global cflags in Fedora 4 - where are they?

From: fc4user (seawolf_at_scssi.org)
Date: 07/17/05


Date: 17 Jul 2005 11:44:55 -0700

Hi, all

i have asked the following in a number of redhat, fedora and gcc
newsgroups, but no one seems to know:

I'm a newbie at compiling - particularly, at compiling optimally.

On my my Fedora Core 4 I have been having compatibility and version
problems.

FC4 comes with gcc-4.0 as the default gcc . Some new sources (which
compiled nicely on FC3 / gcc3.4) are apparently non-compliant with
gcc-4.0, but, luckily(?) there is a gcc32 package, which I have used to
circumvent that non-compliance.

Still, in spite of, or unrelated to the gcc32 compat package,
Fedora Core 4 seems to present additional gcc problems.
Occasionally, some ./configure scripts and/or make files pull in global
gcc settings from some mysterious configuration, settings such as
 " -mtune=pentium4 "

I am on a pentium3, so, apparently the FC4 installer goofed and
misconfigured the system

the "pentium4" flag is detected as global by cpan, for instance, and
this creates nasty perl installation problems.

Also, i have compiled various modules, which, when modprobe'd, cause
"version magic" errors. E.g.,

"... version magic '2.6.11-1.1369_FC4smp SMP PENTIUMIII REGPARM
4KSTACKS gcc-4.0' should be '2.6.11-1.1369_FC4smp SMP 686 REGPARM
4KSTACKS gcc-4.0' ...
...
... no version magic, tainting kernel "

Not sure if they above is related to the "pentium4" imposition, or
perhaps some other flag

Also, when I set my own CFLAGS, some ./configure scripts combine mine
with the phantom global ones...(!)

Does anyone know where to find these global configuration(s)
for -mtune, -march, -mcpu, etc., for the gcc ?

Thanks in advance

andrew



Relevant Pages

  • Re: Anyone interested in building a vms-like OS?
    ... then you have a good reason for preferring the BSD license over GPL. ... geeks :-) is that it is fast, 5-10 times faster than gcc, while still ... Compiling 10 times faster with almost no optimization does not ... It is compiling much faster but doing less optimizations. ...
    (comp.os.vms)
  • Conexant HCF Modem Problems
    ... Conexant HCF modem, which is a "controllerless" modem, not a HSF which ... files to compile and to install but the problem is when I try to config ... compiling (gcc) mod_osspec.c ...
    (comp.os.linux.hardware)
  • [ANN] macstl 0.1.5 -- Xcode compatibility
    ... The new version also has fixes for older gcc ... Now builds with Xcode 1.0. ... Fixed altivec functions not compiling in gcc 3.1: ...
    (comp.lang.cpp)
  • Re: Finally one site with all the C fundas
    ... was pretty lenient and we did not actively pursue compiling the tool ... the CPU/memory architecture doesn't allow unaligned accesses. ... Also gcc 3.3.6 would have spotted that if invoked with the '-W' ... Casting the return value of mallocis never necessary ...
    (comp.lang.c)
  • Re: A bug in gnat/gcc 3.3.3?
    ... > Compiling ASIS and GLADE for a newer version isn't that difficult - ... harping on GCC 3.4, but I'd like reports about ASIS and GLADE for GCC ... GCC 3.4 does not "have" PolyORB, ...
    (comp.lang.ada)