LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-23-2010, 05:34 PM   #1
iavor
LQ Newbie
 
Registered: Mar 2010
Posts: 20

Rep: Reputation: 1
C compiler issues


Hi guys,

my problem is that i have GCC 4.3.3 installed and i cant install any program from SlackBuilds

as soon as the script starts i get this message:

checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables

its either for C or C++.. someone told me install g++ compiler and libstdc++ i googled around and found that libstdc++ is now part of GCC as of GCC 3.0

any suggestions are welcome and thanks in advance.

OS: Slackware 13 x86_64
 
Old 03-23-2010, 05:40 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Do you have all of the D package set installed? You need more than just the gcc package installed to actually compile usable programs.
 
1 members found this post helpful.
Old 03-23-2010, 05:41 PM   #3
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
But have you installed g++?

Also, in your OS installation time, did you selected a full installation or chose the packages? If you chose, did you included the devel tree?

Well, a quick answer would be, with you SlackCD/SlackDVD, in the slackware/d/ just type "installpkg g++*"
 
1 members found this post helpful.
Old 03-23-2010, 05:44 PM   #4
iavor
LQ Newbie
 
Registered: Mar 2010
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by MS3FGX View Post
Do you have all of the D package set installed? You need more than just the gcc package installed to actually compile usable programs.
im pretty sure i have all "D" packages
 
Old 03-23-2010, 05:45 PM   #5
iavor
LQ Newbie
 
Registered: Mar 2010
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by rfernandez View Post
But have you installed g++?

Also, in your OS installation time, did you selected a full installation or chose the packages? If you chose, did you included the devel tree?

Well, a quick answer would be, with you SlackCD/SlackDVD, in the slackware/d/ just type "installpkg g++*"
ill look into this right now i was googling around for g++ packages
and i didnt knew i could use the dvd for that !
 
Old 03-23-2010, 05:53 PM   #6
iavor
LQ Newbie
 
Registered: Mar 2010
Posts: 20

Original Poster
Rep: Reputation: 1
i've installed everything from d/ now and still got the same message
 
Old 03-23-2010, 05:54 PM   #7
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
You also have slackpkg, I presume. You could select a mirror from "/etc/slackpkg/mirrors" file synced with a -current tree, and issue a "slackpkg reinstall g++*" on a terminal, but I think that this is not the prefered way.
 
1 members found this post helpful.
Old 03-23-2010, 05:58 PM   #8
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
Uhmmm... could you put the full ./configure output here?
 
1 members found this post helpful.
Old 03-23-2010, 05:59 PM   #9
iavor
LQ Newbie
 
Registered: Mar 2010
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by rfernandez View Post
You also have slackpkg, I presume. You could select a mirror from "/etc/slackpkg/mirrors" file synced with a -current tree, and issue a "slackpkg reinstall g++*" on a terminal, but I think that this is not the prefered way.
Looking for g++* in package list. Please wait... DONE

No packages match the pattern for reinstall. Try:

/usr/sbin/slackpkg install|upgrade
 
Old 03-23-2010, 06:00 PM   #10
iavor
LQ Newbie
 
