New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #11190 (closed defect: fixed)

Opened 5 years ago

Last modified 3 years ago

ghc build fails -- gmake: *** No targets specified and no makefile found.

Reported by: mike@… Owned by: gwright@…
Priority: High Milestone:
Component: ports Version: 1.3.2
Keywords: ghc gmake targets Cc: gwright@…, markd@…
Port:

Description

Can't find the Makefile for some reason. Here is the shell output:

$ uname -sr
Darwin 7.9.0

$ which gmake
/opt/local/bin/gmake

$ gmake --version
GNU Make 3.81
...

$ sudo port -d selfupdate
...

$ port version
Version: 1.320

$ port info ghc
ghc 6.6, Revision 2, lang/ghc (Variants: darwin_6, darwin_7_powerpc, darwin_8_powerpc, darwin_8_i386, noopengl)
...

$ sudo port install ghc
--->  Building ghc
Error: Target com.apple.build returned: shell command "DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib gmake " returned error 2
Command output: gmake: *** No targets specified and no makefile found.  Stop.

Error: Status 1 encountered during processing.

$ port cat ghc | grep -C1 build.target
                build.cmd       gmake
                build.target
        }
--
build   {
        system "DYLD_FALLBACK_LIBRARY_PATH=${prefix}/lib ${build.cmd} ${build.target}"
}

$ head /opt/local/var/db/dports/sources/.../lang/ghc/work/ghc-6.6/Makefile
############################################################################
#
#               This is the top-level Makefile for GHC
#
# Targets:
#
#       bootsrap (DEFAULT)
#               Builds GHC, then builds the libraries,
#               then uses this GHC ("stage 1") to build itself
#               ("stage 2").

The complete path to the Makefile is

/opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/lang/ghc/work/ghc-6.6/Makefile

Let me know if you need more info.

Thanks,

Mike Appleby

Change History

Changed 5 years ago by pipping@…

  • milestone set to Port Bugs

Changed 5 years ago by markd@…

  • cc gwright@… added

Ping maintainer.

Changed 5 years ago by gwright@…

  • status changed from new to assigned
  • owner changed from macports-dev@… to gwright@…
  • severity changed from Crash/data loss to Normal
  • priority changed from Blocker to Important

Hi Mike,

Could you try the latest revision of the ghc portfile and see if it resolves your problem? There have been two fixes since your report.

Please make sure you clean everything before restarting a failed build, i.e., run

sudo port clean ghc

Let me know if it fixed the problem.

Best Wishes, Greg

Changed 5 years ago by markd@…

  • status changed from assigned to closed
  • cc markd@… added
  • resolution set to fixed

Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.