Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ghc 7.6.3 fails to build with gcc-ppc-bootstrap 7.0.4 due to libffi bug affecting 10.6.8 #2

Open
barracuda156 opened this issue Dec 26, 2024 · 0 comments

Comments

@barracuda156
Copy link
Contributor

This is specific to 10.6.8:

--->  Configuring ghc-bootstrap
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc-bootstrap/ghc-bootstrap/work/ghc-7.6.3" && ./configure --prefix=/opt/local/share/ghc-bootstrap --with-ghc=/opt/local/share/ghc-ppc-bootstrap/bin/ghc --with-iconv-includes=/opt/local/include --with-iconv-libraries=/opt/local/lib --with-gmp-includes=/opt/local/include --with-gmp-libraries=/opt/local/lib --with-macosx-deployment-target=10.6 --with-gcc=/usr/bin/gcc-4.2 
checking for gfind... no
checking for find... /usr/bin/find
checking for sort... /usr/bin/sort
checking version of ghc... 7.0.4
checking build system type... powerpc-apple-darwin10.8.0
checking host system type... powerpc-apple-darwin10.8.0
checking target system type... powerpc-apple-darwin10.8.0
HOST: powerpc-apple-darwin10.8.0
Build platform inferred as: powerpc-apple-darwin
Host platform inferred as: powerpc-apple-darwin
Target platform inferred as: powerpc-apple-darwin
GHC build  : powerpc-apple-darwin
GHC host   : powerpc-apple-darwin
GHC target : powerpc-apple-darwin
configure: Building in-tree ghc-pwd
ld: in /opt/local/share/ghc-ppc-bootstrap/lib/ghc-7.0.4/libHSffi.a(darwin.o), unsupported encoding in FDE
collect2: ld returned 1 exit status
configure: error: Building ghc-pwd failed
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc-bootstrap/ghc-bootstrap/work/ghc-7.6.3" && ./configure --prefix=/opt/local/share/ghc-bootstrap --with-ghc=/opt/local/share/ghc-ppc-bootstrap/bin/ghc --with-iconv-includes=/opt/local/include --with-iconv-libraries=/opt/local/lib --with-gmp-includes=/opt/local/include --with-gmp-libraries=/opt/local/lib --with-macosx-deployment-target=10.6 --with-gcc=/usr/bin/gcc-4.2 
Exit code: 1

Looks like related to libffi issue, see: https://trac.macports.org/ticket/34385
And: https://trac.macports.org/browser/trunk/dports/lang/gcc44/files/ppc_fde_encoding.diff?rev=93031

Not clear how to fix it though, since ghc-ppc-bootstrap is a pre-built bootstrap compiler, we do not build it from source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant