[OmniOS-discuss] Building Haskell on OmniOS
Michael Mounteney
gate03 at landcroft.co.uk
Mon Nov 17 21:16:17 UTC 2014
On Sun, 16 Nov 2014 17:57:25 -0500
Dan McDonald <danmcd at omniti.com> wrote:
> Have you tried 151012, the current stable release?
That yields a different failure, for which I have no ready explanation:
~/ghc-7.4.2 # gmake install
[...]
/opt/gcc-4.8.1/bin/gcc -E -undef -traditional -P -DINSTALLING -DLIB_DIR='"/opt/ghc-7.4.2/lib/ghc-7.4.2"' -DINCLUDE_DIR='"/opt/ghc-7.4.2/lib/ghc-7.4.2/include"' -DPAPI_INCLUDE_DIR="" -DPAPI_LIB_DIR="" -x c -Iincludes rts/package.conf.in -o rts/package.conf.install.raw
grep -v '^#pragma GCC' rts/package.conf.install.raw | sed -e 's/""//g' -e 's/:[ ]*,/: /g' >rts/package.conf.install
"inplace/bin/ghc-stage1" -fPIC -dynamic -H32m -O -package-name integer-gmp-0.4.0.0 -hide-all-packages -i -ilibraries/integer-gmp/. -ilibraries/integer-gmp/dist-install/build -ilibraries/integer-gmp/dist-install/build/autogen -Ilibraries/integer-gmp/dist-install/build -Ilibraries/integer-gmp/dist-install/build/autogen -Ilibraries/integer-gmp/. -optP-include -optPlibraries/integer-gmp/dist-install/build/autogen/cabal_macros.h -package ghc-prim-0.2.0.0 -package-name integer-gmp -XHaskell98 -XCPP -XMagicHash -XUnboxedTuples -XNoImplicitPrelude -XForeignFunctionInterface -XUnliftedFFITypes -O2 -no-user-package-conf -rtsopts -odir libraries/integer-gmp/dist-install/build -hidir libraries/integer-gmp/dist-install/build -stubdir libraries/integer-gmp/dist-install/build -hisuf dyn_hi -osuf dyn_o -hcsuf dyn_hc libraries/integer-gmp/dist-install/build/GHC/Integer.dyn_o libraries/integer-gmp/dist-install/build/GHC/Integer/GMP/Internals.dyn_o libraries/integer-gmp/dist-insta
ll/build/GHC/Integer/GMP/Prim.dyn_o libraries/integer-gmp/dist-install/build/GHC/Integer/Logarithms.dyn_o libraries/integer-gmp/dist-install/build/GHC/Integer/Logarithms/Internals.dyn_o libraries/integer-gmp/dist-install/build/GHC/Integer/Type.dyn_o libraries/integer-gmp/dist-install/build/cbits/gmp-wrappers.dyn_o libraries/integer-gmp/dist-install/build/cbits/cbits.dyn_o libraries/integer-gmp/gmp/objs/*.o -shared -dynamic -dynload deploy -dylib-install-name /opt/ghc-7.4.2/lib/ghc-7.4.2/`basename "libraries/integer-gmp/dist-install/build/libHSinteger-gmp-0.4.0.0-ghc7.4.2.so" | sed 's/^libHS//;s/[-]ghc.*//'`/`basename "libraries/integer-gmp/dist-install/build/libHSinteger-gmp-0.4.0.0-ghc7.4.2.so"` -no-auto-link-packages -o libraries/integer-gmp/dist-install/build/libHSinteger-gmp-0.4.0.0-ghc7.4.2.so
Undefined first referenced
symbol in file
g0 libraries/integer-gmp/dist-install/build/cbits/gmp-wrappers.dyn_o
__int_encodeFloat libraries/integer-gmp/dist-install/build/GHC/Integer/Type.dyn_o
stg_gc_noregs libraries/integer-gmp/dist-install/build/GHC/Integer/Logarithms/Internals.dyn_o
stg_gc_unbx_r1 libraries/integer-gmp/dist-install/build/GHC/Integer/Type.dyn_o
stg_upd_frame_info libraries/integer-gmp/dist-install/build/GHC/Integer/Logarithms.dyn_o
allocate libraries/integer-gmp/dist-install/build/cbits/cbits.dyn_o
stg_newByteArrayzh libraries/integer-gmp/dist-install/build/GHC/Integer/Logarithms/Internals.dyn_o
stg_CAF_BLACKHOLE_info libraries/integer-gmp/dist-install/build/GHC/Integer/Logarithms/Internals.dyn_o
stg_gc_gen libraries/integer-gmp/dist-install/build/cbits/gmp-wrappers.dyn_o
newCAF libraries/integer-gmp/dist-install/build/GHC/Integer/Logarithms/Internals.dyn_o
stg_bh_upd_frame_info libraries/integer-gmp/dist-install/build/GHC/Integer/Logarithms/Internals.dyn_o
stg_ARR_WORDS_info libraries/integer-gmp/dist-install/build/cbits/gmp-wrappers.dyn_o
__int_encodeDouble libraries/integer-gmp/dist-install/build/GHC/Integer/Type.dyn_o
large_alloc_lim libraries/integer-gmp/dist-install/build/cbits/gmp-wrappers.dyn_o
stg_gc_ut libraries/integer-gmp/dist-install/build/GHC/Integer/Logarithms/Internals.dyn_o
rts_unsafeGetMyCapability libraries/integer-gmp/dist-install/build/cbits/cbits.dyn_o
stg_gc_gen_hp libraries/integer-gmp/dist-install/build/cbits/gmp-wrappers.dyn_o
ld: warning: symbol referencing errors
Text relocation remains referenced
against symbol offset in file
.text (section) 0x2e libraries/integer-gmp/gmp/objs/add_n.o
.text (section) 0x6e libraries/integer-gmp/gmp/objs/add_n.o
__gmpz_add 0x2d5 libraries/integer-gmp/gmp/objs/aors.o
__gmpz_sub 0x2e1 libraries/integer-gmp/gmp/objs/aors.o
[.. thousands more like it..]
vsnprintf 0x2e libraries/integer-gmp/gmp/objs/vasprintf.o
vsprintf 0x62 libraries/integer-gmp/gmp/objs/sprintffuns.o
sscanf 0x51 libraries/integer-gmp/gmp/objs/sscanffuns.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: error: ld returned 1 exit status
gmake[1]: *** [libraries/integer-gmp/dist-install/build/libHSinteger-gmp-0.4.0.0-ghc7.4.2.so] Error 1
gmake: *** [install] Error 2
More information about the OmniOS-discuss
mailing list