Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#30195 closed defect (fixed)

g95: could not create new link

Reported by: jovo@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: g95

Description (last modified by ryandesign (Ryan Carsten Schmidt))

First tried to upgrade outdated ports, resulting in error on G95. Error remains after uninstall and clean of G95@0.92_1 This on Intel iMac with OS X 10.5.8.

iMac-van-Jo:~ jovo$ sudo port install g95
--->  Computing dependencies for g95
--->  Fetching g95
--->  Attempting to fetch g95_source.tgz from http://lil.fr.distfiles.macports.org/gcc40
--->  Verifying checksum(s) for g95
--->  Extracting g95
Error: Target org.macports.patch returned: could not create new link "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_g95/work/g95-0.92/gcc-4.0.4" since target "../gcc-4.0.4" doesn't exist
Log for g95 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_g95/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Their is a gcc-4.0.4 directory though:

iMac-van-Jo:work johan$ pwd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_g95/work
iMac-van-Jo:work johan$ ls -la
total 8
drwxr-xr-x   5 root  admin   170 14 jul 20:51 .
drwxr-xr-x   3 root  admin   102 14 jul 20:51 ..
-rw-r--r--   1 root  admin    86 14 jul 20:51 .macports.g95.state
drwxr-xr-x  85 root  admin  2890 14 jul 20:51 g95-0.92
drwxrwxrwx  52 1000  100    1768 31 jan  2007 gcc-4.0.4

Attachments (1)

main.log.txt (119.1 KB) - added by jovo@… 13 years ago.
Install g95 Logfile

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by jovo@…

Attachment: main.log.txt added

Install g95 Logfile

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: takeshi@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to takeshi@…
Port: g95 added
Summary: Install G95 results in "could not create new link" errorg95: could not create new link

Remember to use WikiFormatting, please.

comment:2 Changed 13 years ago by jovo@…

Got this to install successfully by using "ln -s" instead of the "file link -symbolic". On instigation of a nabble.com post.

...
#2011-07-16 JvO
pre-patch {
#    file link -symbolic ${worksrcpath}/gcc-${version_gcc} ../gcc-${version_gcc} 
    ln -s ../gcc-${version_gcc} ${worksrcpath}/gcc-${version_gcc}
...
}

comment:3 Changed 13 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

Committed in r80886. Thanks.

comment:4 Changed 13 years ago by jmroot (Joshua Root)

You don't have to shell out for this, as we have a Tcl procedure ln that behaves very similarly to ln(1), including the ability to create links pointing to files that don't exist (yet).

comment:5 Changed 13 years ago by tenomoto (Takeshi Enomoto)

I replaced system with ln procedure in r80923. Thanks.

Note: See TracTickets for help on using tickets.