You are not logged in.

#1 2016-06-01 08:50:42

Fangahawk
Member
Registered: 2016-06-01
Posts: 9

[SOLVED]Unable to build anything using yaourt and packer

Hello Arch Forums! First time posting here!
I have been having a problem installing packages using yaourt and packer, as it always fails. It gives me an error saying that 'AM_SILENT_RULES' is not found in the library, and it may be possibly undefined. I am pretty sure this error has occurred when i changed the ACLOCAL_FLAGS directory, while trying to install splashy from the AUR repository. I have base_devel installed too, so that shouldn't be a problem.

This is an example of what happens when i try installing something via yaourt.

==> Building and installing package
==> Making package: adapta-gtk-theme 3.21.2.27-1 (Wed Jun  1 14:11:27 IST 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading adapta-gtk-theme-3.21.2.27.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   126    0   126    0     0    112      0 --:--:--  0:00:01 --:--:--   112
100 3698k  100 3698k    0     0   112k      0  0:00:32  0:00:32 --:--:--  108k
  -> Downloading 3.21.2.27-tri-fadeno.jpg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   141  100   141    0     0    108      0  0:00:01  0:00:01 --:--:--   108
100 1581k  100 1581k    0     0   108k      0  0:00:14  0:00:14 --:--:--  158k
==> Validating source files with sha256sums...
    adapta-gtk-theme-3.21.2.27.tar.gz ... Passed
    3.21.2.27-tri-fadeno.jpg ... Passed
==> Extracting sources...
  -> Extracting adapta-gtk-theme-3.21.2.27.tar.gz with bsdtar
==> Starting build()...
aclocal:configure.ac:11: warning: macro `AM_SILENT_RULES' not found in library
configure.ac:9: warning: The macro `AC_FOREACH' is obsolete.
configure.ac:9: You should run autoupdate.
../../lib/autoconf/general.m4:194: AC_FOREACH is expanded from...
aclocal.m4:448: _AM_SET_OPTIONS is expanded from...
aclocal.m4:145: AM_INIT_AUTOMAKE is expanded from...
configure.ac:9: the top level
configure.ac:9: warning: The macro `AC_FOREACH' is obsolete.
configure.ac:9: You should run autoupdate.
../../lib/autoconf/general.m4:194: AC_FOREACH is expanded from...
aclocal.m4:448: _AM_SET_OPTIONS is expanded from...
aclocal.m4:145: AM_INIT_AUTOMAKE is expanded from...
configure.ac:9: the top level
configure.ac:11: error: possibly undefined macro: AM_SILENT_RULES
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build adapta-gtk-theme.

Please tell me how to solve this.

Last edited by Fangahawk (2016-06-01 19:39:23)

Offline

#2 2016-06-01 09:09:59

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [SOLVED]Unable to build anything using yaourt and packer

have your tried using makepkg?

Offline

#3 2016-06-01 09:39:25

Fangahawk
Member
Registered: 2016-06-01
Posts: 9

Re: [SOLVED]Unable to build anything using yaourt and packer

makepkg does work properly, but i don't want to use that installing packages from AUR, since Yaourt is simple and easy to use.

Offline

#4 2016-06-01 09:46:59

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [SOLVED]Unable to build anything using yaourt and packer

if makepkg works properly, and yaourt doesn't the fault is with yaourt.
Anyway yaourt is not the recommanded tool to use with aur pkgs. I would suggest pacaur, it is as easy as yaourt and more reliable/safe. There is a page on arch-wiki comparing different aur-helpers for more details.

Offline

#5 2016-06-01 10:10:04

Fangahawk
Member
Registered: 2016-06-01
Posts: 9

Re: [SOLVED]Unable to build anything using yaourt and packer

Even pacaur is giving the same error as yaourt. There must be a fault in a package that they all use other than makepkg.

Offline

#6 2016-06-01 10:39:39

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [SOLVED]Unable to build anything using yaourt and packer

what did you change in ACLOCAL_FLAGS? pacaur works fine on my system

Offline

#7 2016-06-01 11:18:33

Fangahawk
Member
Registered: 2016-06-01
Posts: 9

Re: [SOLVED]Unable to build anything using yaourt and packer

This is the value of it.

[fangahawk@fanga ~]$ echo $ACLOCAL_FLAGS
-I /usr/local/share/aclocal-1.9 -I /usr/share/aclocal -I /usr/share/aclocal-1.15

Offline

#8 2016-06-01 12:17:12

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [SOLVED]Unable to build anything using yaourt and packer

ACLOCAL_FLAGAS is undefined on my system, which is default behaviour as I have never changed it.
The error you get during compling are seen in configure.ac which is scanned by aclocal.
I think you need to revert back the changes by removing your defined ACLOCAL_FLAGS dirs

Offline

#9 2016-06-01 12:21:21

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [SOLVED]Unable to build anything using yaourt and packer

I can not reproduce your error on my machine.
Building adapta-gtk-theme-3.21.2.27 with latest yaourt works just fine, even if I set ACLOCAL_FLAGS to the value you posted.

Is your system up to date? Is yaourt up to date? Have you tried to reinstall base-devel?

Last edited by mis (2016-06-01 12:27:55)

Offline

#10 2016-06-01 12:41:52

Fangahawk
Member
Registered: 2016-06-01
Posts: 9

Re: [SOLVED]Unable to build anything using yaourt and packer

Yes, everything of mine is up to date. I have tried reinstalling base-devel also. I might be missing a file in aclocal, so could you just post what macros do you have, so I could double check?

Offline

#11 2016-06-01 12:46:18

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [SOLVED]Unable to build anything using yaourt and packer

Fangahawk wrote:

This is the value of it.

[fangahawk@fanga ~]$ echo $ACLOCAL_FLAGS
-I /usr/local/share/aclocal-1.9 -I /usr/share/aclocal -I /usr/share/aclocal-1.15

Why did you set /usr/local/share/aclocal-1.9 ?
Have you installed anything (old automake version?) manuallay to that location? Maybe that's the problem.
I think it could explain the errors about obsolete and missing macros.

edit: Does it work if you unset ACLOCAL_FLAGS like Docbroke suggested?

ACLOCAL_FLAGS=

Last edited by mis (2016-06-01 12:49:26)

Offline

#12 2016-06-01 13:09:53

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [SOLVED]Unable to build anything using yaourt and packer

Fangahawk wrote:

I might be missing a file in aclocal, so could you just post what macros do you have, so I could double check?

grep -r AM_SILENT_RULES /usr/share/*
/usr/share/aclocal-1.15/silent.m4:# AM_SILENT_RULES([DEFAULT])
/usr/share/aclocal-1.15/silent.m4:AC_DEFUN([AM_SILENT_RULES],
/usr/share/aclocal-1.15/init.m4:AC_REQUIRE([AM_SILENT_RULES])dnl
/usr/share/autoconf/autom4te.cfg:args: --preselect AM_SILENT_RULES
/usr/share/libtool/configure.ac:m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
/usr/share/libtool/aclocal.m4:AC_REQUIRE([AM_SILENT_RULES])dnl
/usr/share/libtool/aclocal.m4:# AM_SILENT_RULES([DEFAULT])
/usr/share/libtool/aclocal.m4:AC_DEFUN([AM_SILENT_RULES],

Offline

#13 2016-06-01 13:48:43

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,771

Re: [SOLVED]Unable to build anything using yaourt and packer

Fangahawk wrote:

makepkg does work properly, but i don't want to use that installing packages from AUR, since Yaourt is simple and easy to use.

Moving to AUR Issues.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#14 2016-06-01 17:32:01

Fangahawk
Member
Registered: 2016-06-01
Posts: 9

Re: [SOLVED]Unable to build anything using yaourt and packer

Yes, looks like I made a dumb mistake. Got confused with their numbering, and thought that automake 1.9 was a newer version than automake 1.15 tongue. Can you please tell me what to do now? And no setting ACLOCAL_FLAGS to nothing makes no difference

Last edited by Fangahawk (2016-06-01 17:32:39)

Offline

#15 2016-06-01 17:35:57

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

Re: [SOLVED]Unable to build anything using yaourt and packer

How did you set that variable to nothing?  Did you export it in the same session you tried to use yaourt/pacaur from?

export ACLOCAL_FLAGS=
yaourt ...

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#16 2016-06-01 17:40:34

Fangahawk
Member
Registered: 2016-06-01
Posts: 9

Re: [SOLVED]Unable to build anything using yaourt and packer

No, I didn't do it in the same session as yaourt and pacaur. I did

export ACLOCAL_FLAGS

And it came blank when i echoed the value of it after this.

Offline

#17 2016-06-01 17:46:05

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

Re: [SOLVED]Unable to build anything using yaourt and packer

OK, then do it like I suggested.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#18 2016-06-01 18:19:38

Fangahawk
Member
Registered: 2016-06-01
Posts: 9

Re: [SOLVED]Unable to build anything using yaourt and packer

FINALLY WORKED. Thank you all for the help, you guys are very friendly! I have heard that the Arch forums are really good, turns out it is true smile! The problem was that i manually installed automake 1.9, due to the numbering confusion. The solution was to download automake 1.15 tarball online and install it.

Offline

#19 2016-06-01 18:43:49

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

Re: [SOLVED]Unable to build anything using yaourt and packer

Fangahawk wrote:

The solution was to download automake 1.15 tarball online and install it.

This is a very bad solution.  Use pacman to install software.

The right solution would be to undo whatever you have done and just ensure you have base-devel installed via pacman.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#20 2016-06-01 18:55:56

Fangahawk
Member
Registered: 2016-06-01
Posts: 9

Re: [SOLVED]Unable to build anything using yaourt and packer

No actually i tried installing automake many times from pacman. I even cleared the cache and installed it again, but it wasn't working, so i installed automake online. But ya I'll undo everything.

Offline

#21 2016-06-01 19:11:41

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [SOLVED]Unable to build anything using yaourt and packer

Fangahawk wrote:

No actually i tried installing automake many times from pacman. I even cleared the cache and installed it again, but it wasn't working, so i installed automake online. But ya I'll undo everything.

hiding details, (though it may not be intended), is one common cause of unsolved threads. I think you can mark this thread solved, and create new one if your undoing fails somewhere.

Last edited by Docbroke (2016-06-02 03:16:30)

Offline

Board footer

Powered by FluxBB