Hi Ian,

On Jun 8, 2007, at 12:03 PM, Ian Lynagh wrote:


Hmm, what is the complete command (i.e. with all arguments) that starts
"cd base && setup/Setup configure"?



make -C libraries all
rm -f -f stamp/configure.library.*.base base/unbuildable
( cd base && setup/Setup configure \
            --enable-library-profiling --enable-split-objs \
--prefix=/opt/local/var/db/dports/build/ _Users_gwright_src_macports-trunk_dports_lang_ghc-devel/work/ destroot//opt/local \
           --with-compiler=../../compiler/ghc-inplace \
           --with-hc-pkg=../../utils/ghc-pkg/ghc-pkg-inplace \
           --with-hsc2hs=../../utils/hsc2hs/hsc2hs-inplace \
           --with-ld=/usr/bin/ld \
           --datasubdir=ghc \
           --haddock-args="--use-contents=../index.html \
                           --use-index=../doc-index.html" \
--configure-option='--prefix=/opt/local' --configure- option='--prefix=/opt/local/var/db/dports/build/ _Users_gwright_src_macports-trunk_dports_lang_ghc-devel/work/ destroot//opt/local' --configure-option='--mandir=/opt/local/var/db/ dports/build/_Users_gwright_src_macports-trunk_dports_lang_ghc-devel/ work/destroot//opt/local/share/man/' --configure-option='--with- readline-includes=/opt/local/include' --configure-option='--with- readline-libraries=/opt/local/lib' --configure-option='--with-gmp- includes=/opt/local/include' --configure-option='--with-gmp- libraries=/opt/local/lib' --configure-option='--disable-openal' -- configure-option='--disable-alut' --configure-option='CFLAGS=-I/opt/ local/include --configure-option=-O2' --configure-option='CPPFLAGS=-I/ opt/local/include --configure-option=-I/opt/local/include' -- configure-option='LDFLAGS=-L/opt/local/lib --configure-option=-L/opt/ local/lib' \
           --configure-option=--with-cc=gcc ) \
&& touch stamp/configure.library.build-profiling- splitting.base || touch base/unbuildable
Setup: Warning: Unknown field 'nhc98-options'
configure: Reading installed packages...
Configuring base-2.1...
configure: Using install prefix: /opt/local/var/db/dports/build/ _Users_gwright_src_macports-trunk_dports_lang_ghc-devel/work/destroot/ opt/local configure: Binaries installed in: /opt/local/var/db/dports/build/ _Users_gwright_src_macports-trunk_dports_lang_ghc-devel/work/destroot/ opt/local/bin configure: Libraries installed in: /opt/local/var/db/dports/build/ _Users_gwright_src_macports-trunk_dports_lang_ghc-devel/work/destroot/ opt/local/lib/base-2.1/ghc-6.7.20070608 configure: Private binaries installed in: /opt/local/var/db/dports/ build/_Users_gwright_src_macports-trunk_dports_lang_ghc-devel/work/ destroot/opt/local/libexec configure: Data files installed in: /opt/local/var/db/dports/build/ _Users_gwright_src_macports-trunk_dports_lang_ghc-devel/work/destroot/ opt/local/share/ghc
configure: Using compiler: ../../compiler/ghc-inplace
configure: Compiler flavor: GHC
configure: Compiler version: 6.7.20070608
configure: Using package tool: ../../utils/ghc-pkg/ghc-pkg-inplace
configure: Using ar found on system at: /usr/bin/ar
configure: Using haddock found on system at: /opt/local/bin/haddock
configure: Using ld given by user at: /usr/bin/ld
configure: No pfesetup found
configure: Using ranlib found on system at: /usr/bin/ranlib
configure: Using runghc found on system at: /opt/local/bin/runghc
configure: Using runhugs found on system at: /opt/local/bin/runhugs
configure: Using tar found on system at: /usr/bin/tar
configure: Using happy: /opt/local/bin/happy
configure: Using alex: /opt/local/bin/alex
configure: Using hsc2hs: ../../utils/hsc2hs/hsc2hs-inplace
configure: Using c2hs: /opt/local/bin/c2hs
configure: Using cpphs: /opt/local/bin/cpphs
configure: No greencard found
configure: Reading installed packages...
Configuring base-2.1...
configure: Dependency rts-any: using rts-1.0
configure: Using install prefix: /opt/local/var/db/dports/build/ _Users_gwright_src_macports-trunk_dports_lang_ghc-devel/work/destroot/ opt/local configure: Binaries installed in: /opt/local/var/db/dports/build/ _Users_gwright_src_macports-trunk_dports_lang_ghc-devel/work/destroot/ opt/local/bin configure: Libraries installed in: /opt/local/var/db/dports/build/ _Users_gwright_src_macports-trunk_dports_lang_ghc-devel/work/destroot/ opt/local/lib/base-2.1/ghc-6.7.20070608 configure: Private binaries installed in: /opt/local/var/db/dports/ build/_Users_gwright_src_macports-trunk_dports_lang_ghc-devel/work/ destroot/opt/local/libexec configure: Data files installed in: /opt/local/var/db/dports/build/ _Users_gwright_src_macports-trunk_dports_lang_ghc-devel/work/destroot/ opt/local/share/ghc
configure: Using compiler: ../../compiler/ghc-inplace
configure: Compiler flavor: GHC
configure: Compiler version: 6.7.20070608
configure: Using package tool: ../../utils/ghc-pkg/ghc-pkg-inplace
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
configure: Using ar found on system at: /usr/bin/ar
configure: Using haddock found on system at: /opt/local/bin/haddock
configure: Using ld given by user at: /usr/bin/ld
configure: No pfesetup found
configure: Using ranlib found on system at: /usr/bin/ranlib
configure: Using runghc found on system at: /opt/local/bin/runghc
configure: Using runhugs found on system at: /opt/local/bin/runhugs
configure: Using tar found on system at: /usr/bin/tar
configure: Using happy: /opt/local/bin/happy
configure: Using alex: /opt/local/bin/alex
configure: Using hsc2hs: ../../utils/hsc2hs/hsc2hs-inplace
configure: Using c2hs: /opt/local/bin/c2hs
configure: Using cpphs: /opt/local/bin/cpphs
configure: No greencard found
ifBuildable/ifBuildable base setup/Setup build \
--ghc-option=-O --ghc-option=-Rghc- timing --ghc-option=-fgenerics
ifBuildable: base is unbuildable
make[1]: *** [build.library.base] Error 1
make: *** [stage1] Error 2
Error: Target com.apple.build returned: shell command "env DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib make all" returned error 2

Do you have a mk/build.mk?



Here is mk/build.mk.  Some of these may be obsolete; I think
this is mostly unchanged from 6.5 days when more hints were needed
to link libraries not in the usual locations.

#
# Local configuration overrides for DarwinPorts
#
SRC_CC_OPTS += -I/opt/local/include
SRC_HC_OPTS += -I/opt/local/include -I/usr/include -L/opt/local/lib - L/usr/lib
EXTRA_HSC2HS_OPTS += -I/opt/local/include
EXTRA_LD_OPTS += -L/opt/local/lib
EXTRA_LD_OPTS += -L/usr/lib
~



Best Wishes,
Greg

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to