[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-glpk] [Fwd: Problems with Installing glpk on my mac]
From: |
Andrew Makhorin |
Subject: |
[Bug-glpk] [Fwd: Problems with Installing glpk on my mac] |
Date: |
Thu, 01 Oct 2015 17:42:51 +0300 |
-------- Forwarded Message --------
From: Jay Solomon Lecavalier <address@hidden>
Reply-to: address@hidden
To: address@hidden
Subject: Problems with Installing glpk on my mac
Date: Wed, 30 Sep 2015 14:02:10 -0600
Hello,
I'm having some issues installing glpk on my mac (running OS X 10.10.5)
Here's the result of ./configure --host x86_64:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for x86_64-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... unsupported
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-apple-darwin14.5.0
checking host system type... x86_64-pc-none
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by
gcc...
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld)
is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... no
checking for x86_64-dumpbin... no
checking for x86_64-link... no
checking for dumpbin... no
checking for link... link -dump
configure: WARNING: using cross tools not prefixed with host triplet
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-apple-darwin14.5.0 file names to
x86_64-pc-none format... func_convert_file_noop
checking how to convert x86_64-apple-darwin14.5.0 file names to
toolchain format... func_convert_file_noop
checking
for
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
option to reload object files... -r
checking for x86_64-objdump... no
checking for objdump... no
checking how to recognize dependent libraries... unknown
checking for x86_64-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-ar... no
checking for ar... ar
checking for archiver @FILE support... no
checking for x86_64-strip... strip
checking for x86_64-ranlib... no
checking for ranlib... ranlib
checking command to parse nm output from gcc object... ok
checking for sysroot... no
checking for x86_64-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking for dlfcn.h... no
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld)
supports shared libraries... no
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for exp in -lm... yes
checking sys/time.h usability... no
checking sys/time.h presence... yes
configure: WARNING: sys/time.h: present but cannot be compiled
configure: WARNING: sys/time.h: check for missing prerequisite
headers?
configure: WARNING: sys/time.h: see the Autoconf documentation
configure: WARNING: sys/time.h: section "Present But Cannot Be
Compiled"
configure: WARNING: sys/time.h: proceeding with the compiler's result
configure: WARNING: ## ------------------------------- ##
configure: WARNING: ## Report this to address@hidden ##
configure: WARNING: ## ------------------------------- ##
checking for sys/time.h... no
checking for gettimeofday... yes
checking whether to use GNU MP bignum library... no
checking whether to enable shared library support... no
checking whether to enable MathProg ODBC support... no
checking whether to enable MathProg MySQL support... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating examples/Makefile
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
The configure finishes just fine, but I got this strange warning about
not being able to find sys/time.h. However, I certainly have sys/time.h
in a standard location in my filesystem.
Here's the result of running 'make' after the configure completes:
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in src
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.. -I. -I./amd -I./bflib -I./cglib -I./colamd -I./env -I./minisat
-I./misc -I./proxy -I./zlib -g -O2 -MT libglpk_la-avl.lo -MD -MP
-MF .deps/libglpk_la-avl.Tpo -c -o libglpk_la-avl.lo `test -f 'avl.c' ||
echo './'`avl.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I./amd -I./bflib
-I./cglib -I./colamd -I./env -I./minisat -I./misc -I./proxy -I./zlib -g
-O2 -MT libglpk_la-avl.lo -MD -MP -MF .deps/libglpk_la-avl.Tpo -c avl.c
-o libglpk_la-avl.o
In file included from avl.c:26:
In file included from ./misc/dmp.h:27:
In file included from ./env/stdc.h:27:
In file included from /usr/local/include/ctype.h:32:
In file included from /usr/local/include/tr1/cctype:37:
/usr/local/include/bits/c++config.h:153:1: error: unknown type name
'namespace'
_GLIBCXX_BEGIN_NAMESPACE(std)
^
/usr/local/include/bits/c++config.h:80:38: note: expanded from macro
'_GLIBCXX_BEGIN_NAMESPACE'
# define _GLIBCXX_BEGIN_NAMESPACE(X) namespace X
_GLIBCXX_VISIBILITY_DEFAULT {
^
/usr/local/include/bits/c++config.h:153:1: error: expected ';' after top
level
declarator
/usr/local/include/bits/c++config.h:80:78: note: expanded from macro
'_GLIBCXX_BEGIN_NAMESPACE'
# define _GLIBCXX_BEGIN_NAMESPACE(X) namespace X
_GLIBCXX_VISIBILITY_DEFAULT {
^
In file included from avl.c:26:
In file included from ./misc/dmp.h:27:
In file included from ./env/stdc.h:31:
In file included from /usr/local/include/math.h:32:
In file included from /usr/local/include/tr1/cmath:38:
In file included from /usr/local/include/cmath:51:
/usr/local/include/bits/cpp_type_traits.h:74:1: error: unknown type name
'namespace'
_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
^
/usr/local/include/bits/c++config.h:80:38: note: expanded from macro
'_GLIBCXX_BEGIN_NAMESPACE'
# define _GLIBCXX_BEGIN_NAMESPACE(X) namespace X
_GLIBCXX_VISIBILITY_DEFAULT {
^
In file included from avl.c:26:
In file included from ./misc/dmp.h:27:
In file included from ./env/stdc.h:31:
In file included from /usr/local/include/math.h:32:
In file included from /usr/local/include/tr1/cmath:38:
In file included from /usr/local/include/cmath:51:
/usr/local/include/bits/cpp_type_traits.h:74:1: error: expected ';'
after top
level declarator
/usr/local/include/bits/c++config.h:80:78: note: expanded from macro
'_GLIBCXX_BEGIN_NAMESPACE'
# define _GLIBCXX_BEGIN_NAMESPACE(X) namespace X
_GLIBCXX_VISIBILITY_DEFAULT {
^
In file included from avl.c:26:
In file included from ./misc/dmp.h:27:
In file included from ./env/stdc.h:31:
In file included from /usr/local/include/math.h:32:
In file included from /usr/local/include/tr1/cmath:38:
In file included from /usr/local/include/cmath:52:
In file included from /usr/local/include/ext/type_traits.h:40:
/usr/local/include/cstddef:53:1: error: unknown type name 'namespace'
_GLIBCXX_BEGIN_NAMESPACE(std)
^
/usr/local/include/bits/c++config.h:80:38: note: expanded from macro
'_GLIBCXX_BEGIN_NAMESPACE'
# define _GLIBCXX_BEGIN_NAMESPACE(X) namespace X
_GLIBCXX_VISIBILITY_DEFAULT {
^
In file included from avl.c:26:
In file included from ./misc/dmp.h:27:
In file included from ./env/stdc.h:31:
In file included from /usr/local/include/math.h:32:
In file included from /usr/local/include/tr1/cmath:38:
In file included from /usr/local/include/cmath:52:
In file included from /usr/local/include/ext/type_traits.h:40:
/usr/local/include/cstddef:53:1: error: expected ';' after top level
declarator
/usr/local/include/bits/c++config.h:80:78: note: expanded from macro
'_GLIBCXX_BEGIN_NAMESPACE'
# define _GLIBCXX_BEGIN_NAMESPACE(X) namespace X
_GLIBCXX_VISIBILITY_DEFAULT {
^
In file included from avl.c:26:
In file included from ./misc/dmp.h:27:
In file included from ./env/stdc.h:31:
/usr/local/include/math.h:37:1: error: unknown type name 'using'
using std::tr1::acosh;
^
/usr/local/include/math.h:37:10: error: expected ';' after top level
declarator
using std::tr1::acosh;
^
/usr/local/include/math.h:37:11: error: expected identifier or '('
using std::tr1::acosh;
^
/usr/local/include/math.h:38:1: error: unknown type name 'using'
using std::tr1::asin;
^
/usr/local/include/math.h:38:10: error: expected ';' after top level
declarator
using std::tr1::asin;
^
/usr/local/include/math.h:38:11: error: expected identifier or '('
using std::tr1::asin;
^
/usr/local/include/math.h:39:1: error: unknown type name 'using'
using std::tr1::asinh;
^
/usr/local/include/math.h:39:10: error: expected ';' after top level
declarator
using std::tr1::asinh;
^
/usr/local/include/math.h:39:11: error: expected identifier or '('
using std::tr1::asinh;
^
/usr/local/include/math.h:40:1: error: unknown type name 'using'
using std::tr1::atan;
^
/usr/local/include/math.h:40:10: error: expected ';' after top level
declarator
using std::tr1::atan;
^
/usr/local/include/math.h:40:11: error: expected identifier or '('
using std::tr1::atan;
^
/usr/local/include/math.h:41:1: error: unknown type name 'using'
using std::tr1::atan2;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [libglpk_la-avl.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I think the error that says unknown type name 'namespace' and unknown
type name 'using' suggests that the makefile is trying to use my C
compiler instead of my C++ compiler. What can I do to fix this?
Best,
Jay LeCavalier
- [Bug-glpk] [Fwd: Problems with Installing glpk on my mac],
Andrew Makhorin <=