Subject: Discussion related to cado-nfs
List archive
- From: Pierrick Gaudry <pierrick.gaudry@loria.fr>
- To: Jhon Alejandro M <alejandromelo@unicauca.edu.co>
- Cc: cado-nfs@inria.fr
- Subject: Re: [cado-nfs] Linking CXX executable acollect
- Date: Mon, 4 Dec 2023 07:43:32 +0100
- Authentication-results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none
Hello,
The release 2.3.0 is more than 5-year old, now. Portability patches are
not back-ported to it, so this is no surprise that it does not compile on
a recent platform.
I recommend that you use the current git version. Thanks to continuous
integration, the master branch is stable enough.
Regards,
Pierrick
On Sun, Dec 03, 2023 at 05:45:16PM -0500, Jhon Alejandro M wrote:
> Hello, I am trying to install cado 2.3.0 but at 92% of the installation I
> have the following error:
>
> [92%] Linking CXX executable acollect
> /usr/bin/ld:
> libbwc_base.a(bw-common.c.o):/home/debian/Downloads/cado-nfs-2.3.0/linalg/bwc/bw-common.c:21:
> multiple definitions of `bw ';
> CMakeFiles/acollect.dir/acollect.c.o:/home/debian/Descargas/cado-nfs-2.3.0/linalg/bwc/acollect.c:30:
> first defined here
> collect2: error: ld returned 1 exit status
> make[2]: *** [linalg/bwc/CMakeFiles/acollect.dir/build.make:143:
> linalg/bwc/acollect] Error 1
> make[1]: *** [CMakeFiles/Makefile2:4085:
> linalg/bwc/CMakeFiles/acollect.dir/all] Error 2
> make: *** [Makefile:146: all] Error 2
> make: *** [Makefile:7: all] Error 2
>
> *make cmake output:*
> CMake Warning:
> Ignoring empty string ("") provided on the command line.
>
>
> CMake Deprecation Warning at CMakeLists.txt:15 (cmake_minimum_required):
> Compatibility with CMake < 2.8.12 will be removed from a future version
> of
> CMake.
>
> Update the VERSION argument <min> value or use a ...<max> suffix to tell
> CMake that the project does not need compatibility with older versions.
>
>
> -- Configuring CADO revision 2acb184f4
> -- PREFIX=/home/debian/Downloads/cado-nfs-2.3.0/installed (from environment)
> -- CFLAGS=-O2 (from environment)
> -- CXXFLAGS=-O2 (from environment)
> -- MAKE=make (from environment)
> -- C compiler: GNU 12.2.0
> -- C++ compiler: GNU 12.2.0
> --Enabling C++11 support
> -- CFLAGS=-std=c99 -g -W -Wall -O2 (synthetized)
> -- CXXFLAGS=-std=c++11 -g -W -Wall -O2 -Wno-literal-suffix (synthetized)
> -- GMP_INCDIR=/usr/local/include
> -- GMP_LIBDIR=/usr/local/lib
> -- bits in unsigned long: 64
> -- bits in unsigned long long: 64
> -- Testing for gmp_random predictability
> -- Testing for gmp_random predictability -- ok
> -- Testing whether sse-2 code can be used
> -- Testing whether sse-2 code can be used -- Yes
> -- Testing whether sse-3 code can be used
> -- Testing whether sse-3 code can be used -- Yes, with -msse3
> -- Testing whether ssse-3 code can be used
> -- Testing whether ssse-3 code can be used -- Yes, with -mssse3
> -- Testing whether sse-4.1 code can be used
> -- Testing whether sse-4.1 code can be used -- Yes, with -msse4.1
> -- Testing whether avx code can be used
> -- Testing whether avx code can be used -- Yes, with -mavx
> -- Testing whether avx2 code can be used
> -- Testing whether avx2 code can be used -- Yes, with -mavx2
> -- Testing whether pclmul code can be used
> -- Testing whether pclmul code can be used -- Yes, with -mpclmul
> -- Trying to compile gcc-style x86_64 inline assembly
> -- Trying to compile gcc-style x86_64 inline assembly -- Success
> -- Testing known bugs for compiler
> -- Testing known bugs for compiler -- None found
> -- Trying to compile gas-syntax assembly sources
> -- Trying to compile gas-syntax assembly sources -- Success
> -- Checking for alloca.h
> -- Checking for alloca.h -- found in /usr/include
> -- Looking for log2
> -- Looking for log2 - requires m
> -- Looking for exp2
> -- Looking for exp2 - requires m
> -- Looking for cabsl
> -- Looking for cabsl - requires m
> -- Looking for clog
> -- Looking for clog - requires m
> -- Looking for nanosleep
> -- Looking for nanosleep - found
> -- Looking for usleep
> -- Looking for usleep - found
> -- Looking for popen
> -- Looking for popen - found
> -- Looking for pclose
> -- Looking for pclose - found
> -- Looking for getrusage
> -- Looking for getrusage - found
> -- Looking for lrand48
> -- Looking for lrand48 - found
> -- Looking for strdup
> -- Looking for strdup - found
> -- Looking for strndup
> -- Looking for strndup - found
> -- Looking for follow action
> -- Looking for follow action - found
> -- Looking for waitpid
> -- Looking for waitpid - found
> -- Looking for ctime_r
> -- Looking for ctime_r - found
> -- Looking for realpath
> -- Looking for realpath - found
> -- Looking for mmap
> -- Looking for mmap - found
> -- Looking for sysconf
> -- Looking for sysconf - found
> -- Testing whether RUSAGE_THREAD can be used
> -- Trying to compile with RUSAGE_THREAD -- Success
> -- Testing the existence of __sync_fetch functions
> -- Testing the existence of __sync_fetch functions -- Success
> -- Testing the existence of asprintf/vasprintf functions
> -- Testing the existence of asprintf/vasprintf functions -- Success
> -- Checking for MinGW
> -- Checking for MinGW -- no
> -- Testing if rand() gives true alea
> -- Testing if rand() gives true alea -- Probably
> -- Testing if srand() yields a deterministic sequence
> -- Testing if srand() yields a deterministic sequence -- Yes
> -- Testing if an int can be read from and written to an odd address
> -- Testing if an int can be read from and written to an odd address -- Yes
> -- HWLOC_INCDIR=HWLOC_INCDIR-NOTFOUND
> -- HWLOC_LIB=HWLOC_LIB-NOTFOUND
> -- /usr/bin/python3 --version returned: Python 3.11.2
> -- Importing module sqlite3 in Python succeeded.
> --Perl version is 5.36.0
> -- Building with static libraries (ENABLE_SHARED="")
> -- Looking for pthread_create
> -- Looking for pthread_create - found
> -- Looking for pthread_barrier_wait
> -- Looking for pthread_barrier_wait - found
> -- MPI is not enabled
> -- Using libs: (math) (pthreads)
> -- GF(p) implementations enabled for DL linear algebra: p_1, p_2, p_3, p_4,
> p_5, p_6, p_7, p_8, p_9, p_10, p_11, p_12, p_13, p_14, p_15, pz
> -- GF(p) SpMV backends for DL linear algebra: basicp, zone
> -- GF(2) implementations enabled for linear algebra: u64k1, u64k2, u64k3,
> u64k4
> -- GF(2) SpMV backends for linear algebra: bucket, basic, sliced
> -- Main scripts will go to
> /home/debian/Downloads/cado-nfs-2.3.0/installed/bin
> -- Libraries and binaries will go to
> /home/debian/Downloads/cado-nfs-2.3.0/installed/lib/cado-nfs-2.3.0
> -- Data will go to
> /home/debian/Downloads/cado-nfs-2.3.0/installed/share/cado-nfs-2.3.0
> -- Configuring done
> -- Generating done
> -- Build files have been written to:
> /home/debian/Descargas/cado-nfs-2.3.0/build/debian12
>
> *local.sh.macosx.x86_64:*
>
> # Examples
>
> # Darwin <hostname> 12.5.0 Darwin Kernel Version 12.5.0: \
> # Sep 29 13:33:47 PDT 2013; \
> # root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64 i386 \
> # MacBookPro9,2 Darwin
>
>
> # Darwin <hostname> 13.2.0 Darwin Kernel Version 13.2.0: \
> # Thu Apr 17 23:03:13 PDT 2014; \
> # root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64 i386 \
> # MacBookPro9,2 Darwin
>
>
> ############################################################
> # The variables set below are specific to OSX.
> # See local.sh.example for more configuration options,
> # notably CFLAGS and CXXFLAGS
> ############################################################
>
>
> ############################################################
> # cado-nfs (Block Wiedemann code) fails on OSX with
> # shared libraries. Only static library should be built.
>
> DISABLE_SHARED=1
>
>
> ############################################################
> # CC: C Compiler
>
> # CC=gcc
> CC=clang
>
> ############################################################
> # CXX: C++ Compiler (cado-nfs contains a few C++ programs)
>
> # CXX=g++
> CXX=clang++
>
> *gcc -v:*
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/12/lto-wrapper
> OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
> OFFLOAD_TARGET_DEFAULT=1
> Target: x86_64-linux-gnu
> Configured with: ../src/configure -v --with-pkgversion='Debian 12.2.0-14'
> --with-bugurl=file:///usr/share/doc/gcc-12/README.Bugs
> --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr
> --with-gcc-major-version-only --program-suffix=-12
> --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
> --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
> --libdir=/usr/lib --enable-nls --enable-clocale=gnu
> --enable-libstdcxx-debug --enable-libstdcxx-time=yes
> --with-default-libstdcxx-abi=new --enable-gnu-unique-object
> --disable-vtable-verify --enable-plugin --enable-default-pie
> --with-system-zlib --enable-libphobos-checking=release
> --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch
> --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64
> --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
> --enable-offload-targets=nvptx-none=/build/gcc-12-bTRWOB/gcc-12-12.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-12-bTRWOB/gcc-12-12.2.0/debian/tmp-gcn/usr
> --enable-offload-defaulted --without-cuda-driver --enable-checking=release
> --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
> Thread model: posix
> Supported LTO compression algorithms: zlib zstd
> gcc version 12.2.0 (Debian 12.2.0-14)
>
> I appreciate any help.
>
> --
>
>
> *Por una Universidad de Excelencia y Solidaria*
- [cado-nfs] Linking CXX executable acollect, Jhon Alejandro M, 12/03/2023
- Re: [cado-nfs] Linking CXX executable acollect, Pierrick Gaudry, 12/04/2023
Archive powered by MHonArc 2.6.19+.