[Scip] SCIP 3.1.21 build error on win 7

usa usa usact2012 at gmail.com
Tue May 26 19:19:58 CEST 2015


Hi,
Soukaina, thanks for your notes. And, Ambros, thanks for your advice.
I ran “make  READLINE=false  GMP=false  ZLIB=false”  and got

                                 "build complete".

It should work now.

Then, I ran
                                 "make test"

I do not find errors.

But, I got some other issues:

1.

*Although I can build SCIP in cygwin32 now, there are some warnings: *


sct/rational.h:120:34 wwarning explicit conversion operatiors only
available with -std=c++11 or -std=gnu++11

            explict operator double() const;


I still got the warning even though I have added


                        FLAGS                       +=
-I$(LIBDIR)/cpxinc
   -std=gnu++11


in the makefile at /scipoptsuite-3.1.1/scip-3.1.1


*2.*

Also, I have disabled GMP, ZLIB and READLINE. Will these affect the
solution qualities or the convenience of using SCIP libraries?


*3. *


When I ran “make READLINE=false  GMP=false  ZLIB=false” in


                              /scipoptsuite-3.1.1/scip-3.1.1  (not top
level folder)


*I got error: *


$ make GMP=false ZLIB=false READLINE=false

-> compiling obj/O.cygwin.x86.gnu.opt/lib/scip/cons_countsols.o

cc1: warning: lib/spxinc: not a directory
-> compiling obj/O.cygwin.x86.gnu.opt/lib/scip/reader_zpl.o

cc1: warning: lib/spxinc: not a directory

-> compiling obj/O.cygwin.x86.gnu.opt/lib/scip/dialog.o

cc1: warning: lib/spxinc: not a directory

src/scip/dialog.c:29:1: warning: C++ style comments are not allowed in ISO
C90

 //#include <readline/readline.h>

 ^

src/scip/dialog.c:29:1: warning: (this will be reported only once per input
file)

-> compiling obj/O.cygwin.x86.gnu.opt/lib/scip/fileio.o

cc1: warning: lib/spxinc: not a directory

-> compiling obj/O.cygwin.x86.gnu.opt/lib/scip/misc.o

cc1: warning: lib/spxinc: not a directory

-> compiling obj/O.cygwin.x86.gnu.opt/lib/scip/scip.o

cc1: warning: lib/spxinc: not a directory

src/scip/scip.c: In function ‘SCIPparseVarsPolynomial’:

src/scip/scip.c:14805:10: warning: array subscript has type ‘char’
[-Wchar-subscripts]

          if( *str == '-' || *str == '+' || isdigit(*str) )

          ^

src/scip/scip.c:14825:10: warning: array subscript has type ‘char’
[-Wchar-subscripts]

          if( *str == '-' || *str == '+' || isdigit(*str) )

          ^

src/scip/scip.c:14839:10: warning: array subscript has type ‘char’
[-Wchar-subscripts]

          if( *str == '+' && !isdigit(str[1]) )

          ^

src/scip/scip.c:14845:10: warning: array subscript has type ‘char’
[-Wchar-subscripts]

          else if( *str == '-' && !isdigit(str[1]) )

          ^

-> compiling obj/O.cygwin.x86.gnu.opt/lib/xml/xmlparse.o

cc1: warning: lib/spxinc: not a directory

-> generating library lib/libscip-3.1.1.cygwin.x86.gnu.opt.a

-> generating library lib/libnlpi.cppad-3.1.1.cygwin.x86.gnu.opt.a

*ar: unable to rename 'lib/libnlpi.cppad-3.1.1.cygwin.x86.gnu.opt.a';
reason: Invalid cross-device link*

Makefile:924: recipe for target
'lib/libnlpi.cppad-3.1.1.cygwin.x86.gnu.opt.a' failed

make[1]: *** [lib/libnlpi.cppad-3.1.1.cygwin.x86.gnu.opt.a] Error 1

Makefile:576: recipe for target 'libs' failed

make: *** [libs] Error 2


*I need to call SCIP libs from C# in Visual Studio 2013, *so I would like
to build and run the example codes in


                scipoptsuite-3.1.1/scip-3.1.1/examples


So that I can figure out how to call the SCIP lib, read model from mps,
solve models and collect results.



How can I build examples and docs in the subfolder of /scip-3.1.1 ? Or, If
I built successfully in the top folder of “scipoptsuite-3.1.1/”, I am not
allowed build in the subfolder ?


Sorry for the long questions. I am new to SCIP.


Any help would be appreciated.


Thanks !


On Tue, May 26, 2015 at 11:34 AM, Ambros Gleixner <gleixner at zib.de> wrote:

