Bug 233967 - math/suitesparse build fails via poudriere with umfpack_simple coredump. 12.0-RELEASE/amd64
Summary: math/suitesparse build fails via poudriere with umfpack_simple coredump. 12.0...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-fortran mailing list
Depends on:
Reported: 2018-12-12 20:10 UTC by nhoyle
Modified: 2019-01-20 09:15 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (fortran)

poudriere build log (491.21 KB, text/plain)
2018-12-12 20:10 UTC, nhoyle
no flags Details
gdb backtrace of corefile from build (971 bytes, text/plain)
2018-12-12 20:16 UTC, nhoyle
no flags Details
patch to ignore errors when executing demo programs (987 bytes, patch)
2019-01-20 09:15 UTC, Martin Birgmeier
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nhoyle 2018-12-12 20:10:58 UTC
Created attachment 200066 [details]
poudriere build log

I will attach the full poudriere build log, but the end is:

gmake[4]: Leaving directory '/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse/CAMD'
gcc7 -O2 -pipe  -I/usr/local/include -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -fno-strict-aliasing    -O3 -fexceptions -fPIC -fopenmp   -I../../include -o umfpack_di_demo umfpack_di_demo.c -lm -L../../lib -lumfpack -lamd -lsuitesparseconfig -lccolamd -lcamd -L/usr/local/lib -lmetis  -L/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse/lib -Wl,-rpath=/usr/local/lib/gcc7  -L/usr/local/lib/gcc7 -B/usr/local/bin -L/usr/local/lib -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -L/usr/local/lib/gcc7    -llapack -L/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse/lib -Wl,-rpath=/usr/local/lib/gcc7  -L/usr/local/lib/gcc7 -B/usr/local/bin -L/usr/local/lib -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -L/usr/local/lib/gcc7  -lopenblasp
gcc7 -O2 -pipe  -I/usr/local/include -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -fno-strict-aliasing    -O3 -fexceptions -fPIC -fopenmp   -I../../include -o umfpack_zi_demo umfpack_zi_demo.c -lm -L../../lib -lumfpack -lamd -lsuitesparseconfig -lccolamd -lcamd -L/usr/local/lib -lmetis  -L/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse/lib -Wl,-rpath=/usr/local/lib/gcc7  -L/usr/local/lib/gcc7 -B/usr/local/bin -L/usr/local/lib -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -L/usr/local/lib/gcc7    -llapack -L/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse/lib -Wl,-rpath=/usr/local/lib/gcc7  -L/usr/local/lib/gcc7 -B/usr/local/bin -L/usr/local/lib -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -L/usr/local/lib/gcc7  -lopenblasp
gcc7 -O2 -pipe  -I/usr/local/include -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -fno-strict-aliasing    -O3 -fexceptions -fPIC -fopenmp   -I../../include -o umfpack_dl_demo umfpack_dl_demo.c -lm -L../../lib -lumfpack -lamd -lsuitesparseconfig -lccolamd -lcamd -L/usr/local/lib -lmetis  -L/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse/lib -Wl,-rpath=/usr/local/lib/gcc7  -L/usr/local/lib/gcc7 -B/usr/local/bin -L/usr/local/lib -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -L/usr/local/lib/gcc7    -llapack -L/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse/lib -Wl,-rpath=/usr/local/lib/gcc7  -L/usr/local/lib/gcc7 -B/usr/local/bin -L/usr/local/lib -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -L/usr/local/lib/gcc7  -lopenblasp
gcc7 -O2 -pipe  -I/usr/local/include -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -fno-strict-aliasing    -O3 -fexceptions -fPIC -fopenmp   -I../../include -o umfpack_zl_demo umfpack_zl_demo.c -lm -L../../lib -lumfpack -lamd -lsuitesparseconfig -lccolamd -lcamd -L/usr/local/lib -lmetis  -L/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse/lib -Wl,-rpath=/usr/local/lib/gcc7  -L/usr/local/lib/gcc7 -B/usr/local/bin -L/usr/local/lib -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -L/usr/local/lib/gcc7    -llapack -L/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse/lib -Wl,-rpath=/usr/local/lib/gcc7  -L/usr/local/lib/gcc7 -B/usr/local/bin -L/usr/local/lib -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -L/usr/local/lib/gcc7  -lopenblasp
gcc7 -O2 -pipe  -I/usr/local/include -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -fno-strict-aliasing    -O3 -fexceptions -fPIC -fopenmp   -I../../include -o umfpack_simple umfpack_simple.c -lm -L../../lib -lumfpack -lamd -lsuitesparseconfig -lccolamd -lcamd -L/usr/local/lib -lmetis  -L/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse/lib -Wl,-rpath=/usr/local/lib/gcc7  -L/usr/local/lib/gcc7 -B/usr/local/bin -L/usr/local/lib -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -L/usr/local/lib/gcc7    -llapack -L/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse/lib -Wl,-rpath=/usr/local/lib/gcc7  -L/usr/local/lib/gcc7 -B/usr/local/bin -L/usr/local/lib -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -L/usr/local/lib/gcc7  -lopenblasp
gmake[3]: *** [Makefile:95: run] Segmentation fault (core dumped)
gmake[3]: Leaving directory '/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse/UMFPACK/Demo'
gmake[2]: *** [Makefile:15: all] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse/UMFPACK'
gmake[1]: *** [Makefile:26: go] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse'
*** Error code 2

make: stopped in /usr/ports/math/suitesparse
=>> Cleaning up wrkdir
===>  Cleaning for suitesparse-5.2.0_1
build of math/suitesparse | suitesparse-5.2.0_1 ended at Wed Dec 12 14:15:21 EST 2018
build time: 00:00:53
!!! build failure encountered !!!

This seems *similar* to what was described in PR 227791, especially comment #5 on that PR, but that is marked as closed, and may not be the same thing.
Comment 1 nhoyle 2018-12-12 20:16:42 UTC
Created attachment 200067 [details]
gdb backtrace of corefile from build

I performed a backtrace on the corefile in gdb, but it doesn't have any debugging symbols. Fortran is not my specialty, and I'm not sure of the correct means to force poudriere to build/retain debug symbols for the executables it builds here. I can attempt again with additional debugging enabled if ponted at how to do that.
Comment 2 Martin Birgmeier 2019-01-20 09:15:55 UTC
Created attachment 201280 [details]
patch to ignore errors when executing demo programs

I have the same issue.

Since the coredumps seem to happen when running demo programs, I have modified the Makefile to ignore them. See the attached patch.

However, I do not know whether this points to a deeper problem or not. The patch is just a workaround to get the build to complete.

-- Martin