You are not logged in.

#1 2012-07-19 23:33:33

ferromagnificent
Member
Registered: 2011-05-24
Posts: 18

Problem with build() when using makepkg

Every package I attempt to install with makepkg fails with "A failure occured in build()." Does anyone have any suggestions on how to further diagnose this problem?

Offline

#2 2012-07-19 23:37:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Problem with build() when using makepkg

Have you installed base-devel?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-07-19 23:38:27

ferromagnificent
Member
Registered: 2011-05-24
Posts: 18

Re: Problem with build() when using makepkg

If this helps, here is the entire output while attempting to install gnomebaker with yaourt as an example of the problem: http://codepad.org/urQT9SUh

This has happened with every package I've attempted to run today. I have not had this issue before, but it has began following an update.

Offline

#4 2012-07-19 23:41:32

ferromagnificent
Member
Registered: 2011-05-24
Posts: 18

Re: Problem with build() when using makepkg

I have installed base-devel. I just re-installed it to be sure, and it claimed that several dependencies were in conflict with the currently installed multilib variations of themselves. I allowed the multilib versions to be removed and continued installing. Afterwards I retried makepkg and it still failed as it did before.

Offline

#5 2012-07-19 23:54:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Problem with build() when using makepkg

Did anything go wrong with your glibc update?  That is what is giving the errors.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2012-07-20 00:08:29

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,674
Website

Re: Problem with build() when using makepkg

/usr/bin/ld: note: 'ceil@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line

This tells me two things...  you are not fully up to date  (binutils 2.22-9 would mentile /usr/lib/libm.so.6) and that the PKGBUILD needs fixed to add -lm to the linker line.

Offline

#7 2012-07-20 08:52:27

ferromagnificent
Member
Registered: 2011-05-24
Posts: 18

Re: Problem with build() when using makepkg

I just ran pacman -S binutils to be sure that it was up to date and it was and still is. I tried changing the line

make LDFLAGS+="--Wl,--export-dynamic" || return 1

to

make LDFLAGS+="-lm -Wl,--export-dynamic" || return 1

in the PKGBUILD, but the problem persisted exactly as it did before. Did I do that correctly?

Offline

#8 2012-07-20 09:01:11

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: Problem with build() when using makepkg

Running "pacman -S binutils" will not update binutils. "pacman -Sy binutils" would, but partial upgrades are not supported and liable to cause breakage, and you should do "pacman -Syu".

Offline

#9 2012-07-20 21:13:29

ferromagnificent
Member
Registered: 2011-05-24
Posts: 18

Re: Problem with build() when using makepkg

I also did pacman -Syu and there was nothing new to do. I also confirmed that binutils is already at the newest version. I did have issues with glibc, but I followed the advice here: https://wiki.archlinux.org/index.php/De … iki:usrlib which did not work initially. After temporarily moving /lib/modules to a backup location, and then performing the full upgrade (after already having done pacman -Syu --ignore glibc) the update for glibc worked fine. I then had the aforementioned problem in this thread. I have since tried moving the files in the backup location back to /lib/modules, but that did not work either.

Offline

#10 2012-07-22 03:47:54

ferromagnificent
Member
Registered: 2011-05-24
Posts: 18

Re: Problem with build() when using makepkg

Does anyone have any other suggestions?

Offline

#11 2012-07-27 19:40:41

ferromagnificent
Member
Registered: 2011-05-24
Posts: 18

Re: Problem with build() when using makepkg

Can someone help me identify the linker command line in a PKGBUILD? I read the related wiki article, but I couldn't figure it out from there.

Offline

#12 2012-07-27 20:53:28

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Problem with build() when using makepkg

...
make[1]: Leaving directory `/tmp/yaourt-tmp-andrew/aur-gnomebaker/src/gnomebaker-0.6.4'
make: *** [all] Error 2

Yaourt != makepkg.


https://bbs.archlinux.org/viewtopic.php?id=145817

(posts #5 and #8)

$ ia gnomebaker
$ e P[press Tab]
$ m

Or, you if you feel adventurous and want to skip checking the PKGBUILD (not recommended):

$ ia gnomebaker; m

Last edited by DSpider (2012-07-27 21:00:43)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#13 2012-07-27 21:04:31

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Problem with build() when using makepkg

Hmmm...

...
/usr/bin/ld: cairofillbar.o: undefined reference to symbol 'ceil@@GLIBC_2.0'
/usr/bin/ld: note: 'ceil@@GLIBC_2.0' is defined in DSO /usr/lib/libm.so.6 so try adding it to the linker command line
/usr/lib/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [gnomebaker] Error 1
make[2]: Leaving directory `/home/dspider/.builds/gnomebaker/src/gnomebaker-0.6.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dspider/.builds/gnomebaker/src/gnomebaker-0.6.4'
make: *** [all] Error 2

You should drop a line in the comments section. But first check it for possible workarounds.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#14 2012-09-15 21:14:53

chris-kun
Member
From: SF Bay Area
Registered: 2010-09-07
Posts: 235
Website

Re: Problem with build() when using makepkg

I'm having the same issue on a fresh install. Fully up to date as well.


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you." -- Bregol

Offline

#15 2012-10-18 02:38:50

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: Problem with build() when using makepkg

the package needed a gnomebaker-0.6.4-ldadd.patch .
Now its applied and updated.
It works now.

@ OP
Please mark the thread solved.

Offline

Board footer

Powered by FluxBB