Quantcast

[MacPorts] #52990: g95 install failed on Mac OS Sierra 10.12.1

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[MacPorts] #52990: g95 install failed on Mac OS Sierra 10.12.1

MacPorts
#52990: g95 install failed on Mac OS Sierra 10.12.1
---------------------------+-------------------
 Reporter:  AliceBreeveld  |      Owner:
     Type:  defect         |     Status:  new
 Priority:  Normal         |  Milestone:
Component:  ports          |    Version:  2.3.5
 Keywords:                 |       Port:  g95
---------------------------+-------------------
 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
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/52990>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #52990: g95 install failed on Mac OS Sierra 10.12.1

MacPorts
#52990: g95 install failed on Mac OS Sierra 10.12.1
----------------------------+-------------------
  Reporter:  AliceBreeveld  |      Owner:
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.3.5
Resolution:                 |   Keywords:
      Port:  g95            |
----------------------------+-------------------
Changes (by AliceBreeveld):

 * Attachment "main.log" added.

 Log file for port g95

--
Ticket URL: <https://trac.macports.org/ticket/52990>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #52990: g95 install failed on Mac OS Sierra 10.12.1

MacPorts
In reply to this post by MacPorts
#52990: g95 install failed on Mac OS Sierra 10.12.1
----------------------------+----------------------
  Reporter:  AliceBreeveld  |      Owner:  tenomoto
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.3.5
Resolution:                 |   Keywords:
      Port:  g95            |
----------------------------+----------------------
Changes (by ryandesign):

 * status:  new => assigned
 * owner:   => tenomoto


Comment:

 {{{
 :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
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/52990#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #52990: g95 install failed on Mac OS Sierra 10.12.1

MacPorts
In reply to this post by MacPorts
#52990: g95 install failed on Mac OS Sierra 10.12.1
----------------------------+----------------------
  Reporter:  AliceBreeveld  |      Owner:  tenomoto
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.3.5
Resolution:                 |   Keywords:
      Port:  g95            |
----------------------------+----------------------

Comment (by JohnPritchard):

 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

--
Ticket URL: <https://trac.macports.org/ticket/52990#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #52990: g95 install failed on Mac OS Sierra 10.12.1

MacPorts
In reply to this post by MacPorts
#52990: g95 install failed on Mac OS Sierra 10.12.1
----------------------------+----------------------
  Reporter:  AliceBreeveld  |      Owner:  tenomoto
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.3.5
Resolution:                 |   Keywords:
      Port:  g95            |
----------------------------+----------------------

Comment (by JohnPritchard):

 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

--
Ticket URL: <https://trac.macports.org/ticket/52990#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Loading...