[haiku-development] Re: Fwd: [Haiku] #7203: gcc4 seems to have an issue locating libraries

  • From: scottmc <scottmc2@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 6 Mar 2011 22:50:36 +0000

>> the build system won't install both sets of
>>> libraries -- both due to the way optional packages are tracked with
>>> the subjam process and not automagically moving the affected bits into
>>> the alt-gcc-subdir. ...Or am i overlooking something?
>>
>> Ah, now I'm getting what you're talking about.
>
> :)
>
>> Indeed, ATM gcc 4 library
>> packages are not installed correctly on a gcc 2 hybrid, since there isn't any
>> package built in such a way (i.e. with the libraries in the gcc4 subdirectory
>> and ideally not clashing with the other version either) and the build system
>> isn't handling this case anyway. I guess this also means that one actually
>> would have to build those packages under a gcc 2 hybrid.
>
> Would it be worthwhile to update the build system to support
> installing both sets & automatically moving the necessary bits into
> the alt-gcc-subdirectory?
>
> Possibly similar to how isGCCAgnostic was implemented...
>  * replace OptionalPackages & friends to use separate `if gcc2 ||
> hybrid`,  `if gcc4 || hybrid` tests instead of the current if-else
> logic.
>  * include a 'gcc2' or 'gcc4' argument to indicate "built for gcc2" or
> "built for gcc4" with the InstallOptionalHaikuImagePackage invocation
>  * modify build_haiku_image::extractFile(), to perform magic. how --
> i'm not sure yet.
>
> --mmadia
>
>

Is this issue big enough to be a blocker for alpha3 or can it just be
mentioned on the known issues list?

-scottmc

Other related posts: