linbox does not build with clang (sage 9.4.bet4)

30 views
Skip to first unread message

Vincent Delecroix

unread,
Jul 9, 2021, 5:51:03 AM7/9/21
to sage-devel
Dear all,

I tried to build sage 9.4.beta4 using clang 12.0.0. It failed for
linbox with

/usr/bin/bash ../../libtool --tag=CXX --mode=compile clang++
-std=gnu++11 -DHAVE_CONFIG_H -I. -I../.. -I../.. -fopenmp
-DFFLAS_COMPILED -DFFPACK_COMPILED -fabi-version=6 -fabi-version=6
-O2 -Wall -g -DNDEBUG -U_LB_DEBUG -DDISABLE_COMMENTATOR -O2 -g
-march=native -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx
-mavx2 -mfma -c -o error.lo error.C
libtool: compile: clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../..
-I../.. -fopenmp -DFFLAS_COMPILED -DFFPACK_COMPILED -fabi-version=6
-fabi-version=6 -O2 -Wall -g -DNDEBUG -U_LB_DEBUG -DDISABLE_COMMENTATOR
-O2 -g -march=native -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx
-mavx2 -mfma -c error.C -fPIC -DPIC -o .libs/error.o
clang-12: error: unknown argument: '-fabi-version=6'
clang-12: error: unknown argument: '-fabi-version=6'

Does someone know a way around?

Best
Vincent
linbox-1.6.3.p1.log
config.log
config.status

Isuru Fernando

unread,
Jul 9, 2021, 12:55:10 PM7/9/21
to sage-devel
You can replace `-fabi-version=6` with `-D__GXX_ABI_VERSION=1006`.

Isuru

--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/eb2be09e-d824-5840-6da6-b41d0bdcfc3c%40gmail.com.

Vincent Delecroix

unread,
Jul 9, 2021, 4:11:25 PM7/9/21
to sage-...@googlegroups.com
Not really. sage configure script was happy with givaro from
my system. This givaro is compiled with gcc and the option
"-fabi-version=6". The linbox configure script makes a query to
givaro to get these options. I can not change them.

I did force the compilation of givaro during the sage build and now
linbox compilation just works.

Shouldn't we check this compatibility in the givaro configure
script? Should we ask givaro to not use this "-fabi-version=6"?

Vincent
Reply all
Reply to author
Forward
0 new messages