> Hi,
>
> the content of your make.lastsettings looks strange.  Try to delete the
> file (in the "obj" subfolders) manually.  If that does not help, try
> deleting the line
>
> -include $(LASTSETTINGS)
>
> in the Makefile.
>
> Ambros
>
>
> Am 24.05.2015 um 23:55 schrieb usa usa:
> > Hi,
> >
> > I am trying to recompile the SCIP.
> >
> > I want to clean it before building it.
> >
> > But, when I ran :
> >
> >      make clean
> >
> > in top folder of SCIP\scipoptsuite-3.1.1
> >
> > I got error:
> >
> >       > /cygdrive/e/SCIP/scipoptsuite-3.1.1
> >       $ make clean
> >
> >        make[1]: Entering directory
> > '/cygdrive/e/SCIP/scipoptsuite-3.1.1/scip-3.1.1'
> >
> >        obj/O.cygwin.x86_64.gnu.opt/make.lastsettings:1: *** missing
> > separator.  Stop.
> >
> >         make[1]: Leaving directory
> > '/cygdrive/e/SCIP/scipoptsuite-3.1.1/scip-3.1.1'
> >
> >         Makefile:62: recipe for target 'clean' failed
> >
> >         make: *** [clean] Error 2
> >
> > It seems that clean command missed a tab. But, I cannot find where the
> > tab is missing.
> >
> > in the Makeifle of SCIP\scipoptsuite-3.1.1, it has:
> >
> >      clean:
> >             @$(MAKE) -C $(SCIPDIR) clean   // 2 tabs here in front of
> > the command
> >             @$(MAKE) -C $(SOPLEXDIR) clean OPT=$(LPSOPT)  // 2 tabs here
> > in front of the command
> >
> >
> > In Makefile of SCIP\scipoptsuite-3.1.1\scip-3.1.1, I have :
> >
> >     clean:          cleanlib cleanbin | $(LIBOBJSUBDIRS) $(LIBOBJDIR)
> > $(BINOBJDIR) $(OBJDIR)
> >
> >
> > I changed it to
> >
> >     clean:
> >         cleanlib cleanbin | $(LIBOBJSUBDIRS) $(LIBOBJDIR) $(BINOBJDIR)
> > $(OBJDIR)
> >
> > But, same error.
> >
> > Any help would be appreciated,
> >
> >
> > On Thu, May 21, 2015 at 1:10 PM, Ambros Gleixner <gleixner at zib.de
> > <mailto:gleixner at zib.de>> wrote:
> >
> >     Hi,
> >
> >     Do you need GMP for using Zimpl or for solving LPs exactly?  If not,
> >     try the make option GMP=false in SoPlex and SCIP.
> >
> >     Ambros
> >
> >
> >
> >     Am 21.05.2015 um 19:06 schrieb usa usa:
> >
> >         Hi,
> >
> >         I got a compile error:
> >
> >         ----------------------------------------------------
> >         -> generating library lib/libsoplex-2.0.1.cygwin.x86_64.gnu.opt.a
> >
> >         make[3]: Leaving directory
> >         '/cygdrive/e/SCIP/scipoptsuite-3.1.1/soplex-2.0.1'
> >         make[3]: Entering directory
> >         '/cygdrive/e/SCIP/scipoptsuite-3.1.1/soplex-2.0.1'
> >         -> compiling obj/O.cygwin.x86_64.gnu.opt/bin/soplexmain.o
> >
> >         In file included from src/basevectors.h:24:0,
> >                           from src/soplex.h:28,
> >                           from src/soplexmain.cpp:29
> >         :
> >         src/rational.h:120:34: warning: explicit conversion operators
> only
> >         available with -std=c++11 or -std=gnu++11
> >                 explicit operator double() const;
> >                                            ^
> >         src/rational.h:123:39: warning: explicit conversion operators
> only
> >         available with -std=c++11 or -std=gnu++11
> >                 explicit operator long double() const;
> >                                                 ^
> >         -> linking bin/soplex-2.0.1.cygwin.x86_64.gnu.opt
> >
>  /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld:
> >         skipping incompatible /cygdrive/e/GMP/install/lib/libgmp.a when
> >         searching for -lgmp
> >
> >
>  /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld:
> >         skipping incompatible /cygdrive/e/GMP/install/lib/libgmp.a when
> >         searching for -lgmp
> >
> >
>  /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld:
> >         skipping incompatible /cygdrive/e/GMP/install/lib/libgmp.a when
> >         searching for -lgmp
> >
> >
>  /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld:
> >         cannot find -lgmp
> >         collect2: error: ld returned 1 exit status
> >
> >         --------------------------------------------------
> >
> >         the gmp version is 6.0.0, I got it from
> >
> >         https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2
> >
> >         on
> >
> >         https://gmplib.org/
> >
> >
> >         Any help would be appreciated.
> >
> >         thanks
> >
> >
> >
> >         On Thu, May 21, 2015 at 11:14 AM, Matthias Miltenberger
> >         <miltenberger at zib.de <mailto:miltenberger at zib.de>
> >         <mailto:miltenberger at zib.de <mailto:miltenberger at zib.de>>>
> wrote:
> >
> >             You have been asking this question before:
> >             http://listserv.zib.de/pipermail/scip/2015-April/002391.html
> >
> >             Was the suggested solution not working?
> >
> >             all the best
> >             Matthias
> >
> >
> >             On 21.05.2015 17 <tel:21.05.2015%2017>:03, usa usa wrote:
> >
> >                 Hi,
> >
> >                 I have downloaded SCIP source code from
> >
> >
> http://scip.zib.de/download.php?fname=scipoptsuite-3.1.1.tgz
> >
> >                 I followed the instructions in INSTALL file.
> >
> >                 But, when I ran
> >
> >                    make
> >
> >                 in Cygwin 64-bits on win7,
> >
> >                 I got error:
> >
> >                     $ make
> >
> >                 make[1]: Entering directory
> >             '/cygdrive/e/SCIP/scipoptsuite-3.1.1'
> >                 ** Creating directory
> >                 "/cygdrive/e//SCIP/scipoptsuite-3.1.1/scip-3.1.1/lib".
> >                 ** Creating directory
> >
> >
>  "/cygdrive/e/SCIP/scipoptsuite-3.1.1/scip-3.1.1/lib/zimplinc".
> >
> >                 ** Building SoPlex library
> >
> >
>  "/cygdrive/e//SCIP/scipoptsuite-3.1.1/soplex-2.0.1/lib/libsoplex.cygwin.x86_64.gnu.opt.a".
> >
> >                 make[2]: Entering directory
> >                 '/cygdrive/e//SCIP/scipoptsuite-3.1.1/soplex-2.0.1'
> >                 Makefile:266: make/make.cygwin.x86_64.gnu.opt: No such
> >             file or
> >                 directory
> >
> >                 make[2]: *** No rule to make target
> >                 'make/make.cygwin.x86_64.gnu.opt'.  Stop.
> >
> >                 make[2]: Leaving directory
> >                 '/cygdrive/e//SCIP/scipoptsuite-3.1.1/soplex-2.0.1'
> >
> >                 Makefile.doit:137: recipe for target
> >
> >
>  '/cygdrive/e//SCIP/scipoptsuite-3.1.1/soplex-2.0.1/lib/libsoplex.cygwin.x86_64.gnu.opt.a'
> >                 failed
> >
> >                 make[1]: ***
> >
> >
>  [/cygdrive/e/SCIP/scipoptsuite-3.1.1/soplex-2.0.1/lib/libsoplex.cygwin.x86_64.gnu.opt.a]
> >                 Error 2
> >
> >                 make[1]: Leaving directory
> >             '/cygdrive/e//SCIP/scipoptsuite-3.1.1'
> >
> >                 Makefile:85: recipe for target 'scipbinary' failed
> >
> >                 make: *** [scipbinary] Error 2
> >
> >                 How to build SCIP on win 7 ?
> >
> >                 Any help would be appreciated.
> >
> >                 Thanks
> >
> >
> >
> >
> >
> >                 _______________________________________________
> >                 Scip mailing list
> >                 Scip at zib.de <mailto:Scip at zib.de>  <mailto:Scip at zib.de
> >             <mailto:Scip at zib.de>>
> >                 http://listserv.zib.de/mailman/listinfo/scip
> >
> >
> >             --
> >             \__________________
> >
> >             Matthias Miltenberger
> >             Zuse Institute Berlin
> >             Takustr. 7, 14195 Berlin
> >             www.zib.de/miltenberger <http://www.zib.de/miltenberger>
> >         <http://www.zib.de/miltenberger>
> >             miltenberger at zib.de <mailto:miltenberger at zib.de>
> >         <mailto:miltenberger at zib.de <mailto:miltenberger at zib.de>>
> >             +49 (30) 841 85-245 <tel:%2B49%20%2830%29%20841%2085-245>
> >         <tel:%2B49%20%2830%29%20841%2085-245>
> >
> >
> >
> >
> >         _______________________________________________
> >         Scip mailing list
> >         Scip at zib.de <mailto:Scip at zib.de>
> >         http://listserv.zib.de/mailman/listinfo/scip
> >
> >
> >     --
> >     ______________________________________________________________
> >     Ambros M. Gleixner
> >     Zuse Institute Berlin - TU Berlin - Berlin Mathematical School
> >     http://www.zib.de/gleixner
> >
> >
>
> --
> ______________________________________________________________
> Ambros M. Gleixner
> Zuse Institute Berlin - TU Berlin - Berlin Mathematical School
> http://www.zib.de/gleixner
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20150526/d3d2fef5/attachment.html>


More information about the Scip mailing list