#13325: eclib does not build on Cygwin
------------------------------------------------------------+---------------
       Reporter:  jpflori                                   |         Owner:  
tbd         
           Type:  defect                                    |        Status:  
needs_review
       Priority:  major                                     |     Milestone:  
sage-5.3    
      Component:  cygwin                                    |    Resolution:    
          
       Keywords:  eclib spkg cygwin                         |   Work issues:    
          
Report Upstream:  Workaround found; Bug reported upstream.  |     Reviewers:    
          
        Authors:  Jean-Pierre Flori                         |     Merged in:    
          
   Dependencies:  #13333                                    |      Stopgaps:    
          
------------------------------------------------------------+---------------

Comment (by jpflori):

 I think I now remember what the problem was:
 * autotools indeed does its magic with $(EXEEXT),
 * but you directly put smattest (and others) in a target, so make tries to
 build it generically and doesn't use the magic smattest$(EXEEXT) target
 and its autotools CFLAGS (and the one you provided to it) so it fails
 * except on Linux (and others) where the autotools magic defines a target
 for smattest and we get lucky...

 Here is an excerpt of what failed on Cygwin:
 {{{
 libtool: link: g++ -I/home/jp/sage-5.2/local/include
 -I/home/jp/sage-5.2/local/include -I/home/jp/sage-5.2/local/include
 -DNTL_ALL -DUSE_PARI_FACTORING -DMETHOD=2 -DNEW_OP_ORDER -g -O3 -o
 .libs/mwrank.exe mwrank.o
 /home/jp/sage-5.2/spkg/build/eclib-20120428.p0/src/libsrc/.libs/libjc.a
 /usr/lib/gcc/i686-pc-cygwin/4.5.3/libstdc++.dll.a -L../libsrc
 -L/home/jp/sage-5.2/local/lib -lntl -lpari
 /home/jp/sage-5.2/local/lib/libgmp.dll.a -L/usr/lib/gcc/i686-pc-
 cygwin/4.5.3 -L/home/jp/sage-5.2/local/lib
 g++ -g -O3     smattest.cc   -o smattest
 smattest.cc:30:25: erreur fatale: eclib/arith.h : No such file or
 directory
 compilation terminée.
 <builtin>: recipe for target `smattest' failed
 }}}
 After adding $(EXEEXT) I got
 {{{
 /bin/sh ../libtool --tag=CXX    --mode=link g++
 -I/home/jp/sage-5.2/local/include  -I/home/jp/sage-5.2/local/include
 -I/home/jp/sage-5.2/local/include -DNTL_ALL -DUSE_PARI_FACTORING
 -DMETHOD=2 -DNEW_OP_ORDER -g -O3  -ljc -L../libsrc
 -L/home/jp/sage-5.2/local/lib -lntl -lgmp -L/home/jp/sage-5.2/local/lib
 -lpari -lgmp   -o mwrank.exe mwrank.o
 libtool: link: g++ -I/home/jp/sage-5.2/local/include
 -I/home/jp/sage-5.2/local/include -I/home/jp/sage-5.2/local/include
 -DNTL_ALL -DUSE_PARI_FACTORING -DMETHOD=2 -DNEW_OP_ORDER -g -O3 -o
 .libs/mwrank.exe mwrank.o
 /home/jp/sage-5.2/spkg/build/eclib-20120428.p0/src/libsrc/.libs/libjc.dll.a
 -L../libsrc -L/home/jp/sage-5.2/local/lib
 /home/jp/sage-5.2/local/lib/libntl.dll.a /usr/lib/gcc/i686-pc-
 cygwin/4.5.3/libstdc++.dll.a -lpari
 /home/jp/sage-5.2/local/lib/libgmp.dll.a -L/home/jp/sage-5.2/local/lib
 -L/usr/lib/gcc/i686-pc-cygwin/4.5.3
 g++ -DPACKAGE_NAME=\"eclib\" -DPACKAGE_TARNAME=\"eclib\"
 -DPACKAGE_VERSION=\"2012-04-25\" -DPACKAGE_STRING=\"eclib\ 2012-04-25\"
 -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"\"
 -DPACKAGE=\"eclib\" -DVERSION=\"2012-04-25\" -DSTDC_HEADERS=1
 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
 -DLT_OBJDIR=\".libs/\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STDLIB_H=1
 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1
 -Drestrict=__restrict -DHAVE_FLOOR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1
 -DHAVE_POW=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -I.   -I../libsrc
 -I/home/jp/sage-5.2/local/include -I/home/jp/sage-5.2/local/include
 -I/home/jp/sage-5.2/local/include  -I/home/jp/sage-5.2/local/include
 -I/home/jp/sage-5.2/local/include -DNTL_ALL -DUSE_PARI_FACTORING
 -DMETHOD=2 -DNEW_OP_ORDER -g -O3  -MT smattest.o -MD -MP -MF
 .deps/smattest.Tpo -c -o smattest.o smattest.cc
 mv -f .deps/smattest.Tpo .deps/smattest.Po
 /bin/sh ../libtool --tag=CXX    --mode=link g++
 -I/home/jp/sage-5.2/local/include  -I/home/jp/sage-5.2/local/include
 -I/home/jp/sage-5.2/local/include -DNTL_ALL -DUSE_PARI_FACTORING
 -DMETHOD=2 -DNEW_OP_ORDER -g -O3  -ljc -L../libsrc
 -L/home/jp/sage-5.2/local/lib -lntl -lgmp -L/home/jp/sage-5.2/local/lib
 -lpari -lgmp   -o smattest.exe smattest.o
 libtool: link: g++ -I/home/jp/sage-5.2/local/include
 -I/home/jp/sage-5.2/local/include -I/home/jp/sage-5.2/local/include
 -DNTL_ALL -DUSE_PARI_FACTORING -DMETHOD=2 -DNEW_OP_ORDER -g -O3 -o
 .libs/smattest.exe smattest.o
 /home/jp/sage-5.2/spkg/build/eclib-20120428.p0/src/libsrc/.libs/libjc.dll.a
 -L../libsrc -L/home/jp/sage-5.2/local/lib
 /home/jp/sage-5.2/local/lib/libntl.dll.a /usr/lib/gcc/i686-pc-
 cygwin/4.5.3/libstdc++.dll.a -lpari
 /home/jp/sage-5.2/local/lib/libgmp.dll.a -L/home/jp/sage-5.2/local/lib
 -L/usr/lib/gcc/i686-pc-cygwin/4.5.3
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13325#comment:32>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to