Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc-4.9.4: packages looks for gcc-4.9.3 = Fatal error
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
marax_faraii
n00b
n00b


Joined: 11 Apr 2016
Posts: 40

PostPosted: Wed Dec 28, 2016 1:57 am    Post subject: gcc-4.9.4: packages looks for gcc-4.9.3 = Fatal error Reply with quote

Hi guys,

I've had some issues compiling some programs and when going through the builld log I saw that they were looking for sys-devel/gcc-4.9.3 and since no file or directory were found there was a fatal error and compilation failed.

List of failed compilations
kde-apps/kmail-16.12.0-r1
media-gfx/digikam-5.3.0-r1
kde-apps-kdepim-16.12.0-r1


Installing gcc-4.9.3 solved those issues but I'm just wondering since if I'm not mistaken the upgrade to 4.9.4 --depclean removed the previous version.

gcc-config -l
[1] x86_64-pc-linux-gnu-4.9.3
[2] x86_64-pc-linux-gnu-4.9.4 *


Also, as you see I'm not using 4.9.3 as default compiler but having it installed suffice.

Part of build log from kde-apps/kmail-16.12.0-r1

Code:
In file included from /usr/include/KF5/AkonadiCore/exception.h:28:0,
                 from /usr/include/KF5/AkonadiCore/item.h:26,
                 from /usr/include/KF5/AkonadiAgentBase/agentbase.h:28,
                 from /var/tmp/portage/kde-apps/kmail-16.12.0-r1/work/kmail-16.12.0/agents/sendlateragent/sendlateragent.h:23,
                 from /var/tmp/portage/kde-apps/kmail-16.12.0-r1/work/kmail-16.12.0/agents/sendlateragent/sendlateragent.cpp:20:
/usr/include/KF5/AkonadiCore/std_exception.h:1:75: fatal error: /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/exception: No such file or directory
 #include "/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/exception"


So to the actual question, since the programs build using version 4.9.4 merely by having 4.9.3 installed or is the version of gcc automatically detected and used when compiling those programs?

Apologies for the crappy title.

Thanks
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Dec 28, 2016 2:03 am    Post subject: Reply with quote

Code:
gcc -v

What version is printed?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
marax_faraii
n00b
n00b


Joined: 11 Apr 2016
Posts: 40

PostPosted: Wed Dec 28, 2016 2:04 am    Post subject: Reply with quote

Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.4/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.9.4/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.9.4/work/gcc-4.9.4/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.9.4/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.9.4 p1.0, pie-0.6.4' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --enable-vtable-verify --enable-libvtv --enable-lto --without-cloog --enable-libsanitizer
Thread model: posix
gcc version 4.9.4 (Gentoo 4.9.4 p1.0, pie-0.6.4)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum