Opened 8 years ago

Closed 6 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@…, jan@…, 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)

hugs_build_errors.pdf (67.5 KB) - added by harrismh777@… 7 years ago.
hugs98 build log from snow leopard /same errors as macport build
patch-libraries-tools-make-bootlib.diff (438 bytes) - added by volker.menrad@… 7 years ago.
Fixed the 'Undefined symbols: "renameFile_17' and 'readdir_40' errors
patch-hugs98-Portfile.diff (440 bytes) - added by volker.menrad@… 7 years ago.

Download all attachments as: .zip

Change History (42)

comment:1 Changed 8 years ago by mf2k (Frank Schima)

  • Owner changed from macports-tickets@… to mww@…

comment:2 Changed 8 years ago by mellon85@…

  • Cc mellon85@… added

Cc Me!

comment:3 Changed 8 years ago by marco.comini@…

  • Cc marco.comini@… added

Cc Me!

comment:4 Changed 8 years ago by odbgza@…

  • Cc odbgza@… added

Cc Me!

comment:5 Changed 8 years ago by jboyce@…

  • Cc jboyce@… added

Cc Me!

comment:6 Changed 8 years ago by league@…

  • Cc league@… added

Cc Me!

comment:7 Changed 8 years ago by jan@…

  • Cc jan@… added

Cc Me!

comment:8 follow-up: Changed 8 years ago by jan@…

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.

comment:9 Changed 8 years ago by forge@…

  • Cc forge@… added

Cc Me!

comment:10 in reply to: ↑ 8 Changed 8 years ago by jriely@…

Cc Me!

comment:11 Changed 8 years ago by hvitved@…

  • Cc hvitved@… added

Cc Me!

comment:12 Changed 8 years ago by brecht.hoflack@…

  • Cc brecht.hoflack@… added

Cc Me!

comment:13 Changed 8 years ago by sanssecours@…

  • Cc sanssecours@… added

Cc Me!

comment:14 Changed 8 years ago by mfisher@…

  • Cc mfisher@… added

Cc Me!

comment:15 Changed 7 years ago by jan.kluka@…

  • Cc jan.kluka@… added

Cc Me!

comment:16 Changed 7 years ago by t.kunishi@…

  • Cc t.kunishi@… added

Cc Me!

comment:17 Changed 7 years ago by fm2209@…

  • Cc fm2209@… added

Cc Me!

comment:18 Changed 7 years ago by harrismh777@…

  • Cc harrismh777@… added

Cc Me!

Changed 7 years ago by harrismh777@…

hugs98 build log from snow leopard /same errors as macport build

comment:19 Changed 7 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: Changed 7 years ago by knyttv@…

Same problem as stated before. Is there at least someone who cares?

comment:21 in reply to: ↑ 20 Changed 7 years ago by jmroot (Joshua Root)

Replying to knyttv@…:

Same problem as stated before. Is there at least someone who cares?

The previous comment indicates it is an upstream bug, perhaps you should ask them?

Also, r61500.

comment:22 Changed 7 years ago by macports@…

  • Cc macports@… added

Cc Me!

comment:23 Changed 7 years ago by sonicth

  • Cc mike.vasiljevs@… added

Cc Me!

comment:24 Changed 7 years ago by sonicth

is maintainer still around!?

comment:25 Changed 7 years ago by sanssecours@…

  • Cc sanssecours@… removed

Cc Me!

comment:26 Changed 7 years ago by jan@…

I just posted this problem to the hugs mailing list. Hopefully, they can help.

comment:27 Changed 7 years ago by mellon85@…

  • Cc mellon85@… removed

Cc Me!

comment:28 Changed 7 years ago by sanssecours@…

  • Cc sanssecours@… added

Cc Me!

Changed 7 years ago by volker.menrad@…

Fixed the 'Undefined symbols: "renameFile_17' and 'readdir_40' errors

comment:29 follow-up: Changed 7 years ago by volker.menrad@…

I just added a patch. With this patch hugs compiles and installs on my version of Snow Leopard.

comment:30 Changed 7 years ago by volker.menrad@…

  • Cc volker.menrad@… added

Cc Me!

comment:31 Changed 7 years ago by sanssecours@…

  • Cc sanssecours@… removed

Cc Me!

comment:32 in reply to: ↑ 29 ; follow-up: Changed 7 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 7 years ago by volker.menrad@…

comment:33 in reply to: ↑ 32 Changed 7 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: Changed 7 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 in reply to: ↑ 34 Changed 7 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 in reply to: ↑ 34 Changed 7 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:37 Changed 7 years ago by anthony@…

  • Cc anthony@… added

Cc Me!

comment:38 Changed 6 years ago by jan@…

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 6 years ago by jmroot (Joshua Root)

  • Resolution set to fixed
  • Status changed from new to 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.

Note: See TracTickets for help on using tickets.