Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When ever I try to install a program, by typing ./configure, it spits out a list of stuff and then stopps, always saying "Checking for C compiler default output... configure: error: C compiler cannot create executables" One tiem when I tried to install the everybuddy chat program, it said "checking whether the C compiler (gcc ) works... no" and then it said the other thing about not creating an executable.
Distribution: Just about anything... so long as it is Debain based.
Posts: 297
Rep:
can not compile executable
I too am working on compiling an app; however, when I run the ./configure I get the follow error:
me@mybox: ./configure
checking for gcc... gcc s
checking for C compiler default output... configure: error: C compiler cannot create executables
check `config.log' for details.
configure:1295: checking for gcc
configure:1321: result: gcc s
configure:1563: checking for C compiler version
configure:1566: gcc s --version </dev/null >&5
2.95.4
configure:1569: $? = 0
configure:1571: gcc s -v </dev/null >&5
gcc.real: s: No such file or directory
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
configure:1574: $? = 0
configure:1576: gcc s -V </dev/null >&5
gcc.real: argument to `-V' is missing
configure:1579: $? = 1
configure:1599: checking for C compiler default output
configure:1602: gcc s conftest.c >&5
gcc.real: s: No such file or directory
configure:1605: $? = 1
configure: failed program was:
#line 1582 "configure"
#include "confdefs.h"
int
main ()
{
;
return 0;
}
configure:1632: error: C compiler cannot create executables
check `config.log' for details.
I was able to manually compile your "hello" program and run it without any issue.
Do you have any other suggestion? Also, please let me know if any additional information is needed. Thanks!
## Just noticed this is a 2002 thread... I'll also post in new thread. ##
Distribution: Just about anything... so long as it is Debain based.
Posts: 297
Rep:
the S
The output posted was from a config.log file that was generated by the configure app. If you would like I can post the entier output of the file.
I have checked the line numbers listed in the config.log file, but I must admit I do not know what the code means.
Here is the output of the configure file in that area:
line 1596:
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
echo "$as_me:$LINENO: checking for C compiler default output" >&5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
(eval $ac_link_default) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# Find the output, starting from the most likely. This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.
Line 1609
I see "sed 's/ -o *conftest..."
Is this our myserious "s" and if so, what does it mean.
I should also tell you that I'm getting this error when I run any "configure" file. I orriginally ran into the problem when tring to compile "qpopper" and then found that when I tried to compile "less" to help track down my error with qpopper I also had the error.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.