[MacPorts] #36221: ppl @1.0 cannot be configured on PPC Tiger because g++-apple-4.2 cannot find libstdc++
MacPorts
noreply at macports.org
Wed Sep 19 07:08:05 PDT 2012
#36221: ppl @1.0 cannot be configured on PPC Tiger because g++-apple-4.2 cannot
find libstdc++
-----------------------------+--------------------------------
Reporter: Peter_Dyballa@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: | Port: ppl
-----------------------------+--------------------------------
The end of building goes this way:
{{{
checking for uint_fast64_t... yes
checking for uintptr_t... yes
checking for the GMP library version 4.1.3 or above... no
configure: error: Cannot find GMP version 4.1.3 or higher.
GMP is the GNU Multi-Precision library:
see http://www.swox.com/gmp/ for more information.
When compiling the GMP library, do not forget to enable the C++ interface:
add --enable-cxx to the configuration options.
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_ppl/ppl/work/ppl-1.0"
&& ./configure --prefix=/opt/local
Exit code: 1
Error: org.macports.configure for port ppl returned: configure failure:
command execution failed
}}}
The reason can be found in config.log:
{{{
configure:9481: checking for the GMP library version 4.1.3 or above
configure:9570: /opt/local/bin/g++-apple-4.2 -o conftest -g -O2
-frounding-math -pipe -O2 -arch ppc -I/opt/local/include -L/opt/local/lib
-arch ppc conftest.cpp -lgmpxx -lgmp >&5
ld: library not found for -lstdc++
collect2: ld returned 1 exit status
configure:9570: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "the Parma Polyhedra Library"
| #define PACKAGE_TARNAME "ppl"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "the Parma Polyhedra Library 1.0"
| #define PACKAGE_BUGREPORT "ppl-devel at cs.unipr.it"
| #define PACKAGE_URL ""
| #define PPL_CONFIGURE_OPTIONS " '--prefix=/opt/local' 'CC=/opt/local/bin
/gcc-apple-4.2' 'CFLAGS=-pipe -O2 -arch ppc' 'LDFLAGS=-L/opt/local/lib
-arch ppc' 'CPPFLAGS=-I/opt/local/include'
'CXX=/opt/local/bin/g++-apple-4.2' 'CXXFLAGS=-pipe -O2 -arch ppc'"
| #define PPL_NDEBUG 1
| #define PPL_FPMATH_MAY_USE_387 1
| #define PPL_FPMATH_MAY_USE_SSE 1
| #define PPL_COEFFICIENT_TYPE mpz_class
| #define PPL_COEFFICIENT_BITS 0
| #define PPL_GMP_INTEGERS 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define WORDS_BIGENDIAN 1
| #define HAVE_TYPEOF 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_LONG 4
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_SIZE_T 4
| #define SIZEOF_FLOAT 4
| #define SIZEOF_DOUBLE 8
| #define SIZEOF_LONG_DOUBLE 16
| #define SIZEOF_INTP 4
| #define SIZEOF_FP 4
| #define HAVE_FENV_H 1
| #define PPL_CAN_CONTROL_FPU 0
| #define PPL_CXX_PLAIN_CHAR_IS_SIGNED 1
| #define PPL_CXX_PROVIDES_PROPER_LONG_DOUBLE 0
| #define PPL_SUPPORTED_FLOAT 0
| #define PPL_SUPPORTED_DOUBLE 0
| #define PPL_SUPPORTED_LONG_DOUBLE 0
| #define PPL_CXX_SUPPORTS_ZERO_LENGTH_ARRAYS 0
| #define PPL_CXX_SUPPORTS_IEEE_INEXACT_FLAG 0
| #define PPL_CXX_SUPPORTS_ATTRIBUTE_WEAK 1
| #define HAVE_FENV_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_STRING_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DECL_FFS 1
| #define HAVE_DECL_GETENV 1
| #define HAVE_DECL_STRTOF 1
| #define HAVE_DECL_STRTOD 1
| #define HAVE_DECL_STRTOLD 1
| #define HAVE_DECL_STRTOLL 1
| #define HAVE_DECL_STRTOULL 1
| #define HAVE_DECL_FMA 1
| #define HAVE_DECL_FMAF 1
| #define HAVE_DECL_FMAL 1
| #define HAVE_DECL_RINTF 1
| #define HAVE_DECL_RINTL 1
| #define HAVE_INT_FAST16_T 1
| #define HAVE_INT_FAST32_T 1
| #define HAVE_INT_FAST64_T 1
| #define HAVE_UINT_FAST16_T 1
| #define HAVE_UINT_FAST32_T 1
| #define HAVE_UINT_FAST64_T 1
| #define HAVE_UINTPTR_T 1
| /* end confdefs.h. */
|
| #include <gmpxx.h>
| #include <climits>
| #include <string>
| #include <sstream>
| #include <iostream>
|
| #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 &&
__GNU_MP_VERSION_MINOR < 1) || (__GNU_MP_VERSION == 4 &&
__GNU_MP_VERSION_MINOR == 1 && __GNU_MP_VERSION_PATCHLEVEL < 3)
| #GMP version 4.1.3 or higher is required
| #endif
|
| #ifndef BITS_PER_MP_LIMB
| #define BITS_PER_MP_LIMB GMP_LIMB_BITS
| #endif
|
| int
| main() {
| std::string header_version;
| {
| std::ostringstream s(header_version);
| s << __GNU_MP_VERSION << "." << __GNU_MP_VERSION_MINOR;
| // Starting from GMP version 4.3.0, the gmp_version variable
| // always contains three parts. In previous versions the
| // patchlevel was omitted if it was 0.
| if (__GNU_MP_VERSION_PATCHLEVEL != 0
| || __GNU_MP_VERSION > 4
| || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR >= 3))
| s << "." << __GNU_MP_VERSION_PATCHLEVEL;
| header_version = s.str();
| }
|
| std::string library_version = gmp_version;
|
| if (header_version != library_version) {
| std::cerr
| << "GMP header (gmpxx.h) and library (ligmpxx.*) version
mismatch:\n"
| << "header gives " << header_version << ";\n"
| << "library gives " << library_version << "." << std::endl;
| return 1;
| }
|
| if (sizeof(mp_limb_t)*CHAR_BIT != BITS_PER_MP_LIMB
| || BITS_PER_MP_LIMB != mp_bits_per_limb) {
| std::cerr
| << "GMP header (gmpxx.h) and library (ligmpxx.*) bits-per-limb
mismatch:\n"
| << "header gives " << BITS_PER_MP_LIMB << ";\n"
| << "library gives " << mp_bits_per_limb << ".\n"
| << "This probably means you are on a bi-arch system and\n"
| << "you are compiling with the wrong header or linking with\n"
| << "the wrong library." << std::endl;
| return 1;
| }
|
| mpz_class n("3141592653589793238462643383279502884");
| return 0;
| }
|
configure:9575: result: no
configure:9710: error: Cannot find GMP version 4.1.3 or higher.
GMP is the GNU Multi-Precision library:
see http://www.swox.com/gmp/ for more information.
When compiling the GMP library, do not forget to enable the C++ interface:
add --enable-cxx to the configuration options.
}}}
/opt/local/lib/apple-gcc42/gcc/powerpc-apple-
darwin8/4.2.1/libstdc++.dylib does not exist. When I activate apple-gcc42
@5666.3_7 the file exists, with apple-gcc42 @5666.3_8 it does not exist.
--
Ticket URL: <https://trac.macports.org/ticket/36221>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list