LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2004, 04:21 AM   #1
bublebboy
LQ Newbie
 
Registered: Dec 2003
Posts: 13

Rep: Reputation: 0
Exclamation error: C compiler cannot create executables


I am using SuSE 9.1. I am trying to install xine and I always get this message. I have gcc version 3.3.3 installed. I always get this:
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.

I tried to paste in the config.log, but it was too big.
 
Old 06-12-2004, 07:25 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,789

Rep: Reputation: 292Reputation: 292Reputation: 292
"checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details."

Without the details I can only guess what the problem is. My first guess is that this is a permissions problem. Did you run the compile as user?

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 06-13-2004, 12:59 AM   #3
bublebboy
LQ Newbie
 
Registered: Dec 2003
Posts: 13

Original Poster
Rep: Reputation: 0
I was logged in as a user, however I used the "su" command in the terminal. This is from the config.log, it it helps:

configure:2489: $? = 0
configure:2491: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --with-slibdir=/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-shared --enable-threads=posix --enable-languages=c,c++,f77,java,objc --enable-__cxa_atexit --enable-c99 --enable-nls --enable-long-long --enable-multilib --with-gnu-as --with-gnu-ld --with-system-zlib --without-x i386-redhat-linux
Thread model: posix
gcc version 3.3.3
configure:2494: $? = 0
configure:2496: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2499: $? = 1
configure:2523: checking for C compiler default output
configure:2526: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2529: $? = 1
configure: failed program was:
| #line 2502 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define XINE_MAJOR 1
| #define XINE_MINOR 0
| #define XINE_SUB 0
| #define PACKAGE "xine-lib"
| #define VERSION "1-rc4a"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2568: error: C compiler cannot create executables
See `config.log' for more details.
 
Old 06-13-2004, 01:19 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,789

Rep: Reputation: 292Reputation: 292Reputation: 292
"/usr/bin/ld: crt1.o: No such file: No such file or directory"

I have the beginning of an explanation. The linker cannot find crt1.o. This is the output of the compile of crt1. My explanation simply moves the question to why didn't gcc compile crt1 to crt1.o. Do you know what crt1 is?

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 06-13-2004, 01:46 PM   #5
bublebboy
LQ Newbie
 
Registered: Dec 2003
Posts: 13

Original Poster
Rep: Reputation: 0
I have no idea what crt1 is, or what it is for.
 
Old 06-13-2004, 04:32 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,789

Rep: Reputation: 292Reputation: 292Reputation: 292
"I have no idea what crt1 is, or what it is for."

Neither do I. Does xine depend on a separate crt driver?

--------------------------
Steve Stites
 
Old 06-14-2004, 11:17 PM   #7
bublebboy
LQ Newbie
 
Registered: Dec 2003
Posts: 13

Original Poster
Rep: Reputation: 0
I have no idea what a crt driver is, or what it is used for, and have no idea if it uses a different crt driver or not. Sorry, I am a newby with almost no knowledge about this stuff.
 
Old 06-14-2004, 11:28 PM   #8
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
Looks like a permisions problem. One thing that gets overlooked is whether the partition containing the source is mounted with exec in fstab.
 
Old 06-14-2004, 11:38 PM   #9
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,789

Rep: Reputation: 292Reputation: 292Reputation: 292
Here is a guess as to what the problem is. I think that xine depends on a kernel driver called crt1.o. crt1.o should be somewhere in the /lib/modules tree. You can check to see if it is with:
find /lib -iname "*crt*"

With kernel 2.6 the endings of the names of the drivers has been switched from .o to .ko. So now that you are on SuSE 9.1 with kernel 2.6.4 xine should be looking for crt1.ko which may or may not be available in /lib/modules. So I suspect that you need to find a version of xine that works on kernel 2.6.4 and download that.

Is the version of xine that you are trying to install one that you previously installed on kernel 2.4.x?

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


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
error: C compiler cannot create executables jimmax777 Linux - Software 3 12-21-2004 07:52 AM
error: C++ compiler cannot create executables sys7em Slackware 2 10-30-2004 07:38 PM
error: C compiler cannot create executables lopette Linux - Software 4 09-10-2004 05:06 PM
error: C compiler cannot create executables shams Linux - Software 1 02-16-2004 08:23 PM
error: C compiler cannot create executables bublebboy Linux - Newbie 3 12-31-2003 12:31 PM


All times are GMT -5. The time now is 07:35 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration