Opened 9 years ago

Last modified 3 years ago

#31300 new defect

mercury @11.0 +universal mmc fails with inappropriate paths

Reported by: evan-dickinson Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia), ryandesign (Ryan Schmidt)
Port: mercury

Description

MacOS: 10.6.8. Xcode: 3.2.6.

When I run the Mercury Compiler, I get the error below. /opt/local/bin/mmc sets two environment variables that reference the build directory.

% mmc --make hello
/opt/local/bin/mmc: line 26: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_mercury/mercury/work/destroot/opt/local/bin/mercury_compile: No such file or directory
/opt/local/bin/mmc: line 26: exec: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_mercury/mercury/work/destroot/opt/local/bin/mercury_compile: cannot execute: No such file or directory

The mercury_compile binary also has the build path hard-coded into it. I suspect that the configure step went wrong...

Change History (6)

comment:1 Changed 9 years ago by evan-dickinson

Cc: dickinsoe@… added

Cc Me!

comment:2 Changed 9 years ago by ryandesign (Ryan Schmidt)

Cc: jeremyhu@… added; dickinsoe@… removed

comment:3 Changed 9 years ago by ryandesign (Ryan Schmidt)

Looks like tons of files installed by the port, including dynamic libraries, have the destroot path in them. I don't even know where to begin to unravel this mess.

comment:4 Changed 8 years ago by ryandesign (Ryan Schmidt)

Cc: ryandesign@… added

The current upstream version seems to support DESTDIR so we should be able to fix this by updating the port and removing all the custom destdir stuff. See #36408. It doesn't build for me yet though, so help with that would be appreciated.

comment:5 Changed 3 years ago by jmroot (Joshua Root)

Is this still a problem with the current version (14.01.1)?

comment:6 Changed 3 years ago by evan-dickinson

Looks like it's working now. I was able to successfully install 14.01.1_1 with MacPorts 2.4.2 on macOS Sierra.

Note: See TracTickets for help on using tickets.