Opened 19 years ago

Closed 19 years ago

#4454 closed defect (invalid)

ghc configuration problem

Reported by: jeff@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc:
Port:

Description

On a new machine with Xcode 2.0 just installed from CD - an install of ghc fails, complaining about ".../ghc-6.4/package.conf: no such file or directory". See attached log for details.

% sudo port -d selfupdate <yada yada - everything seems happy>

% sudo port -dv install ghc > build.log 2>&1

DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/lang/ghc DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/lang/ghc DEBUG: Requested variant powerpc is not provided by port ghc. DEBUG: Requested variant darwin is not provided by port ghc. DEBUG: Requested variant macosx is not provided by port ghc. DEBUG: Executing variant darwin_8 provides darwin_8 DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/lang/perl5.8 DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/lang/perl5.8 DEBUG: Searching for dependency: perl5.8 DEBUG: Found Dependency: receipt exists for perl5.8 DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/devel/readline DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/devel/readline DEBUG: Searching for dependency: readline DEBUG: Found Dependency: receipt exists for readline DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/devel/gmp DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/devel/gmp DEBUG: Searching for dependency: gmp DEBUG: Found Dependency: receipt exists for gmp DEBUG: Skipping completed com.apple.main (ghc) DEBUG: Skipping completed com.apple.unarchive (ghc) DEBUG: Skipping completed com.apple.fetch (ghc) DEBUG: Skipping completed com.apple.checksum (ghc) DEBUG: setting option extract.cmd to /usr/bin/bzip2 DEBUG: Skipping completed com.apple.extract (ghc) DEBUG: Skipping completed com.apple.patch (ghc) ---> Configuring ghc DEBUG: Executing proc-pre-com.apple.configure-configure-0 Error: reinplace: couldn't read file "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_ghc/work/ ghc-bootstrap/lib/ghc-6.4/package.conf": no such file or directory Error: Target com.apple.configure returned: reinplace failed Warning: the following items did not execute (for ghc): com.apple.activate com.apple.configure com.apple.build com.apple.destroot com.apple.archive com.apple.install

Change History (6)

comment:1 Changed 19 years ago by gwright@…

Status: newassigned

Hi Jeff,

Does the file (<long_path>/package.conf) referred to in the output below actually exist? If so, I think I understand the issue (a DP quoting problem, in passing a string to reinplace). If not, well, I'll have to think about why your bootstrap compiler isn't unpacking correctly.

-Greg

comment:2 Changed 19 years ago by jeff@…

The file in question does not exist. Here's what does exist:

% ls /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_ghc/work ghc-6.4 happy-1.15

I just tried installing ghc on another machine that I've had for a while (also 10.4.2 w/ Xcode 2.0), and the install is proceeding without a hitch so far. I have no idea what the difference between the two systems might be.

I notice on my newer machine that it isn't trying to fetch ghc-bootstrap even though it's not there. I'm guessing something went wrong on one of my initial attempts to install it, and I've gotten in a bad state. Any suggestions for how to convince port to fetch ghc-bootstrap?

comment:3 Changed 19 years ago by gwright@…

Hi Jeff,

Hmm. That ghc-bootstrap isn't fetched is a very helpful observation. At least it's telling us that the problem is likely not in the portfile at all. Perhaps some of the recent changes to fetching broke something....

I'll try a few experiments. I suspect a quoting problem is at the root of it (like the "-" in ghc-bootstrap).

Thanks, Greg

comment:4 Changed 19 years ago by gwright@…

Hi Jeff,

I just rebuilt and reinstalled my DP infrastructure and "sudo port fetch" retrieved all of the required files. You can try

sudo port clean --all ghc

to clean out all of the downloaded files. This should force a complete re-download of ghc, the bopostrap compiler and happy.

Do you ahppen to still have your original build.log? Could you attach it to the bug report?

Thanks, Greg

comment:5 Changed 19 years ago by jeff@…

The `port clean' did the trick. Thanks for the suggestion.

Unfortunately, I don't have the log. The sequence went something like this... I installed the darwinports binary, tried to install ghc, and got an error something like "you either need a version of ghc to bootstrap from, or you need the .hc files". Eventually I did `port selfupdate' (I didn't do that initially when I installed the binary), and then I started getting the error message about package.conf missing.

Anyway... thanks whoever put together the port for ghc - I finally have a working version of ghc again (the binary on the ghc web site has the evil DISCARD mangler problem).

comment:6 Changed 19 years ago by gwright@…

Resolution: invalid
Status: assignedclosed

Hi Jeff,

Good to hear that it works for you now. I will close the bug as INVALID since there wasn't a bug in the portfile or DP infrastructure. (Although a stronger note in the documentation to run "port selfupdate" and "port clean --all" after encountering a problem is still in order.)

Best Wishes, Greg

Note: See TracTickets for help on using tickets.