[gobolinux-users] Bug in Rootless Gobo cripples Compile?

Lucas C. Villa Real lucasvr at gobolinux.org
Wed Feb 21 23:14:46 UTC 2007


On 2/21/07, mpb.mail at gmail.com <mpb.mail at gmail.com> wrote:
> Hi,
>
>  I'm a new Gobo user.  I been have trying to "Compile binutils" inside
>  of a Rootless Gobo environment.  I kept on getting the same strange
>  error.  I also got different (but similarly strange) errors
>  Compile-ing other recipes.
>
>  I think I've located the source of the problem.  I use bash.  Rootless
>  (via .bash_profile) seems to set the following environment variables:
>
> CPLUS_INCLUDE_PATH=/home/zu20070220/System/Links/Headers:
>  C_INCLUDE_PATH=/home/zu20070220/System/Links/Headers:
>
>  Is there some good reason for the colon on the end of those
>  environment variables?
>
>  If there is no good reason, could someone please fix Rootless to
>  remove the colon, as it causes the most vile and insidious build time
>  errors I have ever encountered.  I kept on assuming that the errors
>  were caused by the old versions of gcc and binutils that I was using
>  for bootstrapping.  But eventually I eliminated that possibility.
>
>  The tailing ':' is so nasty because it is equivalent to ':.'
>  This causes gcc to consider '.' to be a 'system include directory'.
>  This causes gcc to ignore '-I.'
>  This causes gcc to include directories in the wrong order.
>  This causes gcc to find the wrong 'config.h' files.
>  This causes many kinds of indecipherable madness.

Eww! Does the following fix work for you? :

export     C_INCLUDE_PATH="${goboPrefix}/System/Links/Headers${C_INCLUDE_PATH:+:$C_INCLUDE_PATH}"
export CPLUS_INCLUDE_PATH="${goboPrefix}/System/Links/Headers${CPLUS_INCLUDE_PATH:+:$CPLUS_INCLUDE_PATH}"

-- 
Lucas
powered by /dev/dsp


More information about the gobolinux-users mailing list