You are not logged in.

#1 2016-01-14 19:49:07

irrlicht
Member
Registered: 2010-12-06
Posts: 107

Failing to build a package pspp from AUR

Hello!

I'm try to build a pspp 0.85 package from AUR. The build process is failing with:

cd perl-module && /usr/bin/perl Makefile.PL PREFIX=/usr
libtool: link: gcc -Wall -W -Wwrite-strings -Wstrict-prototypes -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes -march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o src/ui/terminal/.libs/pspp  src/ui/terminal/.libs/libui.a src/ui/.libs/libuicommon.a src/.libs/libpspp.so src/.libs/libpspp-core.so -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lgsl -lreadline -lncurses -lgslcblas -lz -lm -Wl,-rpath -Wl,/usr/lib/pspp
Checking if your kit is complete...
Warning: the following files are missing in your kit:
        const-c.inc
        const-xs.inc
Please inform the author.
Only one of PREFIX or INSTALL_BASE can be given.  Not both.
Makefile:12471: recipe for target 'perl-module/Makefile' failed
make[3]: *** [perl-module/Makefile] Error 25
make[3]: Leaving directory '/tmp/builddir/pspp/src/pspp-0.8.5'
Makefile:12479: recipe for target 'perl_module_tarball' failed
make[2]: *** [perl_module_tarball] Error 2
make[2]: *** Waiting for unfinished jobs....
[.......]
make[2]: Leaving directory '/tmp/builddir/pspp/src/pspp-0.8.5'
Makefile:11574: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/builddir/pspp/src/pspp-0.8.5'
Makefile:5199: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Do i missing some perl modules?  const-c.inc and const-xs.inc are part of ExtUtils::Constant. I checked it, and this module is up to date.

ExtUtils::Constant is up to date (0.23).

Thank!


Everything less than immortality is a complete waste of time!

Offline

#2 2016-01-15 13:49:46

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Failing to build a package pspp from AUR

cd perl-module && /usr/bin/perl Makefile.PL PREFIX=/usr
Checking if your kit is complete...
Warning: the following files are missing in your kit:
	const-c.inc
	const-xs.inc
Please inform the author.
Generating a Unix-style Makefile
Writing Makefile for PSPP
Writing MYMETA.yml and MYMETA.json

The perl modules shouldn't break the build.

Possibly you are missing some dependency needed for building, did you install base-devel group ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2016-01-18 11:42:18

irrlicht
Member
Registered: 2010-12-06
Posts: 107

Re: Failing to build a package pspp from AUR

Yes, base-devel group is installed. There are many other packages i was able to build. PSPP is the first one, i can't build without disabling functionality.


Everything less than immortality is a complete waste of time!

Offline

#4 2016-01-18 11:56:24

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Failing to build a package pspp from AUR

Ok, make sure you try building manually with makepkg , NOT an aur helper . [1]

If building that way does fail, post the complete output .

Use something like this to get full makepkg output into a file :

makepkg -Crs 2>&1 >makepkg-log.txt

[1]

The line below looks very much like the typical output from a certain AUR helper.
There have been many cases where AUR packages build fine with makepkg, but not with aur helpers.

make[3]: Leaving directory '/tmp/builddir/pspp/src/pspp-0.8.5'

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2016-01-18 12:29:39

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Failing to build a package pspp from AUR

Moving to AUR Issues.

Offline

#6 2016-01-18 13:33:38

irrlicht
Member
Registered: 2010-12-06
Posts: 107

Re: Failing to build a package pspp from AUR

Lone_Wolf wrote:

Ok, make sure you try building manually with makepkg , NOT an aur helper . [1]

If building that way does fail, post the complete output .


Complete output is 1.3Mb but looks fine until failing somewhere near the end of compilation. But the relevant part is the same. The output is identical to the output from aur helper.

Lone_Wolf wrote:

The line below looks very much like the typical output from a certain AUR helper.
There have been many cases where AUR packages build fine with makepkg, but not with aur helpers.

Not this time. I get the same error if try to build it just via ./configure && make. Build process even then is failing with same error.


Everything less than immortality is a complete waste of time!

Offline

#7 2016-01-18 13:55:43

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Failing to build a package pspp from AUR

Only one of PREFIX or INSTALL_BASE can be given.  Not both.

Currently that's all we know about your error.
the lines you posted only show ONE place where PREFIX is set, there needs to be atleast 1 other (likely there are many) place where prefix or installbase are set.

As no one can predict what lines are relevant for solving this problem, we need the whole output.
PLEASE post the full output somewhere we can see it (a pastebin site,dropbox, google ,onedrive etc )


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#8 2016-01-18 14:08:26

