test errors with clang 8 on openbsd

Issue #76 new
Dmitrii Pasechnik created an issue

One sees 2 tests failing

PASS: test_elimination
PASS: test_multiplication
PASS: test_trsm
PASS: test_ple
PASS: test_solve
PASS: test_kernel
FAIL: test_random
PASS: test_smallops
PASS: test_transpose
PASS: test_colswap
PASS: test_misc
FAIL: test_invert
PASS: test_alignment
PASS: test_djb
============================================================================
Testsuite summary for m4ri 20200125
============================================================================
# TOTAL: 14
# PASS:  12
# SKIP:  0
# XFAIL: 0
# FAIL:  2
# XPASS: 0
# ERROR: 0

=========================================
   m4ri 20200125: tests/test-suite.log
=========================================

# TOTAL: 14
# PASS:  12
# SKIP:  0
# XFAIL: 0
# FAIL:  2
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: test_random
=================

randomize m:   20, n:    1 FAILED
randomize m:   20, n:    2 FAILED
randomize m:   20, n:   32 FAILED
randomize m:   20, n:   50 FAILED
randomize m:   20, n:   51 FAILED
randomize m:   20, n:   52 FAILED
randomize m:   20, n:   63 FAILED
randomize m:   20, n:   64 FAILED
randomize m:   20, n:   65 FAILED
randomize m:   20, n:   65 FAILED
randomize m:   20, n:   66 FAILED
randomize m:   20, n:   96 FAILED
randomize m:   20, n:  114 FAILED
randomize m:   20, n:  115 FAILED
randomize m:   20, n:  116 FAILED
randomize m:   20, n:  127 FAILED
randomize m:   20, n:  128 FAILED
randomize m:   20, n:  129 FAILED
randomize m:   20, n:  129 FAILED
randomize m:   20, n:  130 FAILED
randomize m:   20, n:  160 FAILED
randomize m:   20, n:  178 FAILED
randomize m:   20, n:  179 FAILED
randomize m:   20, n:  180 FAILED
randomize m:   20, n:  191 FAILED
randomize m:   20, n:  192 FAILED
randomize m:   20, n:  193 FAILED
TEST FAILED!
FAIL test_random (exit status: 1)

FAIL: test_invert
=================

Segmentation fault (core dumped) 
FAIL test_invert (exit status: 139)

Probably random tests errors are due to a minor quirk in OS random facilities, but segfault in test_inverse is a worry.

I can offer access to an OpenBSD host if aonyone wants to have a go in fixing this.

Comments (9)

  1. Martin Albrecht repo owner

    I tried to see if I can reproduce on Debian GNU/Linux with Clang 7 but no dice:

    CC=clang ./configure --enable-debug && make -j4 check 
    

    passes. I tried running the same in an OpenBSD box but I can’t even do make check

    libtool:   error: require no space between '-L' and '-Wl,-rpath,'
    *** Error 1 in target 'test_multiplication'
    libtool:   error: require no space between '-L' and '-Wl,-rpath,'
    *** Error 1 in target 'test_elimination'
    libtool:   error: require no space between '-L' and '-Wl,-rpath,'
    *** Error 1 in target 'test_trsm'
    libtool:   error: require no space between '-L' and '-Wl,-rpath,'
    

  2. Dmitrii Pasechnik reporter
    $ ./config.status --config
    '--prefix=/home/dima' 'CC=clang' 'CFLAGS=-I/usr/local/include ' 'LDFLAGS=-L/usr/local/lib ' 'CPPFLAGS=-I/usr/local/include 
    

    and this is how I configured. Perhaps you cannot skip --prefix ?

  3. Martin Albrecht repo owner

    That did indeed do the trick, can you check again, I might have fixed the sigsegv.

  4. Martin Albrecht repo owner

    I can’t reproduce those on OpenBSD openbsd6.localdomain 6.6 GENERIC.MP#372 amd64

  5. Log in to comment