[MacPorts] #64698: approach to fix Haskell (GHC) for PowerPC: some progress, ghc @7.6.3 builds for ppc

MacPorts noreply at macports.org
Mon Feb 21 04:43:42 UTC 2022


#64698: approach to fix Haskell (GHC) for PowerPC: some progress, ghc @7.6.3 builds
for ppc
---------------------------------+------------------------------
  Reporter:  barracuda156        |      Owner:  (none)
      Type:  enhancement         |     Status:  new
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:  2.7.1
Resolution:                      |   Keywords:  powerpc, leopard
      Port:  ghc, ghc-bootstrap  |
---------------------------------+------------------------------

Comment (by barracuda156):

 Building ghc 7.8.4 with 7.6.2 goes for some time but fails on this:

 {{{

 :info:build "/opt/local/share/ghc-bootstrap/bin/ghc" -o
 ghc/stage1/build/tmp/ghc-stage1 -hisuf hi -osuf  o -hcsuf hc -static
 -H32m -O  -package-db libraries/bootstrapping.conf  -hide-all-packages -i
 -ighc/. -ighc/stage1/build -ighc/stage1/build/autogen -Ighc/stage1/build
 -Ighc/stage1/build/autogen     -optP-include
 -optPghc/stage1/build/autogen/cabal_macros.h -package array-0.4.0.1
 -package base-4.6.0.1 -package bytestring-0.10.0.2 -package
 directory-1.2.0.1 -package filepath-1.3.0.1 -package ghc-7.8.4 -package
 process-1.1.0.2 -package unix-2.6.0.1 -Wall -XHaskell98 -XCPP
 -XPatternGuards -XNondecreasingIndentation   -no-user-package-db -rtsopts
 -odir ghc/stage1/build -hidir ghc/stage1/build -stubdir ghc/stage1/build
 -optl-m32 -optl-mmacosx-version-min=10.5
 -optl-L'/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/compiler/stage1/build'
 -optl-L'/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/libraries/transformers
 /dist-boot/build'
 -optl-L'/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/libraries/hpc
 /dist-boot/build'
 -optl-L'/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/libraries/hoopl
 /dist-boot/build'
 -optl-L'/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/libraries
 /bin-package-db/dist-boot/build' -optl-L'/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/binary-0.5.1.1'
 -optl-L'/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/libraries/Cabal/Cabal
 /dist-boot/build' -optl-L'/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/process-1.1.0.2' -optl-L'/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/pretty-1.1.1.0' -optl-L'/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/directory-1.2.0.1' -optl-L'/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/unix-2.6.0.1' -optl-L'/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/time-1.4.0.1' -optl-L'/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/old-locale-1.0.0.5' -optl-L'/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/filepath-1.3.0.1' -optl-L'/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/containers-0.5.0.0' -optl-L'/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/bytestring-0.10.0.2' -optl-L'/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/deepseq-1.3.0.1' -optl-L'/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/array-0.4.0.1' -optl-L'/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/base-4.6.0.1' -optl-L'/opt/local/lib'
 -optl-L'/opt/local/share/ghc-bootstrap/lib/ghc-7.6.2/integer-gmp-0.5.0.0'
 -optl-L'/opt/local/lib' -optl-L'/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/ghc-prim-0.3.0.0' -optl-L'/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2' -optl-ldl -optl-liconv -optl-lcharset -optl-lgmp
 -optl-lm -optl-ldl -static  -H32m -O  -package-db
 libraries/bootstrapping.conf  -hide-all-packages -i -ighc/.
 -ighc/stage1/build -ighc/stage1/build/autogen -Ighc/stage1/build
 -Ighc/stage1/build/autogen     -optP-include
 -optPghc/stage1/build/autogen/cabal_macros.h -package array-0.4.0.1
 -package base-4.6.0.1 -package bytestring-0.10.0.2 -package
 directory-1.2.0.1 -package filepath-1.3.0.1 -package ghc-7.8.4 -package
 process-1.1.0.2 -package unix-2.6.0.1 -Wall -XHaskell98 -XCPP
 -XPatternGuards -XNondecreasingIndentation   -no-user-package-db -rtsopts
 ghc/stage1/build/Main.o ghc/stage1/build/hschooks.o
 :info:build "cp" -p ghc/stage1/build/tmp/ghc-stage1 inplace/lib/bin/ghc-
 stage1
 :info:build "rm" -f
 inplace/bin/ghc-stage1
 :info:build echo '#!/bin/sh'
 >> inplace/bin/ghc-stage1
 :info:build echo
 'executablename="/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/inplace/lib/bin
 /ghc-stage1"'                                  >> inplace/bin/ghc-stage1
 :info:build echo
 'datadir="/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/inplace/lib"'
 >> inplace/bin/ghc-stage1
 :info:build echo
 'bindir="/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/inplace/bin"'
 >> inplace/bin/ghc-stage1
 :info:build echo
 'topdir="/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/inplace/lib"'
 >> inplace/bin/ghc-stage1
 :info:build echo 'pgmgcc="/opt/local/bin/gcc-mp-7"'
 >> inplace/bin/ghc-stage1
 :info:build echo 'export
 DYLD_LIBRARY_PATH="/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/compiler/stage1/build:/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/libraries/transformers
 /dist-
 boot/build:/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/libraries/hpc
 /dist-
 boot/build:/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/libraries/hoopl
 /dist-
 boot/build:/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/libraries
 /bin-package-db/dist-boot/build:/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/binary-0.5.1.1:/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/libraries/Cabal/Cabal
 /dist-boot/build:/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/process-1.1.0.2:/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/pretty-1.1.1.0:/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/directory-1.2.0.1:/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/unix-2.6.0.1:/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/time-1.4.0.1:/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/old-locale-1.0.0.5:/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/filepath-1.3.0.1:/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/containers-0.5.0.0:/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/bytestring-0.10.0.2:/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/deepseq-1.3.0.1:/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/array-0.4.0.1:/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/base-4.6.0.1:/opt/local/lib:/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2/integer-
 gmp-0.5.0.0:/opt/local/lib:/opt/local/share/ghc-bootstrap/lib/ghc-7.6.2
 /ghc-prim-0.3.0.0:/opt/local/share/ghc-
 bootstrap/lib/ghc-7.6.2:$DYLD_LIBRARY_PATH"' >> inplace/bin/ghc-stage1
 :info:build cat ghc/ghc.wrapper                                     >>
 inplace/bin/ghc-stage1
 :info:build chmod +x
 inplace/bin/ghc-stage1
 :info:build "inplace/bin/ghc-cabal" check libraries/ghc-prim
 :info:build "inplace/bin/ghc-cabal" configure libraries/ghc-prim dist-
 install "" --with-
 ghc="/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/inplace/bin
 /ghc-stage1" --with-ghc-
 pkg="/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/inplace/bin
 /ghc-pkg" --flag=include-ghc-prim --disable-library-for-ghci --enable-
 library-vanilla --enable-library-profiling --enable-shared --configure-
 option=CFLAGS=" -m32 -mmacosx-version-min=10.5 -fno-stack-protector   "
 --configure-option=LDFLAGS=" -m32 -mmacosx-version-min=10.5  "
 --configure-option=CPPFLAGS=" -m32  " --gcc-options=" -m32 -mmacosx-
 version-min=10.5 -fno-stack-protector     -m32 -mmacosx-version-min=10.5
 " --configure-option=--with-iconv-includes="/opt/local/include"
 --configure-option=--with-iconv-libraries="/opt/local/lib" --configure-
 option=--with-gmp-includes="/opt/local/include" --configure-option=--with-
 gmp-libraries="/opt/local/lib" --with-gcc="/opt/local/bin/gcc-mp-7"
 --with-ld="/opt/local/bin/ld" --configure-option=--with-cc="/opt/local/bin
 /gcc-mp-7" --with-ar="/opt/local/bin/ar" --with-
 ranlib="/opt/local/bin/ranlib"
 :info:build Configuring ghc-prim-0.3.1.0...
 :info:build ghc-cabal: The program ghc version >=6.4 is required but the
 version of
 :info:build
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4/inplace/bin
 /ghc-stage1
 :info:build could not be determined.
 :info:build make[1]: *** [libraries/ghc-prim/dist-install/package-data.mk]
 Error 1
 :info:build make: *** [all] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.8.4"
 && /usr/bin/make -j4 -w all VERBOSE=1
 :info:build Exit code: 2
 :error:build Failed to build ghc: command execution failed
 :debug:build Error code: CHILDSTATUS 3700 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec -callback
 portprogress::target_progress_callback build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64698#comment:21>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list