- edited description
Trying to compile on Apple M1
I am trying to compile M4RIE on an Apple M1 Mac (to address https://trac.sagemath.org/ticket/33212).
This fails, one of the reasons being that M4RI was not installed (if I understood correctly).
So I began by compiling M4RI (see https://bitbucket.org/malb/m4ri/issues/83/trying-to-compile-on-apple-m1), then
% git clone https://bitbucket.org/malb/m4rie.git
Cloning into 'm4rie'...
Receiving objects: 100% (1739/1739), 626.09 KiB | 1.76 MiB/s, done.
Resolving deltas: 100% (1292/1292), done.
% cd m4rie
% autoreconf --install
glibtoolize: putting auxiliary files in '.'.
glibtoolize: copying file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:11: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:11: You should run autoupdate.
m4/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:11: the top level
configure.ac:19: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:19: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:19: the top level
configure.ac:11: installing './compile'
configure.ac:3: installing './config.guess'
configure.ac:3: installing './config.sub'
configure.ac:9: installing './install-sh'
configure.ac:9: installing './missing'
Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
% autoupdate
configure.ac:19: warning: AC_PROG_CC_C99 is obsolete; use AC_PROG_CC
% autoreconf --install
configure.ac:19: warning: AC_PROG_CC_C99 is obsolete; use AC_PROG_CC
configure.ac:22: warning: ac_ext=c
configure.ac:22: ac_cpp='$CPP $CPPFLAGS'
configure.ac:22: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
configure.ac:22: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
configure.ac:22: ac_compiler_gnu=$ac_cv_c_compiler_gnu
configure.ac:22: if test -n "$ac_tool_prefix"; then
configure.ac:22: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
configure.ac:22: set dummy ${ac_tool_prefix}gcc; ac_word=$2
configure.ac:22: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
configure.ac:22: printf %s "checking for $ac_word... " >&6; }
configure.ac:22: if test ${ac_cv_prog_CC+y}
configure.ac:22: then :
configure.ac:22: printf %s "(cached) " >&6
configure.ac:22: else $as_nop
configure.ac:22: if test -n "$CC"; then
configure.ac:22: ac_cv_prog_CC="$CC" # Let the user override the test.
configure.ac:22: else
configure.ac:22: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
configure.ac:22: for as_dir in $PATH
configure.ac:22: do
configure.ac:22: IFS=$as_save_IFS
configure.ac:22: case $as_dir in #(((
configure.ac:22: '' is m4_require'd but not m4_defun'd
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/programs.m4:41: _AC_CHECK_PROG is expanded from...
./lib/autoconf/programs.m4:101: AC_CHECK_PROG is expanded from...
./lib/autoconf/programs.m4:221: AC_CHECK_TOOL is expanded from...
./lib/autoconf/c.m4:452: AC_PROG_CC is expanded from...
configure.ac:22: the top level
%
I modified configure
as follows
% diff configure_ORIG configure
16674,16675c16674
< ''
< as_dir=./ ;;
---
> '') as_dir=./ ;;
17573c17572
< )
---
> #)
%
and then
% ./configure
checking build system type... aarch64-apple-darwin21.2.0
checking host system type... aarch64-apple-darwin21.2.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make -j20 sets $(MAKE)... yes
checking whether make -j20 supports nested variables... yes
checking how to print strings... printf
checking whether make -j20 supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking how to convert aarch64-apple-darwin21.2.0 file names to aarch64-apple-darwin21.2.0 format... func_convert_file_noop
checking how to convert aarch64-apple-darwin21.2.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin21.2.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin21.2.0 dyld
checking how to hardcode library paths into programs... immediate
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for library containing sqrt... none required
checking for M4RI CFLAGS...
checking whether make -j20 sets $(MAKE)... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tests/Makefile
config.status: creating bench/Makefile
config.status: creating m4rie.pc
config.status: creating m4rie/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
% make
Making all in .
CC m4rie/gf2e.lo
CC m4rie/mzed.lo
CC m4rie/newton_john.lo
CC m4rie/echelonform.lo
CC m4rie/strassen.lo
CC m4rie/mzd_poly.lo
CC m4rie/mzd_ptr.lo
CC m4rie/mzd_slice.lo
CC m4rie/blm.lo
CC m4rie/conversion_cling8.lo
CC m4rie/karatsuba.lo
CC m4rie/conversion_slice8.lo
CC m4rie/conversion.lo
CC m4rie/trsm.lo
CC m4rie/ple.lo
CC m4rie/conversion_slice16.lo
CC m4rie/conversion_cling16.lo
In file included from m4rie/echelonform.c:20:
In file included from ./m4rie/echelonform.h:31:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
word temp = mzd_row(M, x)[block] << -spill;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/echelonform.c:20:
In file included from ./m4rie/echelonform.h:31:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-WincompIn file included from m4rie/mzed.c:23:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:44:23: warning: atible-pointer-types-discards-qualifiers]passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
word temp = mzd_row(M, x)[block] << -spill;
^
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
/usr/local/include/m4ri/mzd.h:static inline word *mzd_row(mzd_t *M, rci_t row) {185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/echelonform.c:20:
In file included from ./m4rie/echelonform.h:31:
In file included from ./mIn file included from m4rie/ple.c:20:
In file included from ./m4rie/permutation.h:31:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:44:23:4rie/mzed.h warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]:51:
./m4rie/m4ri_functions.hIn file included from :66:11:m4rie/strassen.c :26:
warning: In file included from ./m4rie/mzed.h:passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]51:
./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
word temp = mzd_row(M, x)[block] << -spill;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/ple.c:20:
In file included from ./m4rie/permutation.h:31:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/ple.c:20:
In file included from ./m4rie/permutation.hIn file included from 1;32m ^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
m4rie/newton_john.c:27:
In file included from ./m4rie/newton_john.h:static inline word *mzd_row(mzd_t *M, rci_t row) {34
:31:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:66:11: word temp = mzd_row(M, x)[block] << -spill; warning:
passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ^
^
In file included from m4rie/mzd_poly.c:2:
In file included from ./m4rie/mzd_slice.h:40:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
word temp = mzd_row(M, x)[block] << -spill;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/strassen.c:26:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/strassen.c:26:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/mzd_poly.c:2:
In file included from ./m4rie/mzd_slice.h:40:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/mzd_poly.c:2:
In file included from :
./m4rie/mzd_slice.h:40:
In file included from
./m4rie/mzed.hIn file included from :51./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:44:23: mzd_row(M, x)[block] &= ~(values << spot);
warning: ^
passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
*') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill;
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
mzd_row(M, x)[block] &= ~(values << spot);
^
/usr/local/include/m4ri/mzd.h:185:36: note:
./m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/newton_john.c:27:
In file included from ./m4rie/newton_john.h:34:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'coIn file included from m4rie/conversion_cling16.c:20:
In file included from ./m4rie/conversion.h:32:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
word temp = mzd_row(M, x)[block] << -spill;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/conversion_cling16.c:20:
In file included from ./m4rie/conversion.h:32:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifie
In file included from m4rie/mzd_slice.c:20:
In file included from ./m4rie/mzd_slice.h:40:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
word temp = mzd_row(M, x)[block] << -spill;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/mzd_slice.c:20:
In file included from ./m4rie/mzd_slice.h:40:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-WincompatibleIn file included from nst struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]m4rie/conversion.c:20:
In file included from
./m4rie/conversion.h:32:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:36: word temp = mzd_row(M, x)[block] << -spill;
^note
: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inlineIn file included from m4rie/newton_john.c:27:
In file included from ./m4rie/newton_john.h:34:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
0m ^
In file included from m4rie/mzed.c:23:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/mzed.c:23:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(passing argument to parameter 'M' hereIn file included from
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
m4rie/karatsuba.c:2:
./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
word temp = mzd_row(M, x)[block] << -spill;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/trsm.c:1:
In file included from ./m4rie/trsm.h:30:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
word temp = mzd_row(M, x)[block] << -spill;
^
n file included from In file included from m4rie/karatsuba.c:m4rie/mzd_ptr.c2::
2:
./m4rie/m4ri_functions.h:./m4rie/m4ri_functions.h55::4411::23 : warning: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
word temp = mzd_row(M, x)[block] << -spill;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/mzd_ptr.c:2:
./m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:In file included from 185m4rie/karatsuba.c word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/conversion.c:20:
In file included from :36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/mzd_ptr.c:2:
./m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
m/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
In file included from m4rie/trsm.c:1:
In file included from ./m4rie/trsm.h:30:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:36: /usr/local/include/m4ri/mzd.h:note185: :36passing argument to parameter 'M' here:
note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/trsm.c:1:
In file included from ./m4rie/trsm.h:30:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
In file included from m4rie/mzd_slice.c:20:
In file included from ./m4rie/mzd_slice.h:40:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:66:11: warning: /usr/local/include/m4ri/mzd.h:185values << spot);:36:
note ^:
passing argument to parameter 'M' here
/usr/local/include/m4ri/mzd.hstatic inline word *mzd_row(mzd_t *M, rci_t row) {:
185: ^36
: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
rs [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/conversion_cling16.c:20:
In file included from ./m4rie/conversion.h:32:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/conversion_cling8.c:20:
In file included from ./m4rie/conversion.h:32:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
word temp = mzd_row(M, x)[block] << -spill;
^
/usr/local/include/m4ri/mzd.h:185:36: ./m4rie/conversion.hnote: passing argument to parameter 'M' here:32:
:In file included from 2:
./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/conversion.c:20:
In file included from ./m4rie/conversion.h:32:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/conversion_slice8.c:20:
In file included from ./m4rie/conversion.h:32:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
word temp = mzd_row(M, x)[block] << -spill;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/conversion_slice8.c:20:
In file included from ./m4rie/conversion.h:32:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/conversion_slice8.c:20:
In file included from ./m4rie/conversion.h:32:
In file included from ./m4rie/mzed.h:53 warnings generated.
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
1:
./m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/conversion_cling8.c:20:
In file included from ./m4rie/conversion.h:32:
In file included from ./m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/conversion_slice16.c:20:
In file included from ./m4rie/conversion.h:32:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
word temp = mzd_row(M, x)[block] << -spill;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/conversion_slice16.c:20:
In file included from ./m4rie/conversion.h:32:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/conversion_slice16.c:20:
In file included from ./m4rie/conversion.h:32:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from m4rie/conversion_cling8.c:20:
In file included from ./m4rie/conversion.h:32:
In file included from ./m4rie/mzed.h:51:
./m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
m4rie/strassen.c:52:7: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
if (CLOSER(m, m/2, cutoff) || CLOSER(k, k/2, cutoff) || CLOSER(n, n/2, cutoff)) {
^
m4rie/strassen.c:31:29: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:52:7: note: use function 'labs' instead
m4rie/strassen.c:31:29: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:52:7: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
if (CLOSER(m, m/2, cutoff) || CLOSER(k, k/2, cutoff) || CLOSER(n, n/2, cutoff)) {
^
m4rie/strassen.c:31:55: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:52:7: note: use function 'labs' instead
m4rie/strassen.c:31:55: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:52:33: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
if (CLOSER(m, m/2, cutoff) || CLOSER(k, k/2, cutoff) || CLOSER(n, n/2, cutoff)) {
^
m4rie/strassen.c:31:29: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:52:33: note: use function 'labs' instead
m4rie/strassen.c:31:29: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:52:33: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
if (CLOSER(m, m/2, cutoff) || CLOSER(k, k/2, cutoff) || CLOSER(n, n/2, cutoff)) {
^
m4rie/strassen.c:31:55: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:52:33: note: use function 'labs' instead
m4rie/strassen.c:31:55: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:52:59: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
if (CLOSER(m, m/2, cutoff) || CLOSER(k, k/2, cutoff) || CLOSER(n, n/2, cutoff)) {
^
m4rie/strassen.c:31:29: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:52:59: note: use function 'labs' instead
m4rie/strassen.c:31:29: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:52:59: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
if (CLOSER(m, m/2, cutoff) || CLOSER(k, k/2, cutoff) || CLOSER(n, n/2, cutoff)) {
^
m4rie/strassen.c:31:55: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:52:59: note: use function 'labs' instead
m4rie/strassen.c:31:55: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:196:7: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
if (CLOSER(m, m/2, cutoff) || CLOSER(k, k/2, cutoff) || CLOSER(n, n/2, cutoff)) {
^
m4rie/strassen.c:31:29: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:196:7: note: use function 'labs' instead
m4rie/strassen.c:31:29: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:196:7: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
if (CLOSER(m, m/2, cutoff) || CLOSER(k, k/2, cutoff) || CLOSER(n, n/2, cutoff)) {
^
m4rie/strassen.c:31:55: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:196:7: note: use function 'labs' instead
m4rie/strassen.c:31:55: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:196:33: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
if (CLOSER(m, m/2, cutoff) || CLOSER(k, k/2, cutoff) || CLOSER(n, n/2, cutoff)) {
^
m4rie/strassen.c:31:29: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:196:33: note: use function 'labs' instead
m4rie/strassen.c:31:29: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:196:33: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
if (CLOSER(m, m/2, cutoff) || CLOSER(k, k/2, cutoff) || CLOSER(n, n/2, cutoff)) {
^
m4rie/strassen.c:31:55: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:196:33: note: use function 'labs' instead
m4rie/strassen.c:31:55: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:196:59: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
if (CLOSER(m, m/2, cutoff) || CLOSER(k, k/2, cutoff) || CLOSER(n, n/2, cutoff)) {
^
m4rie/strassen.c:31:29: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:196:59: note: use function 'labs' instead
m4rie/strassen.c:31:29: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:196:59: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
if (CLOSER(m, m/2, cutoff) || CLOSER(k, k/2, cutoff) || CLOSER(n, n/2, cutoff)) {
^
m4rie/strassen.c:31:55: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
m4rie/strassen.c:196:59: note: use function 'labs' instead
m4rie/strassen.c:31:55: note: expanded from macro 'CLOSER'
#define CLOSER(a,b,target) (abs((long)a-(long)target)<abs((long)b-(long)target))
^
3 warnings generated.
3 warnings generated.
3 warnings generated.
15 warnings generated.
3 warnings generated.
3 warnings generated.
3 warnings generated.
3 warnings generated.
3 warnings generated.
3 warnings generated.
3 warnings generated.
3 warnings generated.
3 warnings generated.
3 warnings generated.
CCLD libm4rie.la
ld: warning: directory not found for option '-L/lib'
Making all in tests
CC test_trsm.o
CC test_elimination.o
CC test_multiplication.o
CC test_ple.o
CC test_smallops.o
In file included from test_smallops.c:27:
In file included from ./testing.h:2:
In file included from ../m4rie/m4rie.h:76:
In file included from ../m4rie/mzed.h:51:
../m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
word temp = mzd_row(M, x)[block] << -spill;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from test_smallops.c:27:
In file included from ./testing.h:2:
In file included from ../m4rie/m4rie.h:76:
In file included from ../m4rie/mzed.h:51:
../m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from test_elimination.c:27:
In file included from ./testing.h:2:
In file included from ../m4rie/m4rie.h:76:
In file included from ../m4rie/mzed.h:51:
../m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
In file included from test_smallops.c:27:
word temp = mzd_row(M, x)[block] << -spill;In file included from
./testing.h: ^2
:
In file included from ../m4rie/m4rie.h:76:
In file included from ../m4rie/mzed.h:51:
../m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
/usr/local/include/m4ri/mzd.h ^:
185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from test_elimination.c:27:
In file included from ./testing.h:2:
In file included from ../m4rie/m4rie.h:76:
In file included from ../m4rie/mzed.h:51:
../m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from test_elimination.c:27:
In file included from ./testing.h:2:
In file included from ../m4rie/m4rie.h:76:
In file included from ../m4rie/mzed.h:51:
../m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from test_multiplication.c:27:
In file included from ./testing.h:2:
In file included from ../m4rie/m4rie.h:76:
In file included from ../m4rie/mzed.h:51:
../m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
word temp = mzd_row(M, x)[block] << -spill;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from test_multiplication.c:27:
In file included from ./testing.h:2:
In file included from ../m4rie/m4rie.h:76:
In file included from ../m4rie/mzed.h:51:
../m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from test_multiplication.c:27:
In file included from ./testing.h:2:
In file included from ../m4rie/m4rie.h:76:
In file included from ../m4rie/mzed.h:51:
../m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from test_ple.c:27:
In file included from ./testing.h:2:
In file included from ../m4rie/m4rie.h:76:
In file included from ../m4rie/mzed.h:51:
../m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
word temp = mzd_row(M, x)[block] << -spill;
^
In file included from test_trsm.c:27:
In file included from ./testing.h:2:
In file included from ../m4rie/m4rie.h:76:
In file included from ../m4rie/mzed.h:51:
../m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
word temp = mzd_row(M, x)[block] << -spill;
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
In file included from test_trsm.c:27:
In file included from ./testing.h:2:
In file included from ../m4rie/m4rie.h:76:
In file included from ../m4rie/mzed.h:51:
../m4rie/m4ri_functions.h:55:In file included from 11test_ple.c:: 27:
In file included from warning./testing.h: :2:
passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]In file included from ../m4rie/m4rie.h
:76:
In file included from ../m4rie/mzed.h:51:
../m4rie/m4ri_functions.h:55:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] ^= values << spot;
^
mzd_row(M, x)[block] ^= values << spot;
^
/usr/local/include/m4ri/mzd.h:185:/usr/local/include/m4ri/mzd.h36::185 :36:note : passing argument to parameter 'M' herenote:
passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {static inline word *mzd_row(mzd_t *M, rci_t row) {
^ ^
In file included from test_ple.c:27:
In file included from ./testing.h:2:
In file included from ../m4rie/m4rie.h:76:
In file included from ../m4rie/mzed.h:51:
../m4rie/m4ri_functions.h:66:11: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
/usr/local/include/m4ri/mzd.h:185:In file included from 36test_trsm.c:27:
In file included from ./testing.h::2 note:
In file included from ../m4rie/m4rie.h:: 76:
passing argument to parameter 'M' hereIn file included from ../m4rie/mzed.h
:51:
../m4rie/m4ri_functions.h:66:11static inline word *mzd_row(mzd_t *M, rci_t row) {:
^
warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
mzd_row(M, x)[block] &= ~(values << spot);
^
/usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here
static inline word *mzd_row(mzd_t *M, rci_t row) {
^
3 warnings generated.
CCLD test_elimination
3 warnings generated.
libtool: warning: '-no-install' is ignored for aarch64-apple-darwin21.2.0
CCLD test_multiplication
3 warnings generated.
CCLD test_ple
3 warnings generated.
CCLD test_smallops
libtool: warning: assuming '-no-fast-install' instead
libtool: warning: '-no-install' is ignored for aarch64-apple-darwin21.2.0
libtool: warning: '-no-install' is ignored for aarch64-apple-darwin21.2.0
libtool: warning: '-no-install' is ignored for aarch64-apple-darwin21.2.0
ld: warning: directory not found for option '-L/lib'
libtool: warning: assuming '-no-fast-install' instead
libtool: warning: assuming '-no-fast-install' instead
libtool: warning: assuming '-no-fast-install' instead
3 warnings generated.
CCLD test_trsm
ld: warning: directory not found for option '-L/lib'
ld: warning: directory not found for option '-L/lib'
ld: warning: directory not found for option '-L/lib'
libtool: warning: '-no-install' is ignored for aarch64-apple-darwin21.2.0
libtool: warning: assuming '-no-fast-install' instead
ld: warning: directory not found for option '-L/lib'
% make check
Making check in .
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh '/Users/admin/M4RIE/Git/m4rie/missing' autoheader)
rm -f m4rie/stamp-h1
touch m4rie/config.h.in
cd . && /bin/sh ./config.status m4rie/config.h
config.status: creating m4rie/config.h
config.status: m4rie/config.h is unchanged
Making check in tests
make -j20 test_trsm test_elimination test_multiplication test_smallops test_ple
make[2]: warning: -jN forced in submake: disabling jobserver mode.
make[2]: `test_trsm' is up to date.
make[2]: `test_elimination' is up to date.
make[2]: `test_multiplication' is up to date.
make[2]: `test_smallops' is up to date.
make[2]: `test_ple' is up to date.
make -j20 check-TESTS
make[2]: warning: -jN forced in submake: disabling jobserver mode.
make[3]: warning: -jN forced in submake: disabling jobserver mode.
FAIL: test_elimination
FAIL: test_smallops
FAIL: test_ple
FAIL: test_trsm
FAIL: test_multiplication
============================================================================
Testsuite summary for m4rie 20200125
============================================================================
# TOTAL: 5
# PASS: 0
# SKIP: 0
# XFAIL: 0
# FAIL: 5
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
============================================================================
make[3]: *** [test-suite.log] Error 1
make[2]: *** [check-TESTS] Error 2
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1
%
So it seems all the checks fail.
HTH
Comments (30)
-
reporter -
reporter - changed title to Trying to compile on Apple M1
- edited description
-
reporter - edited description
-
repo owner I’ve addressed all the warnings. Could you try to run tests again with the current
master
branch? -
reporter Sorry, no luck.
Should not
configure
be checked and modified? I am not sure my modifications are correct.AFAICT, only 2 files have been modified (
m4ri_functions.h
andstrassen.c
).After modifying
configure
as follows% diff configure_ORIG configure 16674,16675c16674 < '' < as_dir=./ ;; --- > '') as_dir=./ ;; 17573c17572 < ) --- > #) %
Here is the result of
./configure
% ./configure checking build system type... aarch64-apple-darwin21.2.0 checking host system type... aarch64-apple-darwin21.2.0 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make -j20 sets $(MAKE)... yes checking whether make -j20 supports nested variables... yes checking how to print strings... printf checking whether make -j20 supports the include directive... yes (GNU style) checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 786432 checking how to convert aarch64-apple-darwin21.2.0 file names to aarch64-apple-darwin21.2.0 format... func_convert_file_noop checking how to convert aarch64-apple-darwin21.2.0 file names to toolchain format... func_convert_file_noop checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... no checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for dsymutil... dsymutil checking for nmedit... nmedit checking for lipo... lipo checking for otool... otool checking for otool64... no checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking for -force_load linker flag... yes checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... yes checking for gcc option to produce PIC... -fno-common -DPIC checking if gcc PIC flag -fno-common -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin21.2.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for g++... g++ checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /Library/Developer/CommandLineTools/usr/bin/ld checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common -DPIC checking if g++ PIC flag -fno-common -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin21.2.0 dyld checking how to hardcode library paths into programs... immediate checking for gcc... (cached) gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C11 features... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 checking for library containing sqrt... none required checking for M4RI CFLAGS... checking whether make -j20 sets $(MAKE)... (cached) yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating tests/Makefile config.status: creating bench/Makefile config.status: creating m4rie.pc config.status: creating m4rie/config.h config.status: executing depfiles commands config.status: executing libtool commands %
Here is the result of
make
% make Making all in . CC m4rie/gf2e.lo CC m4rie/mzed.lo CC m4rie/newton_john.lo CC m4rie/strassen.lo CC m4rie/echelonform.lo CC m4rie/mzd_poly.lo CC m4rie/mzd_slice.lo CC m4rie/karatsuba.lo CC m4rie/mzd_ptr.lo CC m4rie/blm.lo CC m4rie/trsm.lo CC m4rie/ple.lo CC m4rie/conversion.lo CC m4rie/conversion_slice8.lo CC m4rie/conversion_cling8.lo CC m4rie/conversion_slice16.lo CC m4rie/conversion_cling16.lo In file included from m4rie/conversion.c:20: In file included from ./m4rie/conversion.h:32: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/trsm.c:1: In file included from ./m4rie/trsm.h:30: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/mzd_poly.c:2: In file included from ./m4rie/mzd_slice.h:40: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/mzd_ptr.c:2: ./m4rie/m4ri_functions.h:44:23: warniIn file included from m4rie/strassen.c:26: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/mzd_slice.c:20: In file included from ./m4rie/mzd_slice.h:40: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill;ng : ^ In file included from In file included from In file included from m4rie/newton_john.c:27m4rie/mzed.c:23: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ In file included from m4rie/echelonform.c:20: In file included from ./m4rie/echelonform.h:31: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/ple.c:20: In file included from ./m4rie/permutation.h:31: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ : In file included from ./m4rie/newton_john.h:34: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ m4rie/karatsuba.c:2: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here /usr/local/include/m4ri/mzd.h:185:36: n file included from m4rie/conversion_slice8.c:20: In file included from ./m4rie/conversion.h:32: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ static inline word *mzd_row(mzd_t *M, rci_t row) { ^ 30mnote: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/conversion_slice16.c:20: In file included from ./m4rie/conversion.h:32: In file included from ./m4rie/mzed.h:51: 1./m4rie/m4ri_functions.h:44:23: warningwarning generated. /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ : passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/conversion_cling8.c:20: In file included from ./m4rie/conversion.h:32: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/conversion_cling16.c:20: In file included from ./m4rie/conversion.h:32: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. CCLD libm4rie.la ld: warning: directory not found for option '-L/lib' Making all in tests CC test_trsm.o CC test_elimination.o CC test_multiplication.o CC test_smallops.o CC test_ple.o In file included from test_ple.c:27: In file included from ./testing.h:2: In file included from ../m4rie/m4rie.h:76: In file included from ../m4rie/mzed.h:51: ../m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from test_elimination.c:27: In file included from ./testing.h:2: In file included from ../m4rie/m4rie.h:76: In file included from ../m4rie/mzed.h:51: ../m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from test_multiplication.c:27: In file included from ./testing.h:2: In file included from ../m4rie/m4rie.h:76: In file included from ../m4rie/mzed.h:51: ../m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from test_trsm.c:27: In file included from ./testing.h:2: In file included from ../m4rie/m4rie.h:76: In file included from ../m4rie/mzed.h:51: ../m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from test_smallops.c:27: In file included from ./testing.h:2: In file included from ../m4rie/m4rie.h:76: In file included from ../m4rie/mzed.h:51: ../m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ 1 warning generated. CCLD test_elimination 1 warning generated. libtool: warning: '-no-install' is ignored for aarch64-apple-darwin21.2.0 CCLD test_multiplication 1 warning generated. CCLD test_ple 1 warning generated. CCLD test_smallops libtool: warning: assuming '-no-fast-install' instead libtool: warning: '-no-install' is ignored for aarch64-apple-darwin21.2.0 libtool: warning: '-no-install' is ignored for aarch64-apple-darwin21.2.0 ld: warning: directory not found for option '-L/lib' libtool: warning: '-no-install' is ignored for aarch64-apple-darwin21.2.0 libtool: warning: assuming '-no-fast-install' instead libtool: warning: assuming '-no-fast-install' instead libtool: warning: assuming '-no-fast-install' instead 1 warning generated. CCLD test_trsm ld: warning: directory not found for option '-L/lib' ld: warning: directory not found for option '-L/lib' ld: warning: directory not found for option '-L/lib' libtool: warning: '-no-install' is ignored for aarch64-apple-darwin21.2.0 libtool: warning: assuming '-no-fast-install' instead ld: warning: directory not found for option '-L/lib' %
And the result of
make check
% make check Making check in . (CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh '/Users/admin/M4RIE/Git/m4rie/missing' autoheader) rm -f m4rie/stamp-h1 touch m4rie/config.h.in cd . && /bin/sh ./config.status m4rie/config.h config.status: creating m4rie/config.h config.status: m4rie/config.h is unchanged Making check in tests make -j20 test_trsm test_elimination test_multiplication test_smallops test_ple make[2]: warning: -jN forced in submake: disabling jobserver mode. make[2]: `test_trsm' is up to date. make[2]: `test_elimination' is up to date. make[2]: `test_multiplication' is up to date. make[2]: `test_smallops' is up to date. make[2]: `test_ple' is up to date. make -j20 check-TESTS make[2]: warning: -jN forced in submake: disabling jobserver mode. make[3]: warning: -jN forced in submake: disabling jobserver mode. FAIL: test_elimination FAIL: test_smallops FAIL: test_ple FAIL: test_trsm FAIL: test_multiplication ============================================================================ Testsuite summary for m4rie 20200125 ============================================================================ # TOTAL: 5 # PASS: 0 # SKIP: 0 # XFAIL: 0 # FAIL: 5 # XPASS: 0 # ERROR: 0 ============================================================================ See tests/test-suite.log ============================================================================ make[3]: *** [test-suite.log] Error 1 make[2]: *** [check-TESTS] Error 2 make[1]: *** [check-am] Error 2 make: *** [check-recursive] Error 1 %
-
repo owner Mhhh, I can’t speak to your configure tweaks, it’s all working fine on my systems.
-
reporter Perhaps the reason is this part of
configure
is never reached by your systems.It seems a chunk of code got pasted between the lines indicated.
-
repo owner it helps to actually run
autoreconf -i
I get it now too. -
repo owner fixed for both m4ri and m4rie.
-
reporter Yes,
configure
works now. Thanks. -
reporter - attached test-suite.log
<div class="preview-container wiki-content"><!-- loaded via ajax --></div> <div class="mask"></div> </div>
</div> </form>
-
reporter Here is
test-suite.log
-
repo owner Something is clearly fundamentally wrong but I can’t tell from the log what it is and I don’t have access to an M1.
-
reporter Anything I could do to shed some light on this?
-
repo owner Do you know of ways to emulate M1s? I think I’d need SSH access to a box or so to debug this.
-
reporter Hi Martin.
I sent you an email a week ago. Have you received it?
-
repo owner #include <unistd.h> #include <m4rie/m4rie.h> #include <m4rie/mzed.h> #include <m4rie/conversion.h> #include <m4rie/gf2e.h> static inline word word_cling_64_02(word a) { a = (a & xffff0000 & x__left32) | (a & (xffff0000>>16) & x__left32)>>16; a = (a & xff00ff00) | (a & xff00ff00>> 8)>> 8; a = (a & xf0f0f0f0) | (a & xf0f0f0f0>> 4)>> 4; a = (a & xcccccccc) | (a & xcccccccc>> 2)>> 2; a = (a & xaaaaaaaa) | (a & xaaaaaaaa>> 1)>> 1; return a; } int main(int argc, char *argv[]) { gf2e *ff = gf2e_init(irreducible_polynomials[2][1]); size_t m = 1; size_t n = 65; mzed_t *A = mzed_init(ff, m, n); mzed_t *B = mzed_init(ff, m, n); for(size_t i=0; i<m; i++) { for(size_t j=0; j<n; j++) { mzed_write_elem(A,i, j, 1); } } mzed_write_elem(A, 0, 32, 0); mzd_slice_t *a = mzed_slice(NULL, A); printf("in: %llx, out: %llx, exp: %llx\n", (unsigned long long)mzd_row(a->x[0], 0)[0], (unsigned long long)word_cling_64_02(mzd_row(a->x[0], 0)[0]), 0xaaaaaaaaaaaaaaa8ULL); return 0; }
Compiling with
gcc -g -O2 testcling.c -lm4ri -lm4rie -o testcling
produces an error, compiling withgcc -g -O0 testcling.c -lm4ri -lm4rie -o testcling
` does not.Fixed and shortened code.
-
reporter Do you mean it compiles but does not give the expected output?
-
repo owner Sorry, I mean the result is correct or incorrect depending on the level of optimisation used.
-
reporter A bug in the compiler then?
-
repo owner Either that or I’m using some undefined behaviour?
-
reporter I think this is a bug with Xcode 13.2.1, because with Xcode 13.3 it seems to compile, see what follows.
I just compiled M4RIE on an Apple Silicon M1 Mac under macOS 12.3 (Monterey) with Xcode 13.3.
make
gives many warnings:% make Making all in . CC m4rie/gf2e.lo CC m4rie/mzed.lo CC m4rie/newton_john.lo CC m4rie/strassen.lo CC m4rie/echelonform.lo CC m4rie/mzd_ptr.lo CC m4rie/mzd_slice.lo CC m4rie/trsm.lo CC m4rie/blm.lo CC m4rie/mzd_poly.lo CC m4rie/karatsuba.lo CC m4rie/ple.lo CC m4rie/conversion.lo CC m4rie/conversion_slice8.lo CC m4rie/conversion_slice16.lo CC m4rie/conversion_cling16.lo CC m4rie/conversion_cling8.lo In file included from m4rie/newton_john.c:27: In file included from ./m4rie/newton_john.h:34: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/mzd_poly.c:2: In file included from ./m4rie/mzd_slice.h:40: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/mzd_ptr.c:2: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from In file included from m4rie/ple.c:20: In file included from ./m4rie/permutation.h:31: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/conversion.c:20: In file included from ./m4rie/conversion.h:32: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] In file included from m4rie/strassen.c:26: In file included from ./m4rie/mzed.h:51: word temp = mzd_row(M, x)[block] << -spill;./m4rie/m4ri_functions.h :44:23: warning: m4rie/echelonform.cpassing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]: 20: In file included from ./m4rie/echelonform.h:31: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/trsm.c:1: In file included from ./m4rie/trsm.h:30In file included from : In file included from ./m4rie/mzed.h:51: m4rie/conversion_cling8.cIn file included from m4rie/karatsuba.c:2: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185::3620:: In file included from ./m4rie/conversion.h:note: ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ 32: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here ^/usr/local/include/m4ri/mzd.h :185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ static inline word *mzd_row(mzd_t *M, rci_t row) { ^ 1 warning generated. In file included from m4rie/conversion_cling16.c:20: In file included from ./m4rie/conversion.h:32: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/mzed.c:23: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/mzd_slice.c:20: In file included from ./m4rie/mzd_slice.h:40: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/conversion_slice16.c:20: In file included from ./m4rie/conversion.h:32: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from m4rie/conversion_slice8.c:20: In file included from ./m4rie/conversion.h:32: In file included from ./m4rie/mzed.h:51: ./m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. 1 warning generated. CCLD libm4rie.la ld: warning: directory not found for option '-L/lib' Making all in tests CC test_trsm.o CC test_elimination.o CC test_multiplication.o CC test_smallops.o CC test_ple.o In file included from test_trsm.c:27: In file included from ./testing.h:2: In file included from ../m4rie/m4rie.h:76: In file included from ../m4rie/mzed.h:51: ../m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from test_elimination.c:27: In file included from ./testing.h:2: In file included from ../m4rie/m4rie.h:76: In file included from ../m4rie/mzed.h:51: ../m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from test_multiplication.c:27: In file included from ./testing.h:2: In file included from ../m4rie/m4rie.h:76: In file included from ../m4rie/mzed.h:51: ../m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here In file included from test_smallops.c:27: In file included from ./testing.h:2: In file included from ../m4rie/m4rie.h:76: In file included from ../m4rie/mzed.h:51: static inline word *mzd_row(mzd_t *M, rci_t row) { ../m4rie/m4ri_functions.h: ^44 :23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ In file included from test_ple.c:27: In file included from ./testing.h:2: In file included from ../m4rie/m4rie.h:76: In file included from ../m4rie/mzed.h:51: ../m4rie/m4ri_functions.h:44:23: warning: passing 'const mzd_t *' (aka 'const struct mzd_t *') to parameter of type 'mzd_t *' (aka 'struct mzd_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] word temp = mzd_row(M, x)[block] << -spill; ^ /usr/local/include/m4ri/mzd.h:185:36: note: passing argument to parameter 'M' here static inline word *mzd_row(mzd_t *M, rci_t row) { ^ 1 warning generated. CCLD test_elimination 1 warning generated. 1 warning generated. libtool: warning: '-no-install' is ignored for aarch64-apple-darwin21.4.0 CCLD test_multiplication 1 warning generated. CCLD test_ple CCLD test_smallops libtool: warning: assuming '-no-fast-install' instead libtool: warning: '-no-install' is ignored for aarch64-apple-darwin21.4.0 libtool: warning: '-no-install' is ignored for aarch64-apple-darwin21.4.0 libtool: warning: '-no-install' is ignored for aarch64-apple-darwin21.4.0 ld: warning: directory not found for option '-L/lib' libtool: warning: assuming '-no-fast-install' instead libtool: warning: assuming '-no-fast-install' instead libtool: warning: assuming '-no-fast-install' instead 1 warning generated. CCLD test_trsm ld: warning: directory not found for option '-L/lib' ld: warning: directory not found for option '-L/lib' ld: warning: directory not found for option '-L/lib' libtool: warning: '-no-install' is ignored for aarch64-apple-darwin21.4.0 libtool: warning: assuming '-no-fast-install' instead ld: warning: directory not found for option '-L/lib' %
make check
succeeds:% make check Making check in . (CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh '/Users/sagemath/M4RI/Git/m4rie/missing' autoheader) rm -f m4rie/stamp-h1 touch m4rie/config.h.in cd . && /bin/sh ./config.status m4rie/config.h config.status: creating m4rie/config.h config.status: m4rie/config.h is unchanged Making check in tests make -j20 test_trsm test_elimination test_multiplication test_smallops test_ple make[2]: warning: -jN forced in submake: disabling jobserver mode. make[2]: `test_trsm' is up to date. make[2]: `test_elimination' is up to date. make[2]: `test_multiplication' is up to date. make[2]: `test_smallops' is up to date. make[2]: `test_ple' is up to date. make -j20 check-TESTS make[2]: warning: -jN forced in submake: disabling jobserver mode. make[3]: warning: -jN forced in submake: disabling jobserver mode. PASS: test_elimination PASS: test_smallops PASS: test_ple PASS: test_trsm PASS: test_multiplication ============================================================================ Testsuite summary for m4rie 20200125 ============================================================================ # TOTAL: 5 # PASS: 5 # SKIP: 0 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 ============================================================================ %
HTH
-
reporter Also SageMath on an Apple Silicon M1 Mac under macOS 12.3 (Monterey) with Xcode 13.3 compiles and does not give anymore an error when testing M4RIE (see https://trac.sagemath.org/ticket/33212).
-
reporter The bad news is that Xcode 13.3 is not available for macOS 11.6.5 (Monterey), the last available version being Xcode 13.2.1.
-
repo owner Thanks a bunch. I guess this can be closed then. Warnings can be addressed some other time, I’d say.
-
reporter Could you modify the code so as not to apply optimization -O2 for Xcode 13.2.1? I could then test it.
-
repo owner My initial reaction would be that this seems like the sort of thing that distributions should do, e.g. Sage (?) But in any case, do you know of a good way of checking for the Xcode version in autoconf scripts?
-
reporter I found how to check for the Xcode version, but:
On an Apple Silicon M1 Mac under macOS 11.6.5 (Big Sur) with Xcode 13.2.1, modifying the source code by replacing
-O2
with-O1
everywhere,make check
still fails all 5 tests.Replacing with
-O0
gives the same. -
repo owner Ah, thanks for checking. So I guess Xcode 13.2.1 is just buggy and we have to accept that?
-
Homebrew includes its own llvm/clang++ (
`brew install llvm
`), it’s worth checking if it works here. - Log in to comment