[Cado-nfs-discuss] Problem compiling with cygwin on windows

Jason Xu jasonx98 at gmail.com
Tue Dec 29 03:00:34 CET 2015


Hello,
I have never used a mailing list before, so I hope this is the right place
to report a problem/bug. I am using cygwin on Windows 8.1. Running make
with cygwin terminal will run, but it repeats the same lines when trying to
make. Curiously, in cado-nfs-2.2.0/build, there are two folders, XPS-8500
(my computer name) and XPS-8500, which I have seen before as an issue with
newlines when working with unix and windows.

The following lines are repeated:

cd /cygdrive/c/cado-nfs-2.2.0/gf2x && C:/cygwin/bin/sh.exe
/cygdrive/c/cado-nfs-2.2.0/gf2x/config/missing automake-1.15 --gnu Makefile
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at
/usr/bin/automake-1.15 line 3936.
running CONFIG_SHELL=/bin/sh /bin/sh
/cygdrive/c/cado-nfs-2.2.0/gf2x/configure --disable-shared
--disable-dependency-tracking --enable-fft-interface CC=/usr/bin/cc
CXX=/usr/bin/c++.exe CFLAGS=-std=c99 -g -W -Wall -O2  -I/usr/local/include
-I/cygdrive/c/cado-nfs-2.2.0 CXXFLAGS=-std=c++11 -g -W -Wall
-Wno-literal-suffix -O2  -I/usr/local/include -I/cygdrive/c/cado-nfs-2.2.0
LDFLAGS=-Wl,-rpath,/usr/local/lib -L/usr/local/lib --disable-sse2
--no-create --no-recursion
checking build system type... pentium3-pc-cygwin
checking host system type... pentium3-pc-cygwin
checking target system type... pentium3-pc-cygwin
checking for gcc... /usr/bin/cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/cc accepts -g... yes
checking for /usr/bin/cc option to accept ISO C89... none needed
checking whether /usr/bin/cc understands -c and -o together... yes
checking how to run the C preprocessor... /usr/bin/cc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of /usr/bin/cc... none
checking whether to enable maintainer-specific portions of Makefiles... no
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by /usr/bin/cc... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
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... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert pentium3-pc-cygwin file names to pentium3-pc-cygwin
format... func_convert_file_noop
checking how to convert pentium3-pc-cygwin file names to toolchain
format... func_convert_file_noop
checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object
files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive
import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries...
func_cygming_dll_for_implib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from /usr/bin/cc object...
ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /usr/bin/cc supports -fno-rtti -fno-exceptions...
/cygdrive/c/cado-nfs-2.2.0/gf2x/configure: line 8406: diff: command not
found
no
checking for /usr/bin/cc option to produce PIC... -DDLL_EXPORT -DPIC
checking if /usr/bin/cc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if /usr/bin/cc static flag -static works... yes
checking if /usr/bin/cc supports -c -o file.o... yes
checking if /usr/bin/cc supports -c -o file.o... (cached) yes
checking whether the /usr/bin/cc linker (/usr/i686-pc-cygwin/bin/ld.exe)
supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
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... no
checking whether to build static libraries... yes
checking for gcc... (cached) /usr/bin/cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether /usr/bin/cc accepts -g... (cached) yes
checking for /usr/bin/cc option to accept ISO C89... (cached) none needed
checking whether /usr/bin/cc understands -c and -o together... (cached) yes
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/c++.exe accepts -g... yes
checking dependency style of /usr/bin/c++.exe... none
checking how to run the C++ preprocessor... /usr/bin/c++.exe -E
checking for ld used by /usr/bin/c++.exe... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking whether the /usr/bin/c++.exe linker
(/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking for /usr/bin/c++.exe option to produce PIC... -DDLL_EXPORT -DPIC
checking if /usr/bin/c++.exe PIC flag -DDLL_EXPORT -DPIC works... yes
checking if /usr/bin/c++.exe static flag -static works... yes
checking if /usr/bin/c++.exe supports -c -o file.o... yes
checking if /usr/bin/c++.exe supports -c -o file.o... (cached) yes
checking whether the /usr/bin/c++.exe linker
(/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking warning verbosity option... -Wall -W for C++ -Wall -W for C
checking for /usr/bin/cc option to accept ISO C99... none needed
checking build system compiler /usr/bin/cc... yes
checking for build system executable suffix... .exe
checking for GMP or MPIR... yes
checking for recent GMP or MPIR... yes
checking size of unsigned long... 4
checking whether /usr/bin/cc can compile and run sse-2 code... explicitly
disabled, no
checking whether /usr/bin/cc can compile and run sse-3 code... skipped, no
checking whether /usr/bin/cc can compile and run ssse3 code... skipped, no
checking whether /usr/bin/cc can compile and run sse-4.1 code... skipped, no
checking whether /usr/bin/cc can compile pclmulqdq and if it is supported
by the hardware... skipped, no
configure: using ABI="default"
configure:       CC="/usr/bin/cc"
configure:       CFLAGS="-std=c99 -g -W -Wall -O2  -I/usr/local/include
-I/cygdrive/c/cado-nfs-2.2.0 -Wall -W"
configure:       CPPFLAGS=""
configure:       hwdir="generic32"
checking the number of bits in an unsigned long... 32
checking whether already_tuned/generic32/ is right assuming 32-bits
unsigned longs... yes
File /cygdrive/c/cado-nfs-2.2.0/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
 C:/cygwin/bin/sh.exe ./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 apps/Makefile
config.status: creating gf2x/gf2x-config.h
config.status: creating gf2x/gf2x-config-export.h
config.status: linking
/cygdrive/c/cado-nfs-2.2.0/gf2x/already_tuned/generic32/gf2x-thresholds.h
to gf2x/gf2x-thresholds.h
config.status: linking
/cygdrive/c/cado-nfs-2.2.0/gf2x/already_tuned/generic32/gf2x_mul1.h to
gf2x/gf2x_mul1.h
config.status: linking
/cygdrive/c/cado-nfs-2.2.0/gf2x/already_tuned/generic/gf2x_mul2.h to
gf2x/gf2x_mul2.h
config.status: linking
/cygdrive/c/cado-nfs-2.2.0/gf2x/already_tuned/generic/gf2x_mul3.h to
gf2x/gf2x_mul3.h
config.status: linking
/cygdrive/c/cado-nfs-2.2.0/gf2x/already_tuned/generic/gf2x_mul4.h to
gf2x/gf2x_mul4.h
config.status: linking
/cygdrive/c/cado-nfs-2.2.0/gf2x/already_tuned/generic/gf2x_mul5.h to
gf2x/gf2x_mul5.h
config.status: linking
/cygdrive/c/cado-nfs-2.2.0/gf2x/already_tuned/generic/gf2x_mul6.h to
gf2x/gf2x_mul6.h
config.status: linking
/cygdrive/c/cado-nfs-2.2.0/gf2x/already_tuned/generic/gf2x_mul7.h to
gf2x/gf2x_mul7.h
config.status: linking
/cygdrive/c/cado-nfs-2.2.0/gf2x/already_tuned/generic/gf2x_mul8.h to
gf2x/gf2x_mul8.h
config.status: linking
/cygdrive/c/cado-nfs-2.2.0/gf2x/already_tuned/generic/gf2x_mul9.h to
gf2x/gf2x_mul9.h
config.status: executing depfiles commands
config.status: executing libtool commands



Here is the output of make cmake:

$ make cmake
CMake Warning at /usr/share/cmake-3.3.2/Modules/Platform/CYGWIN.cmake:15
(message):
  CMake no longer defines WIN32 on Cygwin!

  (1) If you are just trying to build this project, ignore this warning or
  quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
  the CMake cache.  If later configuration or build errors occur then this
  project may have been written under the assumption that Cygwin is WIN32.
  In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.

  (2) If you are developing this project, add the line

    set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is
required

  at the top of your top-level CMakeLists.txt file or set the minimum
  required version of CMake to 2.8.4 or higher.  Then teach your project to
  build on Cygwin without WIN32.
Call Stack (most recent call first):
  /usr/share/cmake-3.3.2/Modules/CMakeSystemSpecificInformation.cmake:36
(include)
  CMakeLists.txt:2 (project)


-- Configuring CADO revision 217d477
-- PREFIX=/cygdrive/c/cado-nfs-2.2.0/installed
-- CFLAGS=-O2
-- CXXFLAGS=-O2
-- Enabling C++11 support
-- GMP_INCDIR=/usr/local/include
-- GMP_LIBDIR=/usr/local/lib
-- bits in unsigned long: 32
-- bits in unsigned long long: 64
-- 32-bit platform, lazily disabling all simd intrinsics
-- Trying to compile gcc-style x86_64 inline assembly
-- Trying to compile gcc-style x86_64 inline assembly -- Failed
-- Trying to compile gas-syntax assembly sources
-- Trying to compile gas-syntax assembly sources -- Failed
-- 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 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 sigaction
-- Looking for sigaction - 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 -- Failed
-- 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 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
-- NUMA_INCDIR=NUMA_INCDIR-NOTFOUND
-- NUMA_LIB=NUMA_LIB-NOTFOUND
-- /usr/bin/python3 --version returned: Python 3.4.3
-- Importing module sqlite3 in Python succeeded.
-- 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 - not found
-- MPI is not enabled
-- Using libs:  (math)  (pthreads)
-- DL mode disabled for linear algebra
-- GF(2) implementations enabled for linear algebra: u64k1, u64k2, u64k3,
u64k4
-- GF(2) SpMV backends for linear algebra: bucket, basic, sliced, threaded
-- Main scripts will go to /cygdrive/c/cado-nfs-2.2.0/installed/bin
-- Libraries and binaries will go to
/cygdrive/c/cado-nfs-2.2.0/installed/lib/cado-nfs-2.2.0
-- Data will go to /cygdrive/c/cado-nfs-2.2.0/installed/share/cado-nfs-2.2.0
-- Configuring done
-- Generating done
-- Build files have been written to:
/cygdrive/c/cado-nfs-2.2.0/build/XPS-8500



I cannot find a local.sh file.

Here is the output of gcc -v:

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.9.3/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with:
/cygdrive/i/szsz/tmpp/gcc/gcc-4.9.3-1.i686/src/gcc-4.9.3/configure
--srcdir=/cygdrive/i/szsz/tmpp/gcc/gcc-4.9.3-1.i686/src/gcc-4.9.3
--prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc
--docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C
--build=i686-pc-cygwin --host=i686-pc-cygwin --target=i686-pc-cygwin
--without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib
--enable-shared --enable-shared-libgcc --enable-static
--enable-version-specific-runtime-libs --enable-bootstrap
--enable-__cxa_atexit --with-dwarf2 --with-arch=i686 --with-tune=generic
--disable-sjlj-exceptions
--enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++
--enable-graphite --enable-threads=posix --enable-libatomic
--enable-libgomp --disable-libitm --enable-libquadmath
--enable-libquadmath-support --enable-libssp --enable-libada
--enable-libjava --enable-libgcj-sublibs --disable-java-awt
--disable-symvers --with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld
--with-gnu-as --with-cloog-include=/usr/include/cloog-isl
--without-libiconv-prefix --without-libintl-prefix --with-system-zlib
--enable-linker-build-id
Thread model: posix
gcc version 4.9.3 (GCC)

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/cado-nfs-discuss/attachments/20151228/0faeea8a/attachment-0001.html>


More information about the Cado-nfs-discuss mailing list