You are not logged in.

#1 2014-09-05 09:58:27

xgdgsc
Member
Registered: 2012-02-03
Posts: 125

makepkg A failure occurred in build(). when writing a vcs PKGBUILD

PKGBUILD is here: https://gist.github.com/xgdgsc/b4dee613978bd3e96e23 .

It seem to fail between '1' and '2', which is ./autogen.sh, but I can run that when not using makepkg and makepkg does not give any useful information with the -L flag. What is wrong?

Offline

#2 2014-09-05 10:05:38

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,650
Website

Re: makepkg A failure occurred in build(). when writing a vcs PKGBUILD

autogen.sh is returning an error code because "automake --add-missing --copy &>/dev/null" is failing. If you remove the redirect, it will tell you more.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2014-09-05 11:44:39

xgdgsc
Member
Registered: 2012-02-03
Posts: 125

Re: makepkg A failure occurred in build(). when writing a vcs PKGBUILD

configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal)
configure.ac:14: installing './install-sh'
automake: error: no 'Makefile.am' found for any configure outpu

Well that' s the error after removing /dev/null.
Does anybody know the difference of environment in makepkg and outside for autoconf?

Offline

#4 2014-09-05 12:50:16

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,650
Website

Re: makepkg A failure occurred in build(). when writing a vcs PKGBUILD

It's not a problem with your environment -- autogen.sh errors whether you use makepkg or not, you just don't get any feedback because of the redirect (you can check the exit code with 'echo $?').

You should open a bug report upstream, their configure.ac is incomplete. Looks like they're in the process of rewriting it though, so some feedback may be helpful.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2014-09-05 13:00:54

xgdgsc
Member
Registered: 2012-02-03
Posts: 125

Re: makepkg A failure occurred in build(). when writing a vcs PKGBUILD

WorMzy wrote:

It's not a problem with your environment -- autogen.sh errors whether you use makepkg or not,

No. I only get error when run ./autogen.sh in makepkg, when I run that myself, there is no error.

Offline

#6 2014-09-05 13:08:50

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,650
Website

Re: makepkg A failure occurred in build(). when writing a vcs PKGBUILD

Really? I'll be surprised if that's the case. Have you removed the redirect and/or checked the exit code?

./autogen.sh
echo $?

0 = no error
1 = error


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2014-09-05 13:30:42

xgdgsc
Member
Registered: 2012-02-03
Posts: 125

Re: makepkg A failure occurred in build(). when writing a vcs PKGBUILD

Well, I' m not seeing the output. I updated the gist. Error below:

==> Making package: somoclu-git 208.c5ba668-1 (Fri Sep  5 21:27:45 CST 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating somoclu git repo...
Fetching origin
==> Validating source files with sha512sums...
    somoclu ... Skipped
==> Extracting sources...
  -> Creating working copy of somoclu git repo...
Cloning into 'somoclu'...
done.
==> Starting pkgver()...
==> Removing existing pkg/ directory...
==> Starting build()...
configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal)
configure.ac:14: installing './install-sh'
automake: error: no 'Makefile.am' found for any configure output
==> ERROR: A failure occurred in build().
    Aborting...

I don' t see the error code.

Last edited by xgdgsc (2014-09-05 14:07:52)

Offline

#8 2014-09-05 17:31:01

apg
Developer
Registered: 2012-11-10
Posts: 211

Re: makepkg A failure occurred in build(). when writing a vcs PKGBUILD

./autogen.sh
echo $?

This won't work inside a PKGBUILD; makepkg exits as soon as autogen.sh returns non-zero.  You need to run that in a shell outside of makepkg.

Offline

#9 2014-09-06 02:49:48

xgdgsc
Member
Registered: 2012-02-03
Posts: 125

Re: makepkg A failure occurred in build(). when writing a vcs PKGBUILD

apg wrote:
./autogen.sh
echo $?

This won't work inside a PKGBUILD; makepkg exits as soon as autogen.sh returns non-zero.  You need to run that in a shell outside of makepkg.

Thanks, I understand now.

Offline

#10 2014-09-06 04:22:44

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: makepkg A failure occurred in build(). when writing a vcs PKGBUILD

This is an upstream issue. They use *very* old style automake files. e.g. instead of AC_INIT should be used AM_INIT_AUTOMAKE (and I believe there are more autotools-related issues there).

UPD: It looks like AM_INIT_AUTOMAKE is needed in addition to AC_INIT. But better to check autotools documentation.

Last edited by anatolik (2014-09-06 04:35:19)


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

Board footer

Powered by FluxBB