mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > CADO-NFS

Reply
 
Thread Tools
Old 2021-05-26, 09:05   #1
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

16F916 Posts
Default Compilation issues

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
Does anyone have any ideas? The complete source of gf2x/already_tuned/x86_64_pclmul/gf2x_mul1.h is ../../lowlevel/mul1cl.c which seems a little odd.
I am compiling under WSL2, Ubuntu 20.04
henryzz is offline   Reply With Quote
Old 2021-05-26, 12:00   #2
charybdis
 
charybdis's Avatar
 
Apr 2020

5×73 Posts
Default

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.
charybdis is offline   Reply With Quote
Old 2021-05-26, 20:22   #3
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

5,881 Posts
Default

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
I have tried copying ccwrap.pl.in to various places with no luck.
henryzz is offline   Reply With Quote
Old 2021-05-26, 22:53   #4
charybdis
 
charybdis's Avatar
 
Apr 2020

5·73 Posts
Default

I think this one is another broken symlink: config/cxxwrap.pl.in is supposed to link to config/ccwrap.pl.in.
charybdis is offline   Reply With Quote
Old 2021-05-27, 08:40   #5
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

5,881 Posts
Default

Quote:
Originally Posted by charybdis View Post
I think this one is another broken symlink: config/cxxwrap.pl.in is supposed to link to config/ccwrap.pl.in.
I am not sure how I missed that ccwrap.pl.in was a broken symlink. Thanks for your help it appears that is the last one.
henryzz is offline   Reply With Quote
Reply

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

All times are UTC. The time now is 18:12.


Tue Jul 27 18:12:48 UTC 2021 up 4 days, 12:41, 0 users, load averages: 2.42, 2.18, 2.06

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.