LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-18-2004, 08:14 PM   #1
shams
Member
 
Registered: Jan 2004
Posts: 400

Rep: Reputation: 30
Unhappy C compiler cannot create executables


hi,
I have a porblem from few days i poseted it ,but no one give me
complete suitable answer to solve my problem ,this problem rendered the
slackware for me as a none usable os, plz give me the appropriate
solution i can do it,the problem is, I want to configure the alsa
driver for installation with the cmmmand "./configure" the output is:
checking for gcc ...gcc
cheking for C compiler defualt output file name ...configure:error:C
compiler cannot create executables.
see 'config.log'for more details
Then i tried to install alsa-utils-1.0.2 the output is:
checking for BSD compatable install ...usr/bin/ginstall.c
chekking whether make build enviroment is sane ...yes
checking for gawk...gawk
checking whether make sets $(MAKE) ...yes
checking for gcc .../usr/bin/gcc
checking for C compiler defualt output file name ...configure:error:c
compiler cannot create executables.
see 'config.log'for more details.
Also whenever i want to cofigure any software for isntallation wich i
need to do,this is the error message "error:C compiler cannot create
executables".
 
Old 02-18-2004, 08:31 PM   #2
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
unlikely, but check that you have write permissions in the directory you are running in
 
Old 02-19-2004, 09:04 PM   #3
shams
Member
 
Registered: Jan 2004
Posts: 400

Original Poster
Rep: Reputation: 30
hi arnold,
thanks for reply,plz telll me how i can write permission in the directory i am runing it.
 
Old 02-19-2004, 09:27 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Do an
Code:
env
in a terminal ...

Search for CFLAGS ... I've seen similar
cases with screwed up directives in CFLAGS


Cheers,
Tink

P.S.: Please, don't e-Mail me with follow-ups.
 
Old 03-12-2004, 08:55 AM   #5
ShoCkwave
Member
 
Registered: Mar 2004
Location: Turkey
Distribution: Ubuntu
Posts: 38

Rep: Reputation: 15
I have the same problem too.

I am root there. I do this operation with root previleges. But still got the same error. Can u help me with this situation?
 
Old 04-19-2004, 03:49 PM   #6
Eskarel
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Rep: Reputation: 0
Alright, I actually encounter this problem myself the other night and found a solution.

For me the problem was caused by upgrading my gcc version to 3.3.3 in order to avoid the bugs present in 3.3.2(anyone trying to compile much of anything large has noticed these I'm sure and I don't doubt that if this is what caused your problem you probably upgraded for the same reason).

At first I thought this was a problem with gcc 3.3.3 or some sort of environment variable, but it isn't, if you try to compile a simple hello world type program you'll notice that the linker is failing. This is because you've upgraded the compiler, but not the assembler.

The new version of as(the assembler) can be found in the binutils package which you can get from wherever you got the gcc upgrade.

If you didn't upgrade your gcc upgrading(there are a number of required packages and you can probably find one for your version) and your binutils might possibly solve the problem for you.
 
Old 06-12-2004, 02:55 PM   #7
ShoCkwave
Member
 
Registered: Mar 2004
Location: Turkey
Distribution: Ubuntu
Posts: 38

Rep: Reputation: 15
Well, i solved my problem on myself.
The installation disc that i was using was abit dirty so it did not copied the files exactyl to the filesystem.

In order to have a working c compiler, be sure that you installed your compiler well. Or elsem you might encounter problems like me
 
  


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
C++ compiler cannot create executables eomerek Linux - Newbie 28 12-13-2010 10:14 AM
C compiler cannot create executables packets Linux - Security 3 05-03-2010 06:30 PM
C++ compiler cannot create executables notmatt Linux - Newbie 4 09-30-2004 08:59 AM
C compiler cannot create executables w0lv3rin3 Linux - Software 4 08-07-2004 11:44 AM
C compiler cannot create executables londonboi Debian 2 09-23-2003 03:41 AM


All times are GMT -5. The time now is 08:25 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration