Opened 16 years ago

Last modified 10 years ago

#17800 new defect

Failed to build hmake

Reported by: gggg.iiiii@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: thomas@…, gwright@…, ryandesign (Ryan Carsten Schmidt), xuchunyang (Chunyang Xu)
Port: hmake

Description (last modified by jmroot (Joshua Root))

I have been trying to build hmake with no success. My ports are up-to-date.

--->  Fetching hmake
--->  Verifying checksum(s) for hmake
--->  Extracting hmake
--->  Applying patches to hmake
--->  Configuring hmake
--->  Building hmake
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_hmake/work/hmake-3.14" && make all " returned error 2
Command output:   or --package-conf can be used to act on another database
  entirely. When multiple of these options are given, the rightmost
  one is used as the database to act upon.

  Commands that query the package database (list, latest, describe,
  field) operate on the list of databases specified by the flags
  --user, --global, and --package-conf.  If none of these flags are
  given, the default is --global --user.

 The following optional flags are also accepted:

           --user                  use the current user's package database
           --global                use the global package database
  -f FILE  --package-conf=FILE     use the specified package config file
           --global-conf=FILE      location of the global package config
           --no-user-package-conf  never read the user package database
           --force                 ignore missing dependencies, directories, and libraries
           --force-files           ignore missing directories and libraries only
  -g       --auto-ghci-libs        automatically build libs for GHCi (with register)
  -?       --help                  display this help and exit
  -V       --version               output version information and exit
           --simple-output         print output in easy-to-parse format for some commands
           --names-only            only print package names, not versions; can only be used with list --simple-output
           --ignore-case           ignore case for substring matching

MkConfig: user error (Command (/opt/local/bin/ghc-pkg-6.10.1 -l) failed)
hmake-config: compiler not known:
  'ghc'
make[1]: *** [config] Error 2
make: *** [targets/ix86-Darwin-9.6.0/hmake-ghc] Error 2

Error: Status 1 encountered during processing.
ghais-issas-macbook:~ ghais$ sudo port clean hmake
--->  Cleaning hmake
ghais-issas-macbook:~ ghais$ sudo port install hmake
--->  Fetching hmake
--->  Verifying checksum(s) for hmake
--->  Extracting hmake
--->  Applying patches to hmake
--->  Configuring hmake
--->  Building hmake
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_hmake/work/hmake-3.14" && make all " returned error 2
Command output:   or --package-conf can be used to act on another database
  entirely. When multiple of these options are given, the rightmost
  one is used as the database to act upon.

  Commands that query the package database (list, latest, describe,
  field) operate on the list of databases specified by the flags
  --user, --global, and --package-conf.  If none of these flags are
  given, the default is --global --user.

 The following optional flags are also accepted:

           --user                  use the current user's package database
           --global                use the global package database
  -f FILE  --package-conf=FILE     use the specified package config file
           --global-conf=FILE      location of the global package config
           --no-user-package-conf  never read the user package database
           --force                 ignore missing dependencies, directories, and libraries
           --force-files           ignore missing directories and libraries only
  -g       --auto-ghci-libs        automatically build libs for GHCi (with register)
  -?       --help                  display this help and exit
  -V       --version               output version information and exit
           --simple-output         print output in easy-to-parse format for some commands
           --names-only            only print package names, not versions; can only be used with list --simple-output
           --ignore-case           ignore case for substring matching

MkConfig: user error (Command (/opt/local/bin/ghc-pkg-6.10.1 -l) failed)
hmake-config: compiler not known:
  'ghc'
make[1]: *** [config] Error 2
make: *** [targets/ix86-Darwin-9.6.0/hmake-ghc] Error 2

Error: Status 1 encountered during processing.

I am kind of new to macport, previously a debian user, if there is anything else needed form me please let me know.

Change History (8)

comment:1 Changed 16 years ago by gggg.iiiii@…

Cc: gggg.iiiii@… added

Cc Me!

comment:2 Changed 16 years ago by jmroot (Joshua Root)

Cc: gggg.iiiii@… removed
Description: modified (diff)
Port: hmake added

comment:3 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:4 Changed 15 years ago by thomas@…

To fix this bug, the following patch must be applied to the current hmake version :

http://darcs.haskell.org/nhc98/_darcs/patches/20081016151427-6871e-7c2c619f1ed51fea901aafe447fedbab3673d51f.gz

This teaches hmake the new ghc-pkg syntax.

comment:5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: thomas@… gwright@… ryandesign@… added

Thanks Thomas. I committed the patch in r55446 and now I get past the error originally reported in this ticket, but it still doesn't build completely:

/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_hmake/work/hmake-3.14/script/hmake -hc=ghc HInteractive -d/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_hmake/work/hmake-3.14/targets/ix86-Darwin8/obj/interpreter \
         -i../hmake  -package base -package readline -DUSE_READLINE=1 -I/mp/include -L/mp/lib -lreadline

Warning: package(s) readline not available (according to ghc-pkg)
MkProg: Can't find module System.Console.Readline in user directories
        .
        /mp/include
        ../hmake
  Or in installed libraries/packages at
        /mp/lib/ghc-6.10.1/base-3.0.3.0
        /mp/lib/ghc-6.10.1/base-4.0.0.0
        /mp/lib/ghc-6.10.1/haskell98-1.0.1.0
        /mp/lib/ghc-6.10.1/base-4.0.0.0
        /mp/lib/ghc-6.10.1/base-3.0.3.0
  Asked for by: SimpleLineEditor.hs
  Fix using the -I, -P, or -package flags.

Stop - hmake dependency error.

Maybe our resident ghc expert Greg will have some insight.

comment:6 Changed 10 years ago by xuchunyang (Chunyang Xu)

Cc: xuchunyang56@… added

Cc Me!

comment:7 Changed 10 years ago by abigail.lauren@…

Cc: abigail.lauren@… added

Cc Me!

comment:8 Changed 10 years ago by abigail.lauren@…

Cc: abigail.lauren@… removed

Cc Me!

Note: See TracTickets for help on using tickets.