[Bug 214864] [exp-run] test build with lld as /usr/bin/ld
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jan 14 14:25:27 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214864
--- Comment #97 from Jan Beich <jbeich at FreeBSD.org> ---
(In reply to Antoine Brodin from comment #96)
> cc -O2 -DUTEST_CHECK -DSANITY_CHECK -DREFNAME=f_ -DMAX_STACK_ALLOC=2048 -DEXPRECISION -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DDYNAMIC_ARCH -DNO_AVX -DNO_AVX2 -DNO_WARMUP -DMAX_CPU_NUMBER=1 -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME= -DCHAR_NAME=\"_\" -DCHAR_CNAME=\"\" -DNO_AFFINITY -I.. -o openblas_utest utest_main.o test_amax.o test_potrs.o ../libopenblas-r0.2.20.a -lm -Wl,-rpath=/usr/local/lib/gcc6 -L/usr/local/lib/gcc6 -B/usr/local/bin -fstack-protector -lgfortran -lm -Wl,-rpath=/usr/local/lib/gcc6 -L/usr/local/lib/gcc6 -B/usr/local/bin -fstack-protector -lgfortran -L/usr/local/lib/gcc6/gcc/x86_64-portbld-freebsd12.0/6.4.0 -L/usr/local/lib/gcc6/gcc/x86_64-portbld-freebsd12.0/6.4.0/../../../../../x86_64-portbld-freebsd12.0/lib -L/usr/local/lib/gcc6/gcc/x86_64-portbld-freebsd12.0/6.4.0/../../.. -lgfortran -lm -lquadmath -lm -lc
> ./openblas_utest
> /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc6/libgfortran.so.3 not found
Here's a shorter version:
$ pkg install gcc6
$ echo 'int main() {}' >a.c
$ cc -lm -Wl,-rpath=/usr/local/lib/gcc6 -L/usr/local/lib/gcc6 -B/usr/local/bin
-lgfortran a.c
$ ./a.out
/lib/libgcc_s.so.1: version GCC_4.6.0 required by
/usr/local/lib/gcc6/libgfortran.so.3 not found
Before:
$ readelf -d /usr/lib/libm.so | fgrep NEEDED
0x0000000000000001 NEEDED Shared library: [libc.so.7]
After:
$ readelf -d /usr/lib/libm.so | fgrep NEEDED
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.7]
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-ports-bugs
mailing list