You are not logged in.

#1 2014-08-11 06:46:01

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Unable to build pkg of the package gsl

I tried to build the package 'gsl' from source, however, I kept getting this error:

../test-driver: line 95:  2808 Aborted                 "$@" > $log_file 2>&1
FAIL: test
PASS: test_static
make[4]: Entering directory '/home/hong/tmp/gsl/src/gsl-1.16/vector'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/hong/tmp/gsl/src/gsl-1.16/vector'
============================================================================
Testsuite summary for gsl 1.16
============================================================================
# TOTAL: 2
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See vector/test-suite.log
============================================================================
Makefile:736: recipe for target 'test-suite.log' failed
make[3]: *** [test-suite.log] Error 1
make[3]: Leaving directory '/home/hong/tmp/gsl/src/gsl-1.16/vector'
Makefile:842: recipe for target 'check-TESTS' failed
make[2]: *** [check-TESTS] Error 2
make[2]: Leaving directory '/home/hong/tmp/gsl/src/gsl-1.16/vector'
Makefile:922: recipe for target 'check-am' failed
make[1]: *** [check-am] Error 2
make[1]: Leaving directory '/home/hong/tmp/gsl/src/gsl-1.16/vector'
Makefile:955: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1

The reason of failure is listed below:

=====================================
   gsl 1.16: vector/test-suite.log
=====================================

# TOTAL: 2
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: test
==========

gsl: fprintf_source.c:164: ERROR: fscanf failed
Default GSL error handler invoked.

I have no idea why this happens... Can someone help me, please? Thanks!

Last edited by xuhdev (2014-08-11 16:02:35)

Offline

#2 2014-08-11 11:49:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Unable to build pkg of the package gsl

Are you using ABS?


Please edit your post.
When posting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.

Offline

#3 2014-08-11 16:03:03

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Re: Unable to build pkg of the package gsl

karol wrote:

Are you using ABS?


Please edit your post.
When posting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.

Yes I'm using ABS.

Post edited.

Offline

#4 2014-08-11 20:35:06

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Unable to build pkg of the package gsl

Does it work with makepkg --nocheck?

Offline

#5 2014-08-11 23:13:21

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Re: Unable to build pkg of the package gsl

Stefan Husmann wrote:

Does it work with makepkg --nocheck?

Yes it works with --nocheck. However, it doesn't really make me confortable to build it this way....

Offline

#6 2014-08-17 14:47:29

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Unable to build pkg of the package gsl

You should ask upstream if these tests are about to fail.

Offline

#7 2014-08-18 18:53:30

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Re: Unable to build pkg of the package gsl

I tried to run the tests from vanilla gsl source archive and it can pass the test. So I guess there's something else wrong....

Offline

#8 2014-08-18 20:32:14

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Re: Unable to build pkg of the package gsl

Here is what I found with the original gsl source archive (not using PKGBUILD):

If I run `CFLAGS=-O2 -march=x86-64` or `CFLAGS=-march=haswell` (or ivybridge, sandybridge, core2), all tests can pass.

However, if I run `CFLAGS=-O2 -march=[any of core2 sandybridge ivybridge haswell]`, the tests failed.

Offline

#9 2014-08-19 11:51:23

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,854

Re: Unable to build pkg of the package gsl

same errors on my system

I build with MAKEFLAGS ="-j9" in /etc/makepkg.conf .

[Bug-gsl] [bug #42960] GSL testsuite fails when GNU make called with -jX where X > 1

might be related, thread starts here : http://lists.gnu.org/archive/html/bug-g … 00001.html

Looks like that issue has been solved in GSL git .


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

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB