bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-glpk] compilation error


From: Andrew Makhorin
Subject: Re: [Bug-glpk] compilation error
Date: Thu, 25 Oct 2012 13:21:53 +0400

> macosx 10.7.5;  gcc 4.2; glpk 4.47.
> 
> 
> after an apparently successful ./configure --with-gmp, 'make' fails
> with a bunch of error messages:
> 
> 
> wt118:~/Downloads/glpk-4.47% make
> make  all-recursive
> Making all in src
> /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I..     -g -O2 -MT glpapi07.lo -MD -MP -MF .deps/glpapi07.Tpo -c -o
> glpapi07.lo glpapi07.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT glpapi07.lo
> -MD -MP -MF .deps/glpapi07.Tpo -c glpapi07.c  -fno-common -DPIC
> -o .libs/glpapi07.o
> In file included from glpbfx.h:28,
>                  from glpssx.h:28,
>                  from glpapi07.c:26:
> glpgmp.h:34:17: error: gmp.h: No such file or directory
> In file included from glpssx.h:28,
>                  from glpapi07.c:26:
> glpbfx.h:54: error: expected declaration specifiers or ‘...’ before
> ‘mpq_t’
> glpbfx.h:57: error: expected declaration specifiers or ‘...’ before
> ‘mpq_t’
> glpbfx.h:60: error: expected declaration specifiers or ‘...’ before
> ‘mpq_t’
> In file included from glpapi07.c:26:
> glpssx.h:132: error: expected specifier-qualifier-list before ‘mpq_t’
> glpssx.h:362: error: expected declaration specifiers or ‘...’ before
> ‘mpq_t’
> glpssx.h:371: error: expected declaration specifiers or ‘...’ before
> ‘mpq_t’
> glpapi07.c:80: error: expected ‘)’ before ‘x’
> glpapi07.c: In function ‘load_data’:
> glpapi07.c:133: error: ‘SSX’ has no member named ‘A_ptr’
> glpapi07.c:160: error: ‘SSX’ has no member named ‘lb’
> glpapi07.c:161: error: ‘SSX’ has no member named ‘ub’
> glpapi07.c:165: error: ‘SSX’ has no member named ‘dir’
> glpapi07.c:166: error: ‘SSX’ has no member named ‘dir’
> glpapi07.c:177: error: ‘SSX’ has no member named ‘coef’
> glpapi07.c:184: error: ‘SSX’ has no member named ‘A_ptr’
> glpapi07.c:188: error: ‘SSX’ has no member named ‘A_ind’
> glpapi07.c:189: error: ‘SSX’ has no member named ‘A_val’
> glpapi07.c: In function ‘load_basis’:
> glpapi07.c:203: error: ‘SSX’ has no member named ‘stat’
> glpapi07.c:204: error: ‘SSX’ has no member named ‘Q_row’
> glpapi07.c:205: error: ‘SSX’ has no member named ‘Q_col’
> glpapi07.c: In function ‘glp_exact’:
> glpapi07.c:328: error: ‘SSX’ has no member named ‘it_lim’
> glpapi07.c:329: error: ‘SSX’ has no member named ‘it_cnt’
> glpapi07.c:330: error: ‘SSX’ has no member named ‘tm_lim’
> glpapi07.c:332: error: ‘SSX’ has no member named ‘out_frq’
> glpapi07.c:333: error: ‘SSX’ has no member named ‘tm_beg’
> glpapi07.c:334: error: ‘SSX’ has no member named ‘tm_lag’
> glpapi07.c:343: error: ‘SSX’ has no member named ‘it_cnt’
> glpapi07.c:362: error: ‘SSX’ has no member named ‘q’
> glpapi07.c:362: error: ‘SSX’ has no member named ‘q’
> glpapi07.c:363: error: ‘SSX’ has no member named ‘Q_col’
> glpapi07.c:363: error: ‘SSX’ has no member named ‘q’
> glpapi07.c:399: error: ‘SSX’ has no member named ‘stat’
> glpapi07.c:400: error: ‘SSX’ has no member named ‘Q_row’
> glpapi07.c:403: error: ‘SSX’ has no member named ‘bbar’
> glpapi07.c:407: error: ‘SSX’ has no member named ‘Q_row’
> glpapi07.c:409: error: ‘SSX’ has no member named ‘stat’
> glpapi07.c:416: error: ‘SSX’ has no member named ‘lb’
> glpapi07.c:420: error: ‘SSX’ has no member named ‘ub’
> glpapi07.c:424: error: ‘SSX’ has no member named ‘lb’
> glpapi07.c:429: error: ‘SSX’ has no member named ‘cbar’
> make[2]: *** [glpapi07.lo] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> wt118:~/Downloads/glpk-4.47% gcc --version
> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.
> build 5658) (LLVM build 2336.9.00)
> Copyright (C) 2007 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
> 
> wt118:~/Downloads/glpk-4.47% 
> 
> 
> 
> I would expect a successful ./configure to lead to successful
> compilation, and such does not occur

If you specify the '--with-gmp' option on configuring glpk, you should
install the GNU MP package before compiling glpk--the compilation errors
occur because the 'gmp.h' header cannot be found. 

For more details about configuring and compiling glpk please see file
INSTALL included in the distribution.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]