develooper Front page | perl.perl5.porters | Postings from February 2006

output of "-V" inconsistent?

From:
Linda W
Date:
February 24, 2006 12:51
Subject:
output of "-V" inconsistent?
Message ID:
43FF715E.2080306@tlinx.org
I've been playing with different compile options and wanted to verify
the options that were used in generating a instance of perl sitting in
its build directory with its libs.

In the build dir, I ran "./perl -Ilib -V".

Two lines from this seemed to be in conflict.  I was wondering if this
was normally possible or "out of the ordinary":

"config_args" dumps as:
config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl -D
i_db -Di_dbm -Di_ndbm -Di_gdbm -Dprefix=/usr -Dvendorprefix=/usr 
-Dinstallusrbinperl -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Doptimize=-O2 
-march=i686 -mcpu=pentium3
-fweb -funit-at-a-time -ftracer -frename-registers -fomit-frame-pointer 
-Wall -pipe'

First observation: it doesn't appear to show embedded quotes, the
-Doptimize tag had a value of -Doptimize="-O2 -march=i686 -mcpu=pentium3
-fweb -funit-at-a-time -ftracer -frename-registers -fomit-frame-pointer 
-Wall -p
ipe", however, it seems to mostly do the right thing, *but* a bit 
farther down
I see:

  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -march=i686 -fweb -funit-at-a-time -ftracer 
-frename-registers -fomit-frame-pointer -Wall -pipe',
    cppflags='-fno-strict-aliasing -pipe -I/usr/local/include 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64'
    ccversion='', gccversion='3.3.5 20050117 (prerelease) (SUSE Linux)', 
gccosandvers=''

Note the value for "optimize": the "-mcpu=pentium3" isn't listed.  Is this
an intentional or accidental omission? 

My basic question is: should this even be possible?  I.e. - are the 
arguments
to "config" and "optimize" parsed in different places such that the
"-mcpu=pentium3" might have been somehow dropped so it isn't included in the
output of "-V"?

Not a big deal -- I can just rebuild, but was wondering if this should
even be possible?


thanks,
Linda



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About