Registered: Mar 2010
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by rfernandez View Post
Uhmmm... could you put the full ./configure output here?
root@slackware:/home/iavor/builds/brutalchess# ./brutalchess.SlackBuild
brutalchess-0.5.2/
brutalchess-0.5.2/acinclude.m4
brutalchess-0.5.2/aclocal.m4
brutalchess-0.5.2/art/
brutalchess-0.5.2/art/brutalchesslogo.png
brutalchess-0.5.2/art/Makefile.am
brutalchess-0.5.2/art/Makefile.in
brutalchess-0.5.2/art/marblehugeblack.png
brutalchess-0.5.2/art/marblehugewhite.png
brutalchess-0.5.2/AUTHORS
brutalchess-0.5.2/brutalchess.ico
brutalchess-0.5.2/brutalchess.nsi
brutalchess-0.5.2/brutalchess.rc
brutalchess-0.5.2/brutalchess.sln
brutalchess-0.5.2/brutalchess.vcproj
brutalchess-0.5.2/ChangeLog
brutalchess-0.5.2/config.guess
brutalchess-0.5.2/config.h.in
brutalchess-0.5.2/config.sub
brutalchess-0.5.2/configure
brutalchess-0.5.2/configure.ac
brutalchess-0.5.2/COPYING
brutalchess-0.5.2/depcomp
brutalchess-0.5.2/Doxyfile
brutalchess-0.5.2/fonts/
brutalchess-0.5.2/fonts/!pizzadude.txt
brutalchess-0.5.2/fonts/COOLVETI.TTF
brutalchess-0.5.2/fonts/Ghostwri.ttf
brutalchess-0.5.2/fonts/Makefile.am
brutalchess-0.5.2/fonts/Makefile.in
brutalchess-0.5.2/fonts/VeraMono.ttf
brutalchess-0.5.2/fonts/ZEROES__.TTF
brutalchess-0.5.2/icon1.ico
brutalchess-0.5.2/INSTALL
brutalchess-0.5.2/install-sh
brutalchess-0.5.2/Makefile.am
brutalchess-0.5.2/Makefile.in
brutalchess-0.5.2/missing
brutalchess-0.5.2/models/
brutalchess-0.5.2/models/.cvsignore
brutalchess-0.5.2/models/bishop.obj
brutalchess-0.5.2/models/debug.obj
brutalchess-0.5.2/models/king.obj
brutalchess-0.5.2/models/knight.obj
brutalchess-0.5.2/models/Makefile.am
brutalchess-0.5.2/models/Makefile.in
brutalchess-0.5.2/models/pawn.obj
brutalchess-0.5.2/models/queen.obj
brutalchess-0.5.2/models/rook.obj
brutalchess-0.5.2/NEWS
brutalchess-0.5.2/README
brutalchess-0.5.2/resource.h
brutalchess-0.5.2/small.ico
brutalchess-0.5.2/src/
brutalchess-0.5.2/src/basicset.cpp
brutalchess-0.5.2/src/bitboard.cpp
brutalchess-0.5.2/src/bitboard.h
brutalchess-0.5.2/src/board.cpp
brutalchess-0.5.2/src/board.h
brutalchess-0.5.2/src/boardmove.cpp
brutalchess-0.5.2/src/boardmove.h
brutalchess-0.5.2/src/boardposition.cpp
brutalchess-0.5.2/src/boardposition.h
brutalchess-0.5.2/src/boardtheme.cpp
brutalchess-0.5.2/src/boardtheme.h
brutalchess-0.5.2/src/boardthemes.h
brutalchess-0.5.2/src/brutalchess.cpp
brutalchess-0.5.2/src/brutalplayer.cpp
brutalchess-0.5.2/src/chessgame.cpp
brutalchess-0.5.2/src/chessgame.h
brutalchess-0.5.2/src/chessgamestate.cpp
brutalchess-0.5.2/src/chessgamestate.h
brutalchess-0.5.2/src/chessplayer.cpp
brutalchess-0.5.2/src/chessplayer.h
brutalchess-0.5.2/src/chessplayers.h
brutalchess-0.5.2/src/config.h
brutalchess-0.5.2/src/config.h.in
brutalchess-0.5.2/src/debugset.cpp
brutalchess-0.5.2/src/exception.h
brutalchess-0.5.2/src/faileplayer.cpp
brutalchess-0.5.2/src/fontloader.cpp
brutalchess-0.5.2/src/fontloader.h
brutalchess-0.5.2/src/gamecore.cpp
brutalchess-0.5.2/src/gamecore.h
brutalchess-0.5.2/src/granitetheme.cpp
brutalchess-0.5.2/src/humanplayer.cpp
brutalchess-0.5.2/src/Makefile.am
brutalchess-0.5.2/src/Makefile.in
brutalchess-0.5.2/src/md3model.cpp
brutalchess-0.5.2/src/md3model.h
brutalchess-0.5.2/src/md3test.cpp
brutalchess-0.5.2/src/md3view.cpp
brutalchess-0.5.2/src/menu.cpp
brutalchess-0.5.2/src/menu.h
brutalchess-0.5.2/src/menuitem.cpp
brutalchess-0.5.2/src/menuitem.h
brutalchess-0.5.2/src/objfile.cpp
brutalchess-0.5.2/src/objfile.h
brutalchess-0.5.2/src/objview.cpp
brutalchess-0.5.2/src/options.cpp
brutalchess-0.5.2/src/options.h
brutalchess-0.5.2/src/piece.cpp
brutalchess-0.5.2/src/piece.h
brutalchess-0.5.2/src/pieceset.cpp
brutalchess-0.5.2/src/pieceset.h
brutalchess-0.5.2/src/piecesets.h
brutalchess-0.5.2/src/q3charmodel.cpp
brutalchess-0.5.2/src/q3charmodel.h
brutalchess-0.5.2/src/q3set.cpp
brutalchess-0.5.2/src/randomplayer.cpp
brutalchess-0.5.2/src/statsnapshot.cpp
brutalchess-0.5.2/src/statsnapshot.h
brutalchess-0.5.2/src/texture.cpp
brutalchess-0.5.2/src/texture.h
brutalchess-0.5.2/src/timer.cpp
brutalchess-0.5.2/src/timer.h
brutalchess-0.5.2/src/todo.txt
brutalchess-0.5.2/src/utils.cpp
brutalchess-0.5.2/src/utils.h
brutalchess-0.5.2/src/vector.cpp
brutalchess-0.5.2/src/vector.h
brutalchess-0.5.2/src/xboardplayer.cpp
patching file src/md3view.cpp
patching file src/objview.cpp
patching file src/brutalplayer.cpp
checking build system type... i486-slackware-linux-gnu
checking host system type... i486-slackware-linux-gnu
checking for a BSD-compatible install... /bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
root@slackware:/home/iavor/builds/brutalchess#
 