irrlicht
Member
Registered: 2010-12-06
Posts: 107

Re: Failing to build a package pspp from AUR

Sorry, here is a full output produced by makepkg -Crs 2>&1 >makepkg.txt:  https://gist.github.com/anonymous/579343c416c50efda50f

Or the only console output from the same command:

makepkg -Crsf 2>&1 > makepkg_log.txt
==> Making package: pspp 0.8.5-1 (Mo 18. Jan 14:24:23 CET 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found pspp-0.8.5.tar.gz
==> Validating source files with md5sums...
    pspp-0.8.5.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting pspp-0.8.5.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/bin/automake-1.15 line 3936.
ar: `u' modifier ignored since `D' is the default (see `U')
src/libpspp/zip-reader.c: In function 'get_bytes':
src/libpspp/zip-reader.c:155:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
   fread (x, 1, n, f);
   ^
src/language/utilities/include.c: In function 'do_insert':
src/language/utilities/include.c:167:15: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result]
               chdir (directory);
               ^
src/ui/terminal/terminal-reader.c: In function 'interruptible_getc':
src/ui/terminal/terminal-reader.c:305:8: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result]
        read (pfd[0], dummy, 1);
        ^
src/ui/terminal/terminal-reader.c:314:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result]
   read (fileno (fp), &c, 1);
   ^
src/ui/terminal/terminal-reader.c: In function 'handler':
src/ui/terminal/terminal-reader.c:264:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
   write (pfd[1], "x", 1);
   ^
src/ui/gui/main.c: In function ‘main’:
src/ui/gui/main.c:289:3: warning: ‘g_mem_set_vtable’ is deprecated [-Wdeprecated-declarations]
   g_mem_set_vtable (&vtable);
   ^
In file included from /usr/include/glib-2.0/glib/glist.h:32:0,
                 from /usr/include/glib-2.0/glib/ghash.h:33,
                 from /usr/include/glib-2.0/glib.h:50,
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from src/ui/gui/include/gtk/gtk.h:26,
                 from src/ui/gui/main.c:21:
/usr/include/glib-2.0/glib/gmem.h:357:7: note: declared here
 void  g_mem_set_vtable (GMemVTable *vtable);
       ^
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
Only one of PREFIX or INSTALL_BASE can be given.  Not both.
make[3]: *** [perl-module/Makefile] Error 25
make[2]: *** [perl_module_tarball] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Everything less than immortality is a complete waste of time!

Offline

#9 2016-01-18 14:33:35

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

Re: Failing to build a package pspp from AUR

INSTALL_BASE is not present anywhere in the PKGBUILD or any of the source files.  Is INSTALL_BASE defined in your environment?  i.e. right before you run makepkg, what is the output of `echo $INSTALL_BASE`?

I also just added three echos of INSTALL_BASE in the build function (before, between, and after the existing commands).  The variable was not defined in any of those.  This further supports my suspicion that it is set in your environment.

Last edited by Trilby (2016-01-18 14:36:56)


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

Offline

#10 2016-01-18 19:04:44

irrlicht
Member
Registered: 2010-12-06
Posts: 107

Re: Failing to build a package pspp from AUR

Trilby wrote:

  This further supports my suspicion that it is set in your environment.


INSTALL_BASE is not defined in my environment either. I didn't needed it before.  And i don't know which value it should have in this case.


Everything less than immortality is a complete waste of time!

Offline

#11 2016-01-18 19:45:00

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

Re: Failing to build a package pspp from AUR

Did you do the same test by echoing from within the PKGBUILD?:

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    echo INSTALL_BASE=$INSTALL_BASE
    ./configure --prefix=/usr \
                --sysconfdir=/etc \
                --without-libreadline-prefix
    echo INSTALL_BASE=$INSTALL_BASE
    make
    echo INSTALL_BASE=$INSTALL_BASE
}

Use that in place of the existing build function, then capture the output as before, and grep it for INSTALL_BASE - is it set at any of those three places?


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

Offline

#12 2016-01-19 01:36:59

irrlicht
Member
Registered: 2010-12-06
Posts: 107

Re: Failing to build a package pspp from AUR

Trilby wrote:

is it set at any of those three places?


The third output is not present in the output since 'make' command is failing. The first two 'echoes' are telling that the variable is not set.


Everything less than immortality is a complete waste of time!

Offline

#13 2016-01-19 02:09:44

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

Re: Failing to build a package pspp from AUR

Thanks - but that's odd, as the error is claiming it is set.


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

Offline

Board footer

Powered by FluxBB