Bug 257165 - math/openblas: fails to build in Poudriere
Summary: math/openblas: fails to build in Poudriere
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL: https://github.com/xianyi/OpenBLAS/is...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-13 21:30 UTC by Neel Chauhan
Modified: 2021-07-14 02:27 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neel Chauhan freebsd_committer 2021-07-13 21:30:29 UTC
When I am attempting to run `poudriere testport` on WIP ports that depend on openblas, I am getting errors.

Poudriere log: https://www.neelc.org/openblas-0.3.16,1.log

This snippet is interesting:

gfortran10 -O -Wl,-rpath=/usr/local/lib/gcc10 -O2 -m128bit-long-double -Wall -frecursive -fno-optimize-sibling-calls -m64 -fopenmp  -O2 -m128bit-long-double -Wall -frecursive -fno-optimize-sibling-calls -m64 -fopenmp   -Wl,-rpath=/usr/local/lib/gcc10  -L/usr/local/lib/gcc10 -B/usr/local/bin -fstack-protector-strong  -o zblat2 zblat2.o ../libopenblasp-r0.3.16.a -lpthread -lgfortran -lpthread -lgfortran -lomp
rm -f ?BLAT2.SUMM
OMP_NUM_THREADS=1 OMP_NUM_THREADS=1 ./sblat2 < ./sblat2.dat

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x80161f6db in ???
#1  0x80161e896 in ???
#2  0x801478dff in ???
#3  0x8014783ce in ???
#4  0x7ffffffff002 in ???
#5  0x8020b08e0 in ???
#6  0x10e2f41 in ???
#7  0x40fb74 in ???
#8  0x40a7a7 in ???
#9  0x40f3f2 in ???
#10  0x401a1e in ???
#11  0x401b1f in _start
	at /usr/src/lib/csu/amd64/crt1_c.c:75
gmake[2]: *** [Makefile:88: level2] Segmentation fault (core dumped)
gmake[2]: Leaving directory '/wrkdirs/usr/ports/math/openblas/work/OpenBLAS-0.3.16/test'
gmake[1]: *** [Makefile:146: tests] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/math/openblas/work/OpenBLAS-0.3.16'
*** Error code 1

This happens in a 13.0-RELEASE poudriere jail on a 14.0-CURRENT host (HP Omen 30L w/ AMD Ryzen 5800X).

Maybe is it lang/gcc10?
Comment 1 VVD 2021-07-14 00:50:02 UTC
Same here on 12.2-p9 amd64 with gcc10 from ports.
Comment 2 Charlie Li freebsd_committer 2021-07-14 02:24:38 UTC
As a data point, gcc11 does not exhibit this issue as far as I can tell.
Comment 3 Charlie Li freebsd_committer 2021-07-14 02:27:46 UTC
Spoke too soon on two counts. Probably the linked issue upstream, which pkubaj@ reverted in our tree:

https://cgit.freebsd.org/ports/commit/?id=09d6ef8b0f5968eb19dce55ad47f73bb92c6a122

May want to try and report back.