[MacPorts] #25558: ghc: update to latest version
MacPorts
noreply at macports.org
Sun Jul 8 14:39:38 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 cal@…):
{{{
:) clemens at cSchlepptop:/opt/dports/lang/ghc$ /usr/bin/gcc -v iconv.c
Using built-in specs.
Target: i686-apple-darwin11
Configured with:
/private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/src/configure --disable-
checking --enable-werror
--prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2
--mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-
prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-
slibdir=/usr/lib --build=i686-apple-darwin11 --enable-
llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/dst-
llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11-
--host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-
include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
/usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin11/4.2.1/cc1 -quiet
-v -imultilib x86_64 -iprefix /usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-
darwin11/4.2.1/ -D__DYNAMIC__ iconv.c -fPIC -quiet -dumpbase iconv.c
-mmacosx-version-min=10.7.4 -m64 -mtune=core2 -auxbase iconv -version -o
/var/folders/hz/krd1dcl90hb7nc7pnysfvm640000gn/T//cch8SQhj.s
ignoring nonexistent directory "/usr/llvm-gcc-4.2/bin/../lib/gcc/i686
-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include"
ignoring nonexistent directory
"/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686
-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include
/usr/local/include
/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686
-apple-darwin11/4.2.1/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
GNU C version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build
2336.9.00) (i686-apple-darwin11)
compiled by GNU C version 4.2.1 (Based on Apple Inc. build 5658)
(LLVM build 2336.9.00).
GGC heuristics: --param ggc-min-expand=150 --param ggc-min-heapsize=131072
Compiler executable checksum: ee05ffc2102727aa16c85f6ae97aa56c
/usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin11/4.2.1/as -arch
x86_64 -force_cpusubtype_ALL -o
/var/folders/hz/krd1dcl90hb7nc7pnysfvm640000gn/T//ccprgfGB.o
/var/folders/hz/krd1dcl90hb7nc7pnysfvm640000gn/T//cch8SQhj.s
/usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin11/4.2.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/usr/llvm-
gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/x86_64
-L/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686
-apple-darwin11/4.2.1/x86_64 -L/usr/lib/gcc/i686-apple-
darwin11/4.2.1/x86_64 -L/usr/lib/i686-apple-darwin11/4.2.1 -L/usr/llvm-
gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1 -L/usr/llvm-
gcc-4.2/bin/../lib/gcc -L/Applications/Xcode.app/Contents/Developer/usr
/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1 -L/usr/lib/gcc/i686-apple-
darwin11/4.2.1 -L/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-
darwin11/4.2.1/../../.. -L/Applications/Xcode.app/Contents/Developer/usr
/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../..
/var/folders/hz/krd1dcl90hb7nc7pnysfvm640000gn/T//ccprgfGB.o -lSystem
-lgcc -lSystem
Undefined symbols for architecture x86_64:
"_iconv_open", referenced from:
_main in ccprgfGB.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
:( clemens at cSchlepptop:/opt/dports/lang/ghc$ gcc -v iconv.c
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin11/4.6.3
/lto-wrapper
Target: x86_64-apple-darwin11
Configured with: ../gcc-4.6.3/configure --prefix=/opt/local --build=x86_64
-apple-darwin11 --enable-languages=c,c++,objc,obj-c++,lto,fortran
--libdir=/opt/local/lib/gcc46 --includedir=/opt/local/include/gcc46
--infodir=/opt/local/share/info --mandir=/opt/local/share/man
--datarootdir=/opt/local/share/gcc-4.6 --with-local-prefix=/opt/local
--with-libiconv-prefix=/opt/local --with-system-zlib --disable-nls
--program-suffix=-mp-4.6 --with-gxx-include-
dir=/opt/local/include/gcc46/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 --disable-ppl-version-check
--with-pkgversion='MacPorts gcc46 4.6.3_3'
Thread model: posix
gcc version 4.6.3 (MacPorts gcc46 4.6.3_3)
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.4' '-v' '-mtune=core2'
/opt/local/libexec/gcc/x86_64-apple-darwin11/4.6.3/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/hz/krd1dcl90hb7nc7pnysfvm640000gn/T//ccQ9KOmh.s
GNU C (MacPorts gcc46 4.6.3_3) version 4.6.3 (x86_64-apple-darwin11)
compiled by GNU C version 4.6.3, 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/gcc46/gcc/x86_64-apple-
darwin11/4.6.3/../../../../../x86_64-apple-darwin11/include"
#include "..." search starts here:
#include <...> search starts here:
/opt/local/lib/gcc46/gcc/x86_64-apple-darwin11/4.6.3/include
/opt/local/include
/opt/local/lib/gcc46/gcc/x86_64-apple-darwin11/4.6.3/include-fixed
/usr/include
/System/Library/Frameworks
/Library/Frameworks
End of search list.
GNU C (MacPorts gcc46 4.6.3_3) version 4.6.3 (x86_64-apple-darwin11)
compiled by GNU C version 4.6.3, 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: 7b044bf09794dd484b19dfba21993f39
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/hz/krd1dcl90hb7nc7pnysfvm640000gn/T//ccbj0i0g.o
/var/folders/hz/krd1dcl90hb7nc7pnysfvm640000gn/T//ccQ9KOmh.s
Apple Inc version cctools-822, GNU assembler version 1.38
COMPILER_PATH=/opt/local/libexec/gcc/x86_64-apple-
darwin11/4.6.3/:/opt/local/libexec/gcc/x86_64-apple-
darwin11/4.6.3/:/opt/local/libexec/gcc/x86_64-apple-
darwin11/:/opt/local/lib/gcc46/gcc/x86_64-apple-
darwin11/4.6.3/:/opt/local/lib/gcc46/gcc/x86_64-apple-darwin11/
LIBRARY_PATH=/opt/local/lib/gcc46/gcc/x86_64-apple-
darwin11/4.6.3/:/opt/local/lib/gcc46/gcc/x86_64-apple-
darwin11/4.6.3/../../../:/usr/lib/
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.4' '-v' '-mtune=core2'
/opt/local/libexec/gcc/x86_64-apple-darwin11/4.6.3/collect2 -dynamic
-arch x86_64 -macosx_version_min 10.7.4 -weak_reference_mismatches non-
weak -o a.out -lcrt1.10.5.o -L/opt/local/lib/gcc46/gcc/x86_64-apple-
darwin11/4.6.3 -L/opt/local/lib/gcc46/gcc/x86_64-apple-
darwin11/4.6.3/../../..
/var/folders/hz/krd1dcl90hb7nc7pnysfvm640000gn/T//ccbj0i0g.o
-no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v
collect2 version 4.6.3 (x86_64 Darwin)
/opt/local/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.7.4
-weak_reference_mismatches non-weak -o a.out -lcrt1.10.5.o
-L/opt/local/lib/gcc46/gcc/x86_64-apple-darwin11/4.6.3
-L/opt/local/lib/gcc46/gcc/x86_64-apple-darwin11/4.6.3/../../..
/var/folders/hz/krd1dcl90hb7nc7pnysfvm640000gn/T//ccbj0i0g.o
-no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v
@(#)PROGRAM:ld PROJECT:ld64-128.2
Library search paths:
/opt/local/lib/gcc46/gcc/x86_64-apple-darwin11/4.6.3
/opt/local/lib/gcc46
/usr/lib
/usr/local/lib
Framework search paths:
/Library/Frameworks/
/System/Library/Frameworks/
Undefined symbols for architecture x86_64:
"_libiconv_open", referenced from:
_main in ccbj0i0g.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
}}}
So it seems when using `gcc`, which is `/opt/local/bin/gcc` and pointing
to `/opt/local/bin/gcc-mp-4.6` on my system `/opt/local/include` is
automatically in the include path, turning any `iconv_open` to
`libiconv_open`.
Removing or re-creating the `/opt/local/bin/gcc` has no effect on the
problem with the ghc port, though.
--
Ticket URL: <https://trac.macports.org/ticket/25558#comment:47>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list