Old 03-23-2010, 06:00 PM   #11
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,241

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
The answer is here:
http://slackbuilds.com/faq/#x86_64

Last edited by dugan; 03-23-2010 at 06:01 PM.
 
1 members found this post helpful.
Old 03-23-2010, 06:01 PM   #12
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
Errr... sorry, that would be "slackpkg reinstall gcc-g++*".
 
1 members found this post helpful.
Old 03-23-2010, 06:02 PM   #13
iavor
LQ Newbie
 
Registered: Mar 2010
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by dugan View Post
Set the ARCH environment variable to "x86_64" before you run any SlackBuilds.
im not sure how to do this im new to slackware.. before that i used ubuntu, fedora, opensuse etc... and they all had package managers and everything was automatic..
 
Old 03-23-2010, 06:03 PM   #14
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,241

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
I realized that might be the case. That's why I edited my post to link to a more detailed answer.

And yes, it's the correct answer.
 
1 members found this post helpful.
Old 03-23-2010, 06:04 PM   #15
iavor
LQ Newbie
 
Registered: Mar 2010
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by rfernandez View Post
Errr... sorry, that would be "slackpkg reinstall gcc-g++*".
same output
i removed the # on 1 mirror
 
  


Reply



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
building cross compiler, having issues moonlightcheese *BSD 1 09-13-2008 02:09 AM
Compiler Issues running ./configure Khue Slackware 10 08-27-2008 02:50 PM
X Windows and compiler library issues fiveball02 *BSD 2 10-27-2005 07:41 PM
HP 6127 install problems(Compiler issues?) headcase Linux - Hardware 0 12-31-2004 03:43 PM
GCC compiler issues redhat 7.3 geogeer Linux - Newbie 5 04-16-2004 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration