[GHC] #13091: Build broken on amd64 solaris 11
GHC
ghc-devs at haskell.org
Sat Apr 21 18:31:11 UTC 2018
#13091: Build broken on amd64 solaris 11
-------------------------------------+-------------------------------------
Reporter: kgardas | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 8.0.2
Resolution: | Keywords:
Operating System: Solaris | Architecture: x86_64
Type of failure: Building GHC | (amd64)
failed | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by jwhite):
The immediate cause is the bug described in #15075. When that bug is
fixed, the build still fails on `hsc2hs`:
{{{
"/opt/local/bin/ghc" -o utils/hsc2hs/dist/build/tmp/hsc2hs -hisuf hi -osuf
o -hcsuf hc -static -H32m -O -Wall -package-db
libraries/bootstrapping.conf -hide-all-packages -i -iutils/hsc2hs/.
-iutils/hsc2hs/dist/build -iutils/hsc2hs/dist/build/autogen
-Iutils/hsc2hs/dist/build -Iutils/hsc2hs/dist/build/autogen -optP-
include -optPutils/hsc2hs/dist/build/autogen/cabal_macros.h -package-id
base-4.8.2.0-7097b6a59941ac1c7cd21845d2bb489f -package-id
containers-0.5.6.2-312177b9402c9bc329c058bf8e768a8c -package-id
directory-1.2.2.0-78f4e60e387a622bced41832df453a58 -package-id
filepath-1.4.0.0-f97d1e4aebfd7a03be6980454fe31d6e -package-id
process-1.2.3.0-5572f0ea7a5798559ac3d63d002bf1d4 -XHaskell2010 -no-user-
package-db -rtsopts -odir utils/hsc2hs/dist/build -hidir
utils/hsc2hs/dist/build -stubdir utils/hsc2hs/dist/build -optl-Wl,-m64
-static -H32m -O -Wall -package-db libraries/bootstrapping.conf -hide-
all-packages -i -iutils/hsc2hs/. -iutils/hsc2hs/dist/build
-iutils/hsc2hs/dist/build/autogen -Iutils/hsc2hs/dist/build
-Iutils/hsc2hs/dist/build/autogen -optP-include
-optPutils/hsc2hs/dist/build/autogen/cabal_macros.h -package-id
base-4.8.2.0-7097b6a59941ac1c7cd21845d2bb489f -package-id
containers-0.5.6.2-312177b9402c9bc329c058bf8e768a8c -package-id
directory-1.2.2.0-78f4e60e387a622bced41832df453a58 -package-id
filepath-1.4.0.0-f97d1e4aebfd7a03be6980454fe31d6e -package-id
process-1.2.3.0-5572f0ea7a5798559ac3d63d002bf1d4 -XHaskell2010 -no-user-
package-db -rtsopts utils/hsc2hs/dist/build/Main.o
utils/hsc2hs/dist/build/C.o utils/hsc2hs/dist/build/Common.o
utils/hsc2hs/dist/build/CrossCodegen.o
utils/hsc2hs/dist/build/DirectCodegen.o utils/hsc2hs/dist/build/Flags.o
utils/hsc2hs/dist/build/HSCParser.o utils/hsc2hs/dist/build/UtilsCodegen.o
utils/hsc2hs/dist/build/Paths_hsc2hs.o
ghc: fd:12: hGetContents: does not exist (No such file or directory)
utils/hsc2hs/ghc.mk:15: recipe for target
'utils/hsc2hs/dist/build/tmp/hsc2hs' failed
make[1]: *** [utils/hsc2hs/dist/build/tmp/hsc2hs] Error 2
make[1]: *** Deleting file 'utils/hsc2hs/dist/build/tmp/hsc2hs'
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
}}}
Note on the command line `-optl-Wl,-m64`. The Solaris linker does not
support an `-m64` option. It should be `-64` instead. After fixing that,
the build proceeds, and eventually completes. The following diff fixes
it, after `autoreconf && ./configure`:
{{{
diff --git a/aclocal.m4 b/aclocal.m4
index 7723743..fcf3a47 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -560,7 +560,7 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS],
x86_64-unknown-solaris2)
$2="$$2 -m64"
$3="$$3 -m64"
- $4="$$4 -m64"
+ $4="$$4 -64"
$5="$$5 -m64"
;;
alpha-*)
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13091#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list