Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Development & Programming > Packaging and Compiling Programs
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Packaging and Compiling Programs
Need help compiling programs or creating .deb packages?

 
Thread Tools Display Modes
Old February 2nd, 2006   #1
jgoshorn
First Cup of Ubuntu
 
Join Date: Nov 2005
Beans: 2
libxine1c2 - C compiler cannot create executables

Thanks for reading this. . .

I'm trying to compile libxine1c2 and get the following error:
configure: error: C compiler cannot create executables

The config.log reads in part:

configure:2523: $? = 0
configure:2525: gcc -v </dev/null >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls --without-included-gettext --enable-threads=posix --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
configure:2528: $? = 0
configure:2530: gcc -V </dev/null >&5
gcc: couldn't run 'i486-linux-gnu-gcc--O3': Invalid argument
configure:2533: $? = 1
configure:2557: checking for C compiler default output
configure:2560: gcc -g conftest.c >&5
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
collect2: cannot find 'ld'
configure:2563: $? = 1
configure: failed program was:
| #line 2536 "configure"
| /* confdefs.h. */

I welcome suggestions as to how to fix this. Thanks in advance.
jgoshorn is offline   Reply With Quote
Old February 3rd, 2006   #2
gord
Ubuntu Extra Shot
 
gord's Avatar
 
Join Date: Aug 2005
Location: crewe, uk
Beans: 330
Ubuntu 6.06
Re: libxine1c2 - C compiler cannot create executables

Code:
sudo apt-get install build-essential
might help
gord is offline   Reply With Quote
Old February 3rd, 2006   #3
jgoshorn
First Cup of Ubuntu
 
Join Date: Nov 2005
Beans: 2
Re: libxine1c2 - C compiler cannot create executables

It's already installed.
jgoshorn is offline   Reply With Quote
Old April 11th, 2006   #4
joegoggins
First Cup of Ubuntu
 
Join Date: Apr 2006
Beans: 1
Re: libxine1c2 - C compiler cannot create executables

yep. this worked for me.
thanks
joegoggins is offline   Reply With Quote
Old April 20th, 2006   #5
mistabob
First Cup of Ubuntu
 
Join Date: Apr 2006
My beans are hidden!
Re: libxine1c2 - C compiler cannot create executables

i have the same problem and can't figure out what's wrong, i pdkg-reconfigured anything i could and still have the same problem, i have the same problem with anything i try to dpk-build. make, and so ld, works for programs i compile from the tar.gz it must be some dpkg-build bug
i added the backports to my sources.list maybe it's the source of the problem
help please !!!
mistabob is offline   Reply With Quote
Old May 8th, 2006   #6
eyes_on_the_net
First Cup of Ubuntu
 
Join Date: May 2006
Beans: 2
Re: libxine1c2 - C compiler cannot create executables

I had the same problem after just installing make and gcc. Ran the code suggested by gord and I could compile. I was trying to compile the meanwhile plugin for gaim so I can use my Linux desktop to connect to the Lotus Sametime servers.
eyes_on_the_net is offline   Reply With Quote
Old September 14th, 2006   #7
Skukfas
First Cup of Ubuntu
 
Join Date: Sep 2006
Location: Portugal, Lisbon
Beans: 11
Re: libxine1c2 - C compiler cannot create executables

same problem here, and it helped...
thx
Skukfas is offline   Reply With Quote
Old June 7th, 2007   #8
insidex
First Cup of Ubuntu
 
Join Date: Jun 2007
Beans: 1
Kubuntu 7.04 Feisty Fawn
Re: libxine1c2 - C compiler cannot create executables

Thx, it's help me too
insidex is offline   Reply With Quote
Old July 15th, 2007   #9
saurabh321
First Cup of Ubuntu
 
Join Date: Jul 2007
Beans: 1
Re: libxine1c2 - C compiler cannot create executables

Hi all,
I am running Ubuntu 6.06 LTS from my PenDrive on Compaq presario v6211au notebook.
I was unable to compile reSIProcate as it said "C compiler can not create executables".
doing
<code>
sudo apt-get install build-essential
</code>

solved my problem.

Thnaks Ubuntu Community.
saurabh321 is offline   Reply With Quote
Old January 4th, 2008   #10
Slyker
First Cup of Ubuntu
 
Join Date: Jan 2008
Beans: 1
Re: libxine1c2 - C compiler cannot create executables

Thank you, this worked for me. It was my first attempt at a build and I could not have done it without your help.
Slyker is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:20 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry