Opened 13 years ago
Closed 11 years ago
#34401 closed defect (wontfix)
hs-platform-GLUT @2.1.1.2 build fail
Reported by: | willy.wolff.0@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | Cc: | gwright@…, ryandesign (Ryan Carsten Schmidt) | |
Port: | hs-platform-GLUT |
Description
Want to install haskell-platform
Attachments (2)
Change History (8)
Changed 13 years ago by willy.wolff.0@…
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Port: | hs-platform-GLUT added |
---|
Your log says:
ghc: could not execute: /usr/bin/gcc-4.2
I'll bet you're using Xcode 4.3. Rebuild ghc. See wiki:ProblemHotlist#xcode43
comment:2 Changed 13 years ago by willy.wolff.0@…
I have command line tool installed with xcode.
xcode-select -print-path /Applications/Xcode.app/Contents/Developer xcode-select -version xcode-select version 2307. sudo port -fp uninstall --follow-dependents ghc ... sudo port install haskell-platform
ghc @6.10.4_5, hs-platform-OpenGL @2.2.1.1_0 installed correctly. but with hs-platform-GLUT same error with gcc42 and tclIndex no such file directory like before
comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Ignore the tclIndex error message; it's irrelevant. The relevant error is that ghc is trying to use /usr/bin/gcc-4.2 and there is no gcc-4.2 in Xcode 4.3.
I'll bet you got the binary from our packages server, which was built with Xcode 4.1 I think. Force MacPorts to build ghc from source instead:
sudo port -ns upgrade --force ghc
Then things like hs-platform-GLUT that use ghc should work.
comment:4 Changed 13 years ago by willy.wolff.0@…
I try to updrade has you have suggested, but got error to:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-6.10.4/ghc/stage1-inplace/ghc -package-name containers-0.2.0.1 -hide-all-packages -no-user-package-conf -split-objs -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -Iinclude -I/opt/local/include -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package array-0.2.0.0 -package base-4.1.0.0 -O -XDeriveDataTypeable -XMagicHash -XRank2Types -XCPP -idist/build -H32m -O -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-6.10.4/libffi -I/opt/local/include -L/opt/local/lib -O2 -Rghc-timing -XGenerics -Wall -fno-warn-deprecated-flags -c Data/Map.hs -o dist/build/Data/Map.o -ohi dist/build/Data/Map.hi :info:build i686-apple-darwin11-gcc-apple-4.2.1: error trying to exec '/opt/local/libexec/apple-gcc42/gcc/i686-apple-darwin11/4.2.1/as': execv: Permission denied :info:build <<ghc: 1706265832 bytes, 2359 GCs, 18279032/29299064 avg/max bytes residency (10 samples), 70M in use, 0.00 INIT (0.00 elapsed), 2.63 MUT (7.74 elapsed), 1.54 GC (1.60 elapsed) :ghc>> :info:build make[2]: *** [dist/build/Data/Sequence.o] Error 1 :info:build make[2]: *** Waiting for unfinished jobs.... :info:build <<ghc: 1041019096 bytes, 1124 GCs, 16715740/29521376 avg/max bytes residency (8 samples), 70M in use, 0.00 INIT (0.00 elapsed), 1.57 MUT (8.91 elapsed), 0.98 GC (1.03 elapsed) :ghc>> :info:build <<ghc: 1222735736 bytes, 1531 GCs, 17599759/30707144 avg/max bytes residency (9 samples), 73M in use, 0.00 INIT (0.00 elapsed), 1.86 MUT (10.07 elapsed), 1.20 GC (1.26 elapsed) :ghc>> :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-6.10.4/libraries/containers' :info:build make[1]: *** [make.library.containers] Error 2 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-6.10.4/libraries' :info:build make: *** [stage1] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-6.10.4' :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-6.10.4" && /usr/bin/make -j4 -w all " returned error 2 :error:build Target org.macports.build returned: shell command failed (see log for details) :debug:build Backtrace: shell command failed (see log for details) while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for ghc): org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Log for ghc is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/main.log
comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | gwright@… ryandesign@… added |
---|
Could you please attach the entire main.log?
comment:6 Changed 11 years ago by neverpanic (Clemens Lang)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Since this ticket concerns GHC 6.x and the hs-platform-* ports no longer exist, I assume it is obsolete.
log of the build fail