problems building under os x 10.3.9

2005-10-09 Thread Robby Findler
Hi all,

  I'm having trouble building ghc under mac os x 10.3.9. I've gotten
darwin ports installed and it seems to have build all of ghc's
dependencies okay, but when building ghc itself, I get this message:

In file included from /tmp/ghc25897.hc:5:
/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/lib/ghc-6.4/include/HsUnix.h:
 In function `__hsunix_rtldNext':
/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/lib/ghc-6.4/include/HsUnix.h:103:
 error: `RTLD_NEXT' undeclared (first use in this function)

(the full transcript is below).

I think that this is also listed as a bug on the opendarwin site, but I
couldn't find any fixes there:

  http://www.opendarwin.org/pipermail/darwinports-bugs/2005-May/010649.html

Am I missing something silly?

Thanks,
Robby

% sudo port install ghc
---  Fetching gmake
---  Attempting to fetch make-3.80.tar.gz from ftp://ftp.gnu.org/gnu/make
---  Verifying checksum(s) for gmake
---  Extracting gmake
---  Configuring gmake
---  Building gmake with target all
---  Staging gmake into destroot
---  Packaging tgz archive for gmake 3.80_1
---  Installing gmake 3.80_1
---  Activating gmake 3.80_1
---  Cleaning gmake
---  Fetching gmp
---  Attempting to fetch gmp-4.1.4.tar.bz2 from ftp://ftp.gnu.org/gnu/gmp
---  Verifying checksum(s) for gmp
---  Extracting gmp
---  Configuring gmp
---  Building gmp with target all
---  Staging gmp into destroot
---  Packaging tgz archive for gmp 4.1.4_2+test
---  Installing gmp 4.1.4_2+test
---  Activating gmp 4.1.4_2+test
---  Cleaning gmp
---  Fetching perl5.8
---  Attempting to fetch perl-5.8.7.tar.bz2 from http://www.cpan.org/src/5.0/
---  Verifying checksum(s) for perl5.8
---  Extracting perl5.8
---  Applying patches to perl5.8
---  Configuring perl5.8
---  Building perl5.8 with target all
---  Staging perl5.8 into destroot
---  Packaging tgz archive for perl5.8 5.8.7_0
---  Installing perl5.8 5.8.7_0
---  Activating perl5.8 5.8.7_0
---  Cleaning perl5.8
---  Fetching readline
---  Attempting to fetch readline50-001 from 
ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
---  Attempting to fetch readline50-002 from 
ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
---  Attempting to fetch readline50-003 from 
ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
---  Attempting to fetch readline50-004 from 
ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
---  Attempting to fetch readline50-005 from 
ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
---  Attempting to fetch readline-5.0.tar.gz from 
ftp://ftp.gnu.org/gnu/readline
---  Verifying checksum(s) for readline
---  Extracting readline
---  Applying patches to readline
---  Configuring readline
---  Building readline with target all
---  Staging readline into destroot
---  Packaging tgz archive for readline 5.0.005_0
---  Installing readline 5.0.005_0
---  Activating readline 5.0.005_0
---  Cleaning readline
---  Fetching ghc
---  Attempting to fetch ghc-6.4.1-src.tar.bz2 from 
http://www.haskell.org/ghc//dist/6.4.1/
---  Attempting to fetch happy-1.15-src.tar.gz from 
http://www.haskell.org/happy/dist/1.15
---  Attempting to fetch ghc-6.4-darwin-bootstrap-v01.tar.bz2 from 
http://www.haskell.org/ghc//dist/6.4/MacOSX/
---  Verifying checksum(s) for ghc
---  Extracting ghc
---  Applying patches to ghc
---  Configuring ghc
---  Building ghc with target all
Error: Target com.apple.build returned: shell command 
DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib gmake all returned error 2
Command output: 
/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/bin/ghc
 -H16m -O -I/usr/include -I/opt/local/include -L/usr/lib -L/opt/local/lib  
-istage1/utils  -istage1/basicTypes  -istage1/types  -istage1/hsSyn  
-istage1/prelude  -istage1/rename  -istage1/typecheck  -istage1/deSugar  
-istage1/coreSyn  -istage1/specialise  -istage1/simplCore  -istage1/stranal  
-istage1/stgSyn  -istage1/simplStg  -istage1/codeGen  -istage1/main  
-istage1/profiling  -istage1/parser  -istage1/cprAnalysis  -istage1/compMan  
-istage1/ndpFlatten  -istage1/iface  -istage1/cmm  -istage1/nativeGen -Istage1 
-cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -IcodeGen -InativeGen 
-Iparser -package unix -ignore-package lang -recomp -Rghc-timing  -H16M 
'-#include hschooks.h' -i../lib/compat -ignore-package Cabal-c 
basicTypes/OccName.lhs-boot -o stage1/basicTypes/OccName.o-boot  -ohi 
stage1/basicTypes/OccNam
 e.hi-boot
ghc: 28651560 bytes, 8 GCs, 2408670/4720920 avg/max bytes residency (2 
samples), 18M in use, 0.02 INIT (0.02 elapsed), 0.16 MUT (0.33 elapsed), 0.18 
GC (0.21 elapsed) :ghc
/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/bin/ghc
 -H16m -O 

Default name of target executable

2005-10-09 Thread Tomasz Zielonka
Hello!

When I work on a program which is going to be named LongProgramName,
I usually put the Main module in file LongProgramName.hs. It would be nice
if I could build it with --make like this:

$ ghc --make LongProgramName

instead of

$ ghc --make LongProgramName -o LongProgramName

Does anyone rely on the first one producing a.out?

Because of this long syntax and comand-line completion I've even once
lost the source code. I forgot to remove the .hs at the end of line:

$ ghc --make Prog -o Prog.hs

Best regards
Tomasz
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users