[MacPorts] #25558: ghc: update to latest version
MacPorts
noreply at macports.org
Wed Jul 11 04:59:01 PDT 2012
#25558: ghc: update to latest version
--------------------------------+-------------------------------------------
Reporter: jwiegley@… | Owner: gwright@…
Type: update | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: ghc ghc-devel
--------------------------------+-------------------------------------------
Comment(by kitchen.andy@…):
Hey Buddy, it seems to maintain compatibility newer iconv.h
hash defines iconv_open to libiconv_open.
{{{
--- from /opt/local/include/iconv.h line 70
#ifndef LIBICONV_PLUG
#define iconv_open libiconv_open
#endif
}}}
So this error is caused by using the _new_ header
but linking with the _old_ library, so LIBRARY_PATH
was a red herring.
What we really need to do is get the gcc that ghc
is using to search /usr/include before /opt/local/include
Try using the C_INCLUDE_PATH
{{{
export C_INCLUDE_PATH="/usr/include"
}}}
also -isystem
{{{
CCFLAGS="-isystem/usr/include"
}}}
Both should have the effect of making /usr/include
searched first:
{{{
iceman:misc andy$ C_INCLUDE_PATH=/usr/include gcc -v -liconv iconv.c
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin11/4.7.1
/lto-wrapper
Target: x86_64-apple-darwin11
Configured with: ../gcc-4.7.1/configure --prefix=/opt/local --build=x86_64
-apple-darwin11 --enable-languages=c,c++,objc,obj-c++,lto,fortran,java
--libdir=/opt/local/lib/gcc47 --includedir=/opt/local/include/gcc47
--infodir=/opt/local/share/info --mandir=/opt/local/share/man
--datarootdir=/opt/local/share/gcc-4.7 --with-libiconv-prefix=/opt/local
--with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-
suffix=-mp-4.7 --with-gxx-include-dir=/opt/local/include/gcc47/c++/
--with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-
ppl=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl
--enable-stage1-checking --disable-multilib --enable-lto --with-
as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-
ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket
--with-pkgversion='MacPorts gcc47 4.7.1_0'
Thread model: posix
gcc version 4.7.1 (MacPorts gcc47 4.7.1_0)
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.4' '-v' '-mtune=core2'
/opt/local/libexec/gcc/x86_64-apple-darwin11/4.7.1/cc1 -quiet -v
-D__DYNAMIC__ iconv.c -fPIC -quiet -dumpbase iconv.c -mmacosx-version-
min=10.7.4 -mtune=core2 -auxbase iconv -version -o
/var/folders/qg/3j6tq6992rz3z7jxcx6xb7zc0000gn/T//cc483mGx.s
GNU C (MacPorts gcc47 4.7.1_0) version 4.7.1 (x86_64-apple-darwin11)
compiled by GNU C version 4.7.1, GMP version 5.0.4, MPFR version
3.1.0-p3, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/opt/local/lib/gcc47/gcc/x86_64-apple-
darwin11/4.7.1/../../../../../x86_64-apple-darwin11/include"
ignoring duplicate directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/include
/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.1/include
/opt/local/include
/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.1/include-fixed
/System/Library/Frameworks
/Library/Frameworks
End of search list.
GNU C (MacPorts gcc47 4.7.1_0) version 4.7.1 (x86_64-apple-darwin11)
compiled by GNU C version 4.7.1, GMP version 5.0.4, MPFR version
3.1.0-p3, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: e759aa47287dbc2acfa8f39a5c501a74
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.4' '-v' '-mtune=core2'
/opt/local/bin/as -v -arch x86_64 -force_cpusubtype_ALL -o
/var/folders/qg/3j6tq6992rz3z7jxcx6xb7zc0000gn/T//cczNJZvo.o
/var/folders/qg/3j6tq6992rz3z7jxcx6xb7zc0000gn/T//cc483mGx.s
Apple Inc version cctools-822, GNU assembler version 1.38
COMPILER_PATH=/opt/local/libexec/gcc/x86_64-apple-
darwin11/4.7.1/:/opt/local/libexec/gcc/x86_64-apple-
darwin11/4.7.1/:/opt/local/libexec/gcc/x86_64-apple-
darwin11/:/opt/local/lib/gcc47/gcc/x86_64-apple-
darwin11/4.7.1/:/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/
LIBRARY_PATH=/opt/local/lib/gcc47/gcc/x86_64-apple-
darwin11/4.7.1/:/opt/local/lib/gcc47/gcc/x86_64-apple-
darwin11/4.7.1/../../../:/usr/lib/
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.4' '-v' '-mtune=core2'
/opt/local/libexec/gcc/x86_64-apple-darwin11/4.7.1/collect2 -dynamic
-arch x86_64 -macosx_version_min 10.7.4 -weak_reference_mismatches non-
weak -o a.out -lcrt1.10.6.o -L/opt/local/lib/gcc47/gcc/x86_64-apple-
darwin11/4.7.1 -L/opt/local/lib/gcc47/gcc/x86_64-apple-
darwin11/4.7.1/../../.. -liconv
/var/folders/qg/3j6tq6992rz3z7jxcx6xb7zc0000gn/T//cczNJZvo.o
-no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v
collect2 version 4.7.1
/opt/local/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.7.4
-weak_reference_mismatches non-weak -o a.out -lcrt1.10.6.o
-L/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.1
-L/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.1/../../.. -liconv
/var/folders/qg/3j6tq6992rz3z7jxcx6xb7zc0000gn/T//cczNJZvo.o
-no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v
@(#)PROGRAM:ld PROJECT:ld64-128.2
Library search paths:
/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.1
/opt/local/lib/gcc47
/usr/lib
/usr/local/lib
Framework search paths:
/Library/Frameworks/
/System/Library/Frameworks/
}}}
--
Ticket URL: <https://trac.macports.org/ticket/25558#comment:49>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list