[arch-general] How best to downgrade gcc to 4.4 or 4.3?

David C. Rankin drankinatty at suddenlinkmail.com
Sun Feb 13 22:59:37 EST 2011

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.


"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:

[  7%] Building CXX object
cd /home/david/tbld/kdebase/src/kcminit && /usr/bin/g++-4.3   -DHAVE_CONFIG_H
-O2 -pipe  -include tqt.h -I/home/david/tbld/kdebase/src/kcminit
-I/home/david/tbld/kdebase/src -I/opt/trinity/include -I/opt/qt/include
-I/opt/qt/include/tqt   -o
CMakeFiles/kcminit.dir/kcminit_kdeinit_executable.cpp.o -c
Linking CXX executable kcminit
cd /home/david/tbld/kdebase/src/kcminit && /usr/bin/cmake -E cmake_link_script
CMakeFiles/kcminit.dir/link.txt --verbose=1
/usr/bin/g++-4.3   -march=i686 -mtune=generic -O2 -pipe  -include tqt.h
-Wl,--hash-style=gnu -Wl,--as-needed
CMakeFiles/kcminit.dir/kcminit_kdeinit_executable.cpp.o  -o kcminit -rdynamic
-L/opt/qt/lib libkdeinit_kcminit.so /opt/trinity/lib/libkutils.so.1.2.0
/opt/trinity/lib/libkparts.so.2.1.0 /opt/trinity/lib/libkio.so.4.2.0
/opt/trinity/lib/libkdeui.so.4.2.0 -lfreetype -lfontconfig
/opt/trinity/lib/libkdesu.so.4.2.0 -lutil
/opt/trinity/lib/libkwalletclient.so.1.0.1 /opt/trinity/lib/libkdecore.so.4.2.0
/opt/trinity/lib/libDCOP.so.4.2.0 /opt/trinity/lib/libkdefx.so.4.2.0 -ltqt
-lqt-mt -lXrender -lX11 -lz -lICE -lSM
/opt/trinity/lib/libkdefx.so.4.2.0: undefined reference to
`std::ctype<char>::_M_widen_init() const at GLIBCXX_3.4.11'
collect2: ld returned 1 exit status
make[2]: *** [kcminit/kcminit] Error 1
make[2]: Leaving directory `/home/david/tbld/kdebase/src'
make[1]: *** [kcminit/CMakeFiles/kcminit.dir/all] Error 2
make[1]: Leaving directory `/home/david/tbld/kdebase/src'
make: *** [all] Error 2

What other parts/packages do I need to downgrade, etc. to work with gcc-4.3?

David C. Rankin, J.D.,P.E.

More information about the arch-general mailing list