This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [libstdc++] Un-precious the CC-related variables


 > From: Alexandre Oliva <aoliva@redhat.com>
 > 
 > On Aug 13, 2003, Phil Edwards <phil@jaj.com> wrote:
 > 
 > > Perhaps 'cc -n32' results in LD being set to '/usr/bin/ld -n32'?  That'd be
 > > my initial not-really-thought-about-it guess.
 > 
 > If LD gets propagated through the environment to multilib's configury,
 > that would be it.  We used to have code somewhere to prevent this, though.
 > 
 > 
 > >> Strangely, it only fails when I do a serial make.  Parallel make -j2
 > >> or higher seems to work. (?)
 > 
 > > Absolutely no idea.  That's freaky weird.
 > 
 > My guess: if libf77 is configured before libstdc++, it caches the
 > right values.  If libf77 is configured after libstdc++ stores the
 > wrong value in the cache, we lose.

You're probably right.  In a serial make, I think libstdc++ goes
first.  I did a diff of the file mips-sgi-irix6.5/mabi=64/config.cache
between a serial build and a parallel build.  I would think I
shouldn't see any differences, but I do.  The parallel (working) one
is the original '<' file and the serial (failing) one is the resulting
'>' file in this diff.

Note in particular the value of lt_cv_path_LD.  But there are other
differences, I can't decide if they're all harmless or reveal other
potential problems in addition to the obvious one I'm having.  Another
note, some variable have different values in each cache, but others
only appear in one!



3,5c3,4
< # scripts and configure runs, see configure's option --config-cache.
< # It is not useful on other systems.  If it contains results you don't
< # want to keep, you may remove or edit it.
---
> # scripts and configure runs.  It is not useful on other systems.
> # If it contains results you don't want to keep, you may remove or edit it.
7,8c6,13
< # config.status only pays attention to the cache file if you give it
< # the --recheck option to rerun configure.
---
> # By default, configure uses ./config.cache as the cache file,
> # creating it if it does not exist already.  You can give configure
> # the --cache-file=FILE option to use a different cache file; that is
> # what configure does when it calls configure scripts in
> # subdirectories, so they share the cache.
> # Giving --cache-file=/dev/null disables caching, for debugging configure.
> # config.status only pays attention to the cache file if you give it the
> # --recheck option to rerun configure.
10,13d14
< # `ac_cv_env_foo' variables (set or unset) will be overridden when
< # loading this file, other *unset* `ac_cv_foo' will be assigned the
< # following values.
< 
25,36c26,37
< ac_cv_env_CPPFLAGS_set='set'
< ac_cv_env_CPPFLAGS_value='-O2 -g'
< ac_cv_env_CPP_set=''
< ac_cv_env_CPP_value=''
< ac_cv_env_CXXCPP_set=''
< ac_cv_env_CXXCPP_value=''
< ac_cv_env_build_alias_set='set'
< ac_cv_env_build_alias_value='mips-sgi-irix6.5'
< ac_cv_env_host_alias_set='set'
< ac_cv_env_host_alias_value='mips-sgi-irix6.5'
< ac_cv_env_target_alias_set='set'
< ac_cv_env_target_alias_value='mips-sgi-irix6.5'
---
> ac_cv_env_CPPFLAGS_set=${ac_cv_env_CPPFLAGS_set='set'}
> ac_cv_env_CPPFLAGS_value=${ac_cv_env_CPPFLAGS_value='-O2 -g'}
> ac_cv_env_CPP_set=${ac_cv_env_CPP_set=''}
> ac_cv_env_CPP_value=${ac_cv_env_CPP_value=''}
> ac_cv_env_CXXCPP_set=${ac_cv_env_CXXCPP_set=''}
> ac_cv_env_CXXCPP_value=${ac_cv_env_CXXCPP_value=''}
> ac_cv_env_build_alias_set=${ac_cv_env_build_alias_set='set'}
> ac_cv_env_build_alias_value=${ac_cv_env_build_alias_value='mips-sgi-irix6.5'}
> ac_cv_env_host_alias_set=${ac_cv_env_host_alias_set='set'}
> ac_cv_env_host_alias_value=${ac_cv_env_host_alias_value='mips-sgi-irix6.5'}
> ac_cv_env_target_alias_set=${ac_cv_env_target_alias_set='set'}
> ac_cv_env_target_alias_value=${ac_cv_env_target_alias_value='mips-sgi-irix6.5'}
261d261
< ac_cv_header_sched_h=${ac_cv_header_sched_h='yes'}
297a298
> ac_cv_lib_m_drem=${ac_cv_lib_m_drem='yes'}
315a317
> ac_cv_prog_ac_ct_STRIP=${ac_cv_prog_ac_ct_STRIP='strip'}
342a345
> ac_cv_type_signal=${ac_cv_type_signal='void'}
447a451
> libf2c_cv_has_g77_builtin_types=${libf2c_cv_has_g77_builtin_types='yes'}
458c462
< lt_cv_path_LD=${lt_cv_path_LD='/usr/bin/ld'}
---
> lt_cv_path_LD=${lt_cv_path_LD='/usr/bin/ld -n32'}
462d465
< objc_cv_gthread_flags=${objc_cv_gthread_flags=''}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]