Opened 7 years ago

Closed 7 years ago

Last modified 2 years ago

#52990 closed defect (fixed)

g95 install failed on Mac OS Sierra 10.12.1

Reported by: AliceBreeveld Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.3.5
Keywords: sierra Cc:
Port: g95

Description

I have tried cleaning, uninstalling, removing any gfortran from my computer and any g95 references. I repeatedly get this:

/Users/aab$ sudo port install g95
--->  Computing dependencies for g95
--->  Fetching archive for g95
--->  Attempting to fetch g95-0.93_4.darwin_16.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/g95
--->  Attempting to fetch g95-0.93_4.darwin_16.x86_64.tbz2 from https://packages.macports.org/g95
--->  Attempting to fetch g95-0.93_4.darwin_16.x86_64.tbz2 from http://lil.fr.packages.macports.org/g95
--->  Fetching distfiles for g95
--->  Verifying checksums for g95
--->  Extracting g95
--->  Applying patches to g95
--->  Configuring g95
Error: org.macports.configure for port g95 returned: command execution failed
Please see the log file for port g95 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_g95/g95/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port g95 failed

Attachments (1)

main.log (6.5 MB) - added by AliceBreeveld 7 years ago.
Log file for port g95

Change History (6)

Changed 7 years ago by AliceBreeveld

Attachment: main.log added

Log file for port g95

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

Owner: set to tenomoto
Status: newassigned
:info:configure ../../../libgomp/config/posix/time.c: In function 'omp_get_wtime':
:info:configure ../../../libgomp/config/posix/time.c:56: warning: implicit declaration of function 'clock_gettime'
:info:configure ../../../libgomp/config/posix/time.c:56: error: 'CLOCK_REALTIME' undeclared (first use in this function)
:info:configure ../../../libgomp/config/posix/time.c:56: error: (Each undeclared identifier is reported only once
:info:configure ../../../libgomp/config/posix/time.c:56: error: for each function it appears in.)
:info:configure ../../../libgomp/config/posix/time.c: In function 'omp_get_wtick':
:info:configure ../../../libgomp/config/posix/time.c:73: warning: implicit declaration of function 'clock_getres'
:info:configure ../../../libgomp/config/posix/time.c:73: error: 'CLOCK_REALTIME' undeclared (first use in this function)
:info:configure make[4]: *** [time.lo] Error 1
:info:configure make[3]: *** [all-recursive] Error 1
:info:configure make[2]: *** [all] Error 2
:info:configure make[1]: *** [all-target-libgomp] Error 2
:info:configure make: *** [all] Error 2

comment:2 Changed 7 years ago by JohnPritchard (Johnny P)

Hi, in the hope that the following is useful...

This ticket is now six months old. And there are three new tickets reporting the same problem, #54108, #54109 & #54155.

The problem seems to be simply that two comments at the beginning of the file libf95/math/x87.S which start with "##" are being mis-intrepretted somehow and producing "unexpected token at start of statement" errors.

The two lines are:

 ## Some of the code here is transliterated from the x87 glibc code
 ## originally written by J.T. Conklin and Ulrich Drepper.

If one simply encloses these in /* ... */ the problem (appears) to be solved, i.e.

/*
 ## Some of the code here is transliterated from the x87 glibc code
 ## originally written by J.T. Conklin and Ulrich Drepper.
*/

I can provide the modified Portfile and the patch file which implements this fix.

Best regards

John Pritchard

comment:3 Changed 7 years ago by JohnPritchard (Johnny P)

Actually, this particular ticket seems to be slightly different from the other three ( #54108, #54109 & #54155 ) as this one is about failure during configure, whereas the other three are about failure during compilation.

My solution above is for the case of failure during compilation.

I suspect though (since we are at 10.12.4) that there is no longer an issue during configuration, just the problem during compilation.

Cheers John

comment:4 Changed 7 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: assignedclosed

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

Keywords: sierra added

Has duplicate #54427.

Note: See TracTickets for help on using tickets.