[arch-general] How best to downgrade gcc to 4.4 or 4.3?
Allan McRae
allan at archlinux.org
Sun Feb 13 23:07:50 EST 2011
On 14/02/11 13:59, David C. Rankin wrote:
> On 02/13/2011 09:52 PM, David C. Rankin wrote:
>> On 02/13/2011 08:52 PM, David C. Rankin wrote:
>>> On 02/13/2011 07:07 PM, Allan McRae wrote:
>>>> That is not a downgrade but a separate package. You will need to use something
>>>> like "CC=gcc-4.3 ./configure" in your PKGBUILD to use that gcc version.
>>>>
>>>> Allan
>>>
>>> Oh, your good...
>>>
>>> I would have messed that up royally. Thanks for being clairvoyant :p
>>>
>>> Now to figure out how that figures in to cmake builds :)
>>>
>>
>> Looks like adding the following to the PKGBUILD works:
>>
>> cd ${srcdir}
>>
>> cmake ../ \
>> -DCMAKE_C_COMPILER=${_c_compiler} \
>> -DCMAKE_CXX_COMPILER=${_cxx_compiler} \
>> <snip>
>>
>> is what will work. Let me know if this is the wrong way to do it. Thanks.
>>
>>
>
>
> UUGH!
>
> "undefined reference to `std::ctype<char>::_M_widen_init() const at GLIBCXX_3.4.11'"
>
> Looks like I need to downgrade other parts as well - bummer. kdebase built for
> 10 minutes until it hit the undefined reference. Full error:
>
<snip>
>
> What other parts/packages do I need to downgrade, etc. to work with gcc-4.3?
>
None - you probably need to rebuild earlier Trinity components with the
older gcc though.
Allan
More information about the arch-general
mailing list