You are not logged in.

#1 2008-04-07 14:22:05

kamahl
Member
Registered: 2007-09-16
Posts: 60

Problem building some pkgs from AUR

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.

config.log

I suppose it's  a problem with gcc 4.3, but where? How the pkgbuilds/sources should be modified? Any hints?

Offline

#2 2008-04-07 17:04:41

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Problem building some pkgs from AUR

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

#3 2008-04-07 17:35:36

kamahl
Member
Registered: 2007-09-16
Posts: 60

Re: Problem building some pkgs from AUR

Hm, strange I hoped it's a global/well-known error. hmm

Offline

#4 2008-04-07 18:04:38

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Problem building some pkgs from AUR

Is your system fully up-to-date?

Offline

#5 2008-04-07 18:38:13

kamahl
Member
Registered: 2007-09-16
Posts: 60

Re: Problem building some pkgs from AUR

I ran pacman -Syu now and only some gnome related and gstreamer pkgs were upgraded- didn't help.

Offline

#6 2008-04-07 19:42:00

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Problem building some pkgs from AUR

Are you compiling your own kernel, and not including the gcc 4.3 kernel patch?

Offline

#7 2008-04-07 19:45:17

kamahl
Member
Registered: 2007-09-16
Posts: 60

Re: Problem building some pkgs from AUR

Nope, I tried only to compile pkgs mentioned above and have linux from repo.

Offline

#8 2008-04-07 20:52:21

kamahl
Member
Registered: 2007-09-16
Posts: 60

Re: Problem building some pkgs from AUR

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

#9 2008-04-08 07:35:05

kamahl
Member
Registered: 2007-09-16
Posts: 60

Re: Problem building some pkgs from AUR

Ok, i reinstalled all libs (with somethink like:

yes|pacman -Sy $(pacman -Q|grep lib|sed 's/\([^ ]*\) .*/\1/')

smile )

And it works fine now, some of my libraries had to be corrupted...

Offline

Board footer

Powered by FluxBB