-   Slackware (
-   -   Cannot compile C++ on Slackware Current (multilib) (

halborr 02-27-2012 07:19 PM

Cannot compile C++ on Slackware Current (multilib)
So I'm having a little bit of trouble compiling any c++ software. I get this as output:


jay@boromir:~$ gcc test.cpp
gcc: error trying to exec 'cc1plus': execvp: No such file or directory

jay@boromir:~$ c++ test.cpp
In file included from test.cpp:1:0:
/usr/include/stdio.h:34:21: fatal error: stddef.h: No such file or directory
compilation terminated.

Any idea what's going on?

willysr 02-27-2012 07:51 PM

have you upgraded to the multilib gcc and glibc?

halborr 02-27-2012 07:57 PM

gcc says it's upgraded, but gcc-c++ and glibc say they're not.


[  upgrade  ] - gcc-4.5.2_multilib-x86_64-2alien --> gcc-4.6.2-x86_64-1
[ installed ] - gcc-g++-4.6.2-x86_64-1
[ installed ] - gcc-gfortran-4.6.2-x86_64-1
[ installed ] - gcc-gnat-4.6.2-x86_64-1
[uninstalled] - gcc-go-4.6.2-x86_64-1
[ installed ] - gcc-java-4.6.2-x86_64-1
[ installed ] - gcc-objc-4.6.2-x86_64-1
[ installed ] - gccmakedep-1.0.2-noarch-2

[ installed ] - glibc-solibs-2.14.1-x86_64-4
[ installed ] - glibc-zoneinfo-2011i_2011n-noarch-4
[ installed ] - glibc-2.14.1-x86_64-4
[ installed ] - glibc-i18n-2.14.1-x86_64-4
[ installed ] - glibc-profile-2.14.1-x86_64-4

willysr 02-27-2012 09:13 PM

you have to fully upgrade to multilib packages or else you will end up with problems :)

halborr 02-27-2012 10:20 PM

Could I downgrade gcc then? I don't think I've actually ever *used* the multilib install (in retrospect, I should not have done it, because it seems to make a mess of my system). Come to think of it, I bet there's a command that would remove all multilib packages and revert them back to what they were originally. What would that be?

halborr 02-27-2012 10:28 PM

Hey lookit, downgrading gcc to the slackware package did it. What's weird is that I could have sworn I installed a lot of multilib packages, but when I unblacklisted "alien" packages from upgrading, it only replaced gcc. I guess I can mark this solved, thanks!

All times are GMT -5. The time now is 10:37 AM.