Skip to content

Instantly share code, notes, and snippets.

@ZaphodB
Created May 2, 2013 11:11
Show Gist options
  • Save ZaphodB/5501545 to your computer and use it in GitHub Desktop.
Save ZaphodB/5501545 to your computer and use it in GitHub Desktop.
homebrew ppl 1.0 compile error
HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install ppl
...
/bin/sh ../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -g -O3 -fomit-frame-pointer -W -Wall -c -o assert.lo assert.cc
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -g -O3 -fomit-frame-pointer -W -Wall -c assert.cc -fno-common -DPIC -o .libs/assert.o
brew: superenv removed: -I../src -g -O3 -W -Wall
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -g -O3 -fomit-frame-pointer -W -Wall -c assert.cc -o assert.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -g -O3 -fomit-frame-pointer -W -Wall -c -o Box.lo Box.cc
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -g -O3 -fomit-frame-pointer -W -Wall -c Box.cc -fno-common -DPIC -o .libs/Box.o
brew: superenv removed: -I../src -g -O3 -W -Wall
In file included from Box.cc:25:
In file included from ./Box.defs.hh:29:
In file included from ./Coefficient.defs.hh:27:
In file included from ./Coefficient.types.hh:16:
In file included from ./Checked_Number.defs.hh:28:
In file included from ./checked.defs.hh:30:
./mp_std_bits.defs.hh:47:7: error: redefinition of 'std::numeric_limits<mpz_class>'
class numeric_limits<mpz_class> {
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/gmpxx.h:3269:21: note: previous definition is here
template <> class numeric_limits<mpz_class>
^
In file included from Box.cc:25:
In file included from ./Box.defs.hh:29:
In file included from ./Coefficient.defs.hh:27:
In file included from ./Coefficient.types.hh:16:
In file included from ./Checked_Number.defs.hh:28:
In file included from ./checked.defs.hh:30:
./mp_std_bits.defs.hh:108:7: error: redefinition of 'std::numeric_limits<mpq_class>'
class numeric_limits<mpq_class> {
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/gmpxx.h:3306:21: note: previous definition is here
template <> class numeric_limits<mpq_class>
^
2 errors generated.
make[2]: *** [Box.lo] Error 1
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1
==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: 79779a9eb372c01d95af307645ae1bd3a3511319
CPU: quad-core 64-bit arrandale
OS X: 10.8.3-x86_64
CLT: 4.6.0.0.1.1365549073
X11: 2.7.4 => /opt/X11
==> ENV
CC: cc
CXX: c++
MAKEFLAGS: -j1
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.8
HOMEBREW_MAKE_JOBS: 1
ACLOCAL_PATH: /usr/local/share/aclocal
OBJC: cc
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/python/bin:/usr/bin:/bin:/usr/sbin:/sbin
Error: ppl did not build
Logs: /Users/schmidt/Library/Logs/Homebrew/ppl/config.log
no make log in /Users/schmidt/Library/Logs/Homebrew/ppl
➜ ppl brew info ppl
ppl: stable 1.0
http://bugseng.com/products/ppl/
Depends on: gmp
Not installed
https://github.com/mxcl/homebrew/commits/master/Library/Formula/ppl.rb
➜ ppl tail /Users/schmidt/Library/Logs/Homebrew/ppl/config.log
#define HAVE_DECL_RLIMIT_AS 1
#define HAVE_DECL_GETRUSAGE 1
#define HAVE_DECL_SETRLIMIT 1
#define HAVE_DECL_SETITIMER 1
#define HAVE_DECL_SIGACTION 1
#define HAVE_TIMEVAL 1
#define HAVE_SIGINFO_T 1
#define PPL_CXX_SUPPORTS_LIMITING_MEMORY 0
configure: exit 0
➜ ~ brew doctor
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/usr/local/CrossPack-AVR/bin/libusb-config
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libyubikey.0.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .la files:
/usr/local/lib/libyubikey.la
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libyubikey.a
➜ ~
@uxpablo
Copy link

uxpablo commented Mar 11, 2014

Hello, were you able to fix this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment