Re: How best to downgrade gcc to 4.4 or 4.3?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@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
kcminit/CMakeFiles/kcminit.dir/kcminit_kdeinit_executable.cpp.o
cd /home/david/tbld/kdebase/src/kcminit && /usr/bin/g++-4.3   -DHAVE_CONFIG_H
-DUSE_QT3 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -march=i686 -mtune=generic
-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
/home/david/tbld/kdebase/src/kcminit/kcminit_kdeinit_executable.cpp
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
-Wl,-rpath,/opt/qt/lib:/home/david/tbld/kdebase/src/kcminit:/opt/trinity/lib:
/opt/trinity/lib/libkdefx.so.4.2.0: undefined reference to
`std::ctype<char>::_M_widen_init() const@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
    Aborting...

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

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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux