Opened 15 years ago
Closed 14 years ago
#20950 closed defect (fixed)
Hugs98 - Build problems on Snow Leopard
Reported by: | maik@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | Cc: | marco.comini@…, odbgza@…, jboyce@…, league@…, jgosmann (Jan Gosmann), forge@…, hvitved@…, brecht.hoflack@…, mfisher@…, jan.kluka@…, t.kunishi@…, fm2209@…, harrismh777@…, macports@…, sonicth, volker.menrad@…, anthony@… | |
Port: | hugs98 |
Description
Port "hugs98" does not build on Snow Leopard:
---> Building hugs98 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_hugs98/work/hugs98-plus-Sep2006" && /usr/bin/make -j2 all " returned error 2 Command output: cd src; /usr/bin/make all make[1]: Nothing to be done for `all'. cd libraries; /usr/bin/make all cd ../cpphs; HUGSFLAGS=-P../libraries/bootlib HUGSDIR=../hugsdir ../src/runhugs -98 ../packages/Cabal/examples/hapax.hs configure --verbose --hugs --prefix='/opt/local' --scratchdir='../hugsdir/packages/cpphs' --with-compiler=../src/ffihugs runhugs: Error occurred ERROR "../libraries/bootlib/Foreign/Ptr.hs" - Error while importing DLL "../libraries/bootlib/Foreign/Ptr.so": dlopen(../libraries/bootlib/Foreign/Ptr.so, 9): image not found make[1]: *** [../hugsdir/programs/cpphs/Main.hs] Error 1 make: *** [all] Error 2 Error: Status 1 encountered during processing.
I succeeded in building this last week when I was still on Leopard.
Attachments (3)
Change History (42)
comment:1 Changed 15 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to mww@… |
---|
comment:2 Changed 15 years ago by mellon85@…
Cc: | mellon85@… added |
---|
comment:8 follow-up: 10 Changed 15 years ago by jgosmann (Jan Gosmann)
Same probleme here, but my error output is a bit longer. Don't know whether it helps:
---> Building hugs98 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_hugs98/work/hugs98-plus-Sep2006" && /usr/bin/make -j2 all " returned error 2 Command output: Undefined symbols: "_environ", referenced from: ___hscore_environ in ccBZxucU.o ld: symbol(s) not found collect2: ld returned 1 exit status runhugs: Error occurred ERROR "libraries/bootlib/Foreign/Ptr.hs" - Error while running compilation command '/usr/bin/gcc-4.2 -DNDEBUG=1 -O2 -arch x86_64 -no-cpp-precomp -I/opt/local/include -L/opt/local/lib -flat_namespace -shared -fPIC -D__HUGS__ "-Ihugsdir/include" -o "libraries/bootlib/Foreign/Ptr.so" "libraries/bootlib/Foreign/Ptr.c" -Ipackages/base/include -Ighc/includes packages/base/cbits/PrelIOUtils.c' Undefined symbols: "___hscore_renameFile", referenced from: _hugsprim___hscore_renameFile_17 in ccrpcmNC.o "___hscore_readdir", referenced from: _hugsprim___hscore_readdir_40 in ccrpcmNC.o ld: symbol(s) not found collect2: ld returned 1 exit status runhugs: Error occurred ERROR "libraries/bootlib/System/Posix/Internals.hs" - Error while running compilation command '/usr/bin/gcc-4.2 -DNDEBUG=1 -O2 -arch x86_64 -no-cpp-precomp -I/opt/local/include -L/opt/local/lib -flat_namespace -shared -fPIC -D__HUGS__ "-Ihugsdir/include" -o "libraries/bootlib/System/Posix/Internals.so" "libraries/bootlib/System/Posix/Internals.c" -Ipackages/base/include -Ighc/includes' echo timestamp for bootlib >bootlib/.stamp cd ../cpphs; HUGSFLAGS=-P../libraries/bootlib HUGSDIR=../hugsdir ../src/runhugs -98 ../packages/Cabal/examples/hapax.hs configure --verbose --hugs --prefix='/opt/local' --scratchdir='../hugsdir/packages/cpphs' --with-compiler=../src/ffihugs runhugs: Error occurred ERROR "../libraries/bootlib/Foreign/Ptr.hs" - Error while importing DLL "../libraries/bootlib/Foreign/Ptr.so": dlopen(../libraries/bootlib/Foreign/Ptr.so, 9): image not found make[1]: *** [../hugsdir/programs/cpphs/Main.hs] Error 1 make: *** [all] Error 2 Error: Status 1 encountered during processing.
Changed 15 years ago by harrismh777@…
Attachment: | hugs_build_errors.pdf added |
---|
hugs98 build log from snow leopard /same errors as macport build
comment:19 Changed 15 years ago by harrismh777@…
See above attachment: hugs_build_errors.pdf
I received the same hugs98 build errors manually building from sources, as well as using macports. The pdf file attached above is the complete output from a hugs98 manual build on Snow Leopard (11-15-2009) including configure and make. Macports build produces the same bad results.
This is not good, obviously. On the positive side GHCi does run on Snow Leopard... although, the interactive is somewhat different than hugs98.
Is someone working on this... what is the status?
Thanks, kind regards, m harris
comment:20 follow-up: 21 Changed 15 years ago by knyttv@…
Same problem as stated before. Is there at least someone who cares?
comment:21 Changed 15 years ago by jmroot (Joshua Root)
comment:26 Changed 15 years ago by jgosmann (Jan Gosmann)
I just posted this problem to the hugs mailing list. Hopefully, they can help.
Changed 14 years ago by volker.menrad@…
Attachment: | patch-libraries-tools-make-bootlib.diff added |
---|
Fixed the 'Undefined symbols: "renameFile_17' and 'readdir_40' errors
comment:29 follow-up: 32 Changed 14 years ago by volker.menrad@…
I just added a patch. With this patch hugs compiles and installs on my version of Snow Leopard.
comment:32 follow-up: 33 Changed 14 years ago by odbgza@…
Replying to volker.menrad@…:
I just added a patch. With this patch hugs compiles and installs on my version of Snow Leopard.
I'm not quite sure how to apply it. Please help me
Changed 14 years ago by volker.menrad@…
Attachment: | patch-hugs98-Portfile.diff added |
---|
comment:33 Changed 14 years ago by volker.menrad@…
Replying to odbgza@…:
Replying to volker.menrad@…:
I just added a patch. With this patch hugs compiles and installs on my version of Snow Leopard.
I'm not quite sure how to apply it. Please help me
Hi,
you need to issue the following commands in the command line, assuming that you downloaded the patch files to your Downloads directory.
cd $(ports dir hugs98) sudo cp ~/Downloads/patch-libraries-tools-make-bootlib.diff files sudo patch < ~/Downloads/patch-hugs98-Portfile.diff sudo port clean hugs98 sudo port install hugs98
this should do it.
comment:34 follow-ups: 35 36 Changed 14 years ago by volker.menrad@…
fixed formatting
cd $(port dir hugs98) sudo cp ~/Downloads/patch-libraries-tools-make-bootlib.diff files sudo patch < ~/Downloads/patch-hugs98-Portfile.diff sudo port clean hugs98 sudo port install hugs98
comment:35 Changed 14 years ago by odbgza@…
Replying to volker.menrad@…:
fixed formatting
cd $(port dir hugs98) sudo cp ~/Downloads/patch-libraries-tools-make-bootlib.diff files sudo patch < ~/Downloads/patch-hugs98-Portfile.diff sudo port clean hugs98 sudo port install hugs98
Thank-you.
comment:36 Changed 14 years ago by anthony@…
Replying to volker.menrad@…:
fixed formatting
cd $(port dir hugs98) sudo cp ~/Downloads/patch-libraries-tools-make-bootlib.diff files sudo patch < ~/Downloads/patch-hugs98-Portfile.diff sudo port clean hugs98 sudo port install hugs98
can confirm that the patches and these instructions resolve the build error on 10.6
comment:38 Changed 14 years ago by jgosmann (Jan Gosmann)
I can also confirm that the patch solves the build error.
Has it already been submitted to the hugs project? It would be best to fix the problem there. (However I am unsure whether there is still anyone active. The last commit seems to be years old.) Until the fix is in the hugs project it would be great to have it in the port.
comment:39 Changed 14 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Committed in r73826. If a patch is added to a ticket and it seems to go unnoticed, you can ask for someone to commit it on the mailing list. Please do send this upstream if you haven't already.
Cc Me!