You are not logged in.

#1 2010-11-18 06:57:52

colbert
Member
Registered: 2007-12-16
Posts: 809

[SOLVED] C compiler cannot create executables

Trying to build freetype2-infinality and keep getting this:

cd builds/unix; ./configure  '--prefix=/usr'
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/yaourt-tmp-bobby/aur-freetype2-infinality/src/freetype-2.4.3/builds/unix':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** [setup] Error 77
    Aborting...
==> ERROR: Makepkg was unable to build freetype2-infinality.

I reinstalled base-devel although all were already installed, same thing.

Last edited by colbert (2010-11-19 00:44:56)

Offline

#2 2010-11-18 07:15:57

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: [SOLVED] C compiler cannot create executables

do you have the permission to execute binaries on the filesystem you wanna compile? Some time ago I had the same discussion and the conclusion was that my mount flags had changed or had different influences after changing the filesystem from ext3 to ext4. So maybe you could have a look there. Further, if you have a fixed size for your /tmp folder, it could be messed up with not enough space left for successful compiling.

Offline

#3 2010-11-18 22:21:29

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: [SOLVED] C compiler cannot create executables

How do I check that permissions? I am doing what I have always done, logged in as my user and entering root pass when asked with yaourt/pacman. If something changed I can check but not sure what/how you referring to specifically.

Hmmm as for tmp dir, all I have is in /etc/yaourtrc "TMPDIR="/tmp" and no probs so far with that otherwise (as well have 9gb free on root).

Offline

#4 2010-11-18 23:30:26

Allan
Supreme Leader
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,750
Website

Re: [SOLVED] C compiler cannot create executables

colbert wrote:
configure: error: C compiler cannot create executables
See `config.log' for more details.

Ever thought of looking there...

Offline

#5 2010-11-18 23:36:46

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: [SOLVED] C compiler cannot create executables

Offline

#6 2010-11-18 23:41:37

Allan
Supreme Leader
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,750
Website

Re: [SOLVED] C compiler cannot create executables

/usr/bin/as: /usr/bin/as: cannot execute binary file

Umm...  is that there?

Offline

#7 2010-11-18 23:42:19

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,346

Re: [SOLVED] C compiler cannot create executables

too slow please delete

Last edited by skunktrader (2010-11-18 23:42:42)

Offline

#8 2010-11-18 23:44:29

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: [SOLVED] C compiler cannot create executables

Allan wrote:
/usr/bin/as: /usr/bin/as: cannot execute binary file

Umm...  is that there?

Yup

└─> ll /usr/bin/as
-rwxr-xr-x 1 root root 267K Oct  6 23:11 /usr/bin/as

Offline

#9 2010-11-18 23:45:16

Allan
Supreme Leader
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,750
Website

Re: [SOLVED] C compiler cannot create executables

And what does "as --help" give?

Offline

#10 2010-11-18 23:50:00

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: [SOLVED] C compiler cannot create executables

Offline

#11 2010-11-19 00:00:26

Allan
Supreme Leader
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,750
Website

Re: [SOLVED] C compiler cannot create executables

Ok...  so it appears to work...   Is it just that package that you have issues with?

Offline

#12 2010-11-19 00:08:44

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: [SOLVED] C compiler cannot create executables

Nope, get that from other packages too sad

Offline

#13 2010-11-19 00:17:45

Allan
Supreme Leader
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,750
Website

Re: [SOLVED] C compiler cannot create executables

Ugh...  something strange has happened here...

Can you give the output of

ls -l /usr/bin/as
file /usr/bin/as
md5sum /usr/bin/as

Just to double check everything is sane with that...    Also, double check what your $PATH is set to.

Did this happen after a recent upgrade?  Can you build with makepkg directly?

Offline

#14 2010-11-19 00:25:52

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: [SOLVED] C compiler cannot create executables

└─> ls -l /usr/bin/as
-rwxr-xr-x 1 root root 267K Oct  6 23:11 /usr/bin/as
└─> file /usr/bin/as
/usr/bin/as: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
└─> md5sum /usr/bin/as
ea134978f642f8e1b5522da70ad05806  /usr/bin/as

From /etc/profile:

# Set our default path
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/lib/perl5/core_perl/bin"
export PATH

Nope, just tried build w/makepkg myself and can't, same error hmm  Yes this happened at some point recently, and I'm guessing it was when I enabled the multilib repo, but I disabled that and revert back to regular gcc, etc. and still the same thing.

Offline

#15 2010-11-19 00:31:53

Allan
Supreme Leader
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,750
Website

Re: [SOLVED] C compiler cannot create executables

checking you actual "echo $PATH" output would be the way to go but....

You enabled the [multilib] repo on an i686 system?   That probably is the start of the issue...   Make sure it is completely removed from your pacman.conf.  Then run

rm gcc* binutils* glibc* /var/cache/pacman/pkg
pacman -Syu
pacman -S gcc-libc gcc binutils glibc

And hopefully that cleans up whatever you did...

Offline

#16 2010-11-19 00:44:44

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: [SOLVED] C compiler cannot create executables

You rock! That worked big_smile smile Thanks so much!!

Offline

Board footer

Powered by FluxBB