LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-27-2012, 07:19 PM   #1
halborr
Member
 
Registered: Aug 2009
Posts: 112

Rep: Reputation: 18
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:

Code:
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?
 
Old 02-27-2012, 07:51 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,569

Rep: Reputation: 426Reputation: 426Reputation: 426Reputation: 426Reputation: 426
have you upgraded to the multilib gcc and glibc?
 
Old 02-27-2012, 07:57 PM   #3
halborr
Member
 
Registered: Aug 2009
Posts: 112

Original Poster
Rep: Reputation: 18
gcc says it's upgraded, but gcc-c++ and glibc say they're not.

Code:
[  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
 
Old 02-27-2012, 09:13 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,569

Rep: Reputation: 426Reputation: 426Reputation: 426Reputation: 426Reputation: 426
you have to fully upgrade to multilib packages or else you will end up with problems
 
Old 02-27-2012, 10:20 PM   #5
halborr
Member
 
Registered: Aug 2009
Posts: 112

Original Poster
Rep: Reputation: 18
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?
 
Old 02-27-2012, 10:28 PM   #6
halborr
Member
 
Registered: Aug 2009
Posts: 112

Original Poster
Rep: Reputation: 18
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cross-compile a kernel for Slackware from Slackware64 multilib piratesmack Slackware 3 07-03-2011 07:18 AM
[SOLVED] Broffice not compile on Slack64(multilib or no multilib);SlackBuild afreitascs Slackware 4 06-14-2010 07:16 AM
[SOLVED] libofa-0.9.3 in slackware-64 current multilib escaflown Slackware 7 03-11-2010 08:20 PM
slackware-current 64 multilib portia Slackware 9 12-28-2009 10:08 AM
Can't Compile VirtualBox 1.6.6 In Slackware Current Woodsman Slackware 8 12-18-2008 02:36 PM


All times are GMT -5. The time now is 03:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration