You are not logged in.
I think this must have a known solution, but I didn't found it :-/ so I'm asking.
Today I tried to compile these pkgs: http://aur.archlinux.org/packages.php?ID=754, http://aur.archlinux.org/packages.php?ID=261
In both cases, I got this Error message (while running ./configure):
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /bin/install -c
checking for ranlib... ranlib
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
I suppose it's a problem with gcc 4.3, but where? How the pkgbuilds/sources should be modified? Any hints?
Offline
I tried to compile cuetools from the AUR PKGBUILD and it works on my machine without any errors.
For comparison you get in the config.log file :
configure:2225: checking for C compiler default output file name
configure:2228: gcc -march=i686 -mtune=generic -O2 -pipe conftest.c >&5
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 080481b0
configure:2231: $? = 0
configure:2277: result: a.out
configure:2282: checking whether the C compiler works
configure:2288: ./a.out
./configure: line 2289: 6128 Illegal instruction ./$ac_file
configure:2291: $? = 132
configure:2300: error: cannot run C compiled programs.
if you meant to cross compile, use `--host'.
and I get :
configure:2225: checking for C compiler default output file name
configure:2228: gcc -march=i686 -mtune=generic -O2 -pipe conftest.c >&5
configure:2231: $? = 0
configure:2277: result: a.out
configure:2282: checking whether the C compiler works
configure:2288: ./a.out
configure:2291: $? = 0
configure:2308: result: yes
But I could not find the origin of your error.
I have gcc version 4.3.0 running well on my i686 machine.
Sorry for not being more helpful presently.
Last edited by berbae (2008-04-07 17:08:53)
Offline
Hm, strange I hoped it's a global/well-known error.
Offline
Is your system fully up-to-date?
Offline
I ran pacman -Syu now and only some gnome related and gstreamer pkgs were upgraded- didn't help.
Offline
Are you compiling your own kernel, and not including the gcc 4.3 kernel patch?
Offline
Nope, I tried only to compile pkgs mentioned above and have linux from repo.
Offline
I think it's an error in a library, just to find in which. But whatever, it's not big issue to reinstall all libs, I'll tell you how I succeeded :-)
Offline
Ok, i reinstalled all libs (with somethink like:
yes|pacman -Sy $(pacman -Q|grep lib|sed 's/\([^ ]*\) .*/\1/')
)
And it works fine now, some of my libraries had to be corrupted...
Offline