![]() |
|
|
#1 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
588010 Posts |
I am struggling to compile CADO and am getting the following error:
Code:
4
File /mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/toom-gpl.c is a placeholder, using an LGPL-licensed gf2x
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating version.sh
config.status: creating Makefile
config.status: creating tests/Makefile
config.status: creating lowlevel/Makefile
config.status: creating src/Makefile
config.status: creating fft/Makefile
config.status: creating fft/gf2x-fft.h
config.status: creating gf2x.h.in
config.status: creating gf2x.pc
config.status: creating gf2x/gf2x-config.h
config.status: creating gf2x/gf2x-config-export.h
config.status: creating gf2x.h
config.status: linking /mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/already_tuned/x86_64_pclmul/gf2x-thresholds.h to gf2x/gf2x-thresholds.h
config.status: linking /mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/already_tuned/x86_64_pclmul/gf2x_mul1.h to gf2x/gf2x_mul1.h
config.status: linking /mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/already_tuned/x86_64_pclmul/gf2x_mul2.h to gf2x/gf2x_mul2.h
config.status: linking /mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/already_tuned/x86_64_pclmul/gf2x_mul3.h to gf2x/gf2x_mul3.h
config.status: linking /mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/already_tuned/x86_64_pclmul/gf2x_mul4.h to gf2x/gf2x_mul4.h
config.status: linking /mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/already_tuned/x86_64_pclmul/gf2x_mul5.h to gf2x/gf2x_mul5.h
config.status: linking /mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/already_tuned/x86_64_pclmul/gf2x_mul6.h to gf2x/gf2x_mul6.h
config.status: linking /mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/already_tuned/x86_64_pclmul/gf2x_mul7.h to gf2x/gf2x_mul7.h
config.status: linking /mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/already_tuned/x86_64_pclmul/gf2x_mul8.h to gf2x/gf2x_mul8.h
config.status: linking /mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/already_tuned/x86_64_pclmul/gf2x_mul9.h to gf2x/gf2x_mul9.h
config.status: executing depfiles commands
config.status: executing libtool commands
[ 0%] Building gf2x
Making all in lowlevel
Making all in src
Making all in .
In file included from /mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/gf2x/gf2x-small.h:100,
from /mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/gf2x.c:39:
./gf2x/gf2x_mul1.h:1:1: error: expected identifier or ‘(’ before ‘.’ token
1 | ../../lowlevel/mul1cl.c
| ^
In file included from /mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/gf2x.c:39:
/mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/gf2x/gf2x-small.h:47:1: warning: ‘gf2x_mul1’ used but never defined
47 | gf2x_mul1(unsigned long *c, unsigned long a, unsigned long b)
| ^~~~~~~~~
/mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/gf2x/gf2x-small.h:50:1: warning: ‘gf2x_mul_1_n’ used but never defined
50 | gf2x_mul_1_n(unsigned long *cp, const unsigned long *bp, long sb, unsigned long a)
| ^~~~~~~~~~~~
/mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/gf2x/gf2x-small.h:53:1: warning: ‘gf2x_addmul_1_n’ used but never defined
53 | gf2x_addmul_1_n(unsigned long *dp,
| ^~~~~~~~~~~~~~~
/mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/gf2x/gf2x-small.h:58:1: warning: ‘gf2x_mul2’ used but never defined
58 | gf2x_mul2(unsigned long *c, const unsigned long *a, const unsigned long *b)
| ^~~~~~~~~
/mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/gf2x/gf2x-small.h:61:1: warning: ‘gf2x_mul3’ used but never defined
61 | gf2x_mul3(unsigned long *c, const unsigned long *a, const unsigned long *b)
| ^~~~~~~~~
/mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/gf2x/gf2x-small.h:64:1: warning: ‘gf2x_mul4’ used but never defined
64 | gf2x_mul4(unsigned long *c, const unsigned long *a, const unsigned long *b)
| ^~~~~~~~~
/mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/gf2x/gf2x-small.h:67:1: warning: ‘gf2x_mul5’ used but never defined
67 | gf2x_mul5(unsigned long *c, const unsigned long *a, const unsigned long *b)
| ^~~~~~~~~
/mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/gf2x/gf2x-small.h:70:1: warning: ‘gf2x_mul6’ used but never defined
70 | gf2x_mul6(unsigned long *c, const unsigned long *a, const unsigned long *b)
| ^~~~~~~~~
/mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/gf2x/gf2x-small.h:73:1: warning: ‘gf2x_mul7’ used but never defined
73 | gf2x_mul7(unsigned long *c, const unsigned long *a, const unsigned long *b)
| ^~~~~~~~~
/mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/gf2x/gf2x-small.h:76:1: warning: ‘gf2x_mul8’ used but never defined
76 | gf2x_mul8(unsigned long *c, const unsigned long *a, const unsigned long *b)
| ^~~~~~~~~
/mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/gf2x/gf2x/gf2x-small.h:79:1: warning: ‘gf2x_mul9’ used but never defined
79 | gf2x_mul9(unsigned long *c, const unsigned long *a, const unsigned long *b)
| ^~~~~~~~~
make[5]: *** [Makefile:724: libgf2x_local_a-gf2x.o] Error 1
make[4]: *** [Makefile:910: all-recursive] Error 1
make[3]: *** [Makefile:539: all] Error 2
make[2]: *** [CMakeFiles/gf2x-build.dir/build.make:58: CMakeFiles/gf2x-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:1590: CMakeFiles/gf2x-build.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
make: *** [Makefile:7: all] Error 2
I am compiling under WSL2, Ubuntu 20.04 |
|
|
|
|
|
#2 |
|
Apr 2020
15516 Posts |
gf2x_mul1.h is meant to be a symlink to the file ../../lowlevel/mul1cl.c, but WSL is known to have trouble with symlinks: https://github.com/microsoft/WSL/issues/5118. Try replacing the content of gf2x_mul1.h with that of ../../lowlevel/mul1cl.c, and similarly for each of the other gf2x_mul*.h files as they're symlinks too.
|
|
|
|
|
|
#3 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
133708 Posts |
That moved the compilation further on. The error is now:
Code:
[ 0%] Building gf2x Making all in lowlevel Making all in src Making all in . Making all in fft Making all in tests [ 0%] Built target gf2x-build [ 0%] Generating list of modified files in working tree [ 0%] Built target list_modified_files [ 0%] Building CXX object utils/CMakeFiles/utils.dir/timing.cpp.o /mnt/e/Downloads/cado-nfs-master-210526/cado-nfs-master/build/DESKTOP-BVMNJE2/cxxwrap.pl: 1: ccwrap.pl.in: not found make[2]: *** [utils/CMakeFiles/utils.dir/build.make:76: utils/CMakeFiles/utils.dir/timing.cpp.o] Error 127 make[1]: *** [CMakeFiles/Makefile2:1753: utils/CMakeFiles/utils.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 make: *** [Makefile:7: all] Error 2 |
|
|
|
|
|
#4 |
|
Apr 2020
11×31 Posts |
I think this one is another broken symlink: config/cxxwrap.pl.in is supposed to link to config/ccwrap.pl.in.
|
|
|
|
|
|
#5 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
23·3·5·72 Posts |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| GMP under win64 compilation | paulunderwood | Programming | 1 | 2015-10-30 02:18 |
| CUDA 64-bit compilation | wombatman | Msieve | 1 | 2014-02-08 18:40 |
| MSieve 1.51 (GPU) compilation | wombatman | Msieve | 28 | 2013-05-16 16:29 |
| LLR compilation error | nuggetprime | Software | 1 | 2008-08-29 15:17 |
| Request for compilation | fivemack | Factoring | 12 | 2008-06-13 06:07 |