#60765: xeus, nlohmann-json: error: an attribute list cannot appear here

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

#60765: xeus, nlohmann-json: error: an attribute list cannot appear here

macports-4
#60765: xeus, nlohmann-json: error: an attribute list cannot appear here
------------------------+---------------------------------
 Reporter:  ryandesign  |      Owner:  Schamschula
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.2
 Keywords:              |       Port:  xeus, nlohmann-json
------------------------+---------------------------------
 [https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/118557/steps
 /install-port/logs/stdio xeus does not build]:

 {{{
 /opt/local/include/nlohmann/json.hpp:22424:5: error: an attribute list
 cannot appear here
     JSON_HEDLEY_DEPRECATED_FOR(3.8.0, parse(ptr, ptr + len))
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /opt/local/include/nlohmann/json.hpp:1066:110: note: expanded from macro
 'JSON_HEDLEY_DEPRECATED_FOR'
     #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement)
 JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since "
 #since "; use " #replacement)]])
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /opt/local/include/nlohmann/json.hpp:819:5: note: expanded from macro
 'JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_'
     xpr \
     ^
 }}}

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

Re: #60765: xeus, nlohmann-json: error: an attribute list cannot appear here

macports-4
#60765: xeus, nlohmann-json: error: an attribute list cannot appear here
----------------------------------+-------------------------
  Reporter:  ryandesign           |      Owner:  Schamschula
      Type:  defect               |     Status:  assigned
  Priority:  Normal               |  Milestone:
 Component:  ports                |    Version:  2.6.2
Resolution:                       |   Keywords:
      Port:  xeus, nlohmann-json  |
----------------------------------+-------------------------

Comment (by Schamschula):

 Yosemite? I have no way of testing any potential fixes for this, other
 than throwing things at the build bot.

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

Re: #60765: xeus, nlohmann-json: error: an attribute list cannot appear here

macports-4
In reply to this post by macports-4
#60765: xeus, nlohmann-json: error: an attribute list cannot appear here
----------------------------------+-------------------------
  Reporter:  ryandesign           |      Owner:  Schamschula
      Type:  defect               |     Status:  assigned
  Priority:  Normal               |  Milestone:
 Component:  ports                |    Version:  2.6.2
Resolution:                       |   Keywords:
      Port:  xeus, nlohmann-json  |
----------------------------------+-------------------------

Comment (by ryandesign):

 Yes, Yosemite.

 You can see from the [https://ports.macports.org/port/xeus/summary xeus
 port page] that it built fine on 10.7-10.9 using newer MacPorts clang.

 It failed on 10.10 using Apple clang 7 and failed on 10.11 using Apple
 clang 8.

 It built fine on 10.13 using Apple clang 9.

 10.12 is busy and hasn't built this yet.

 But a good guess might be to blacklist {clang < 900}, if we want to solve
 it by blacklisting.

 Although xeus is the port that failed to build, the file generating the
 error is from nlohmann-json. Maybe that indicates that the fix should be
 in nlohmann-json.

 Maybe the problem should be reported to the upstream developers so that
 they have a chance to weigh in on a fix.

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

Re: #60765: xeus, nlohmann-json: error: an attribute list cannot appear here

macports-4
In reply to this post by macports-4
#60765: xeus, nlohmann-json: error: an attribute list cannot appear here
----------------------------------+-------------------------
  Reporter:  ryandesign           |      Owner:  Schamschula
      Type:  defect               |     Status:  assigned
  Priority:  Normal               |  Milestone:
 Component:  ports                |    Version:  2.6.2
Resolution:                       |   Keywords:
      Port:  xeus, nlohmann-json  |
----------------------------------+-------------------------

Comment (by Schamschula):

 In [changeset:"f7071707a9c1b6f3893abf5caf36c37f3cfdbc28/macports-ports"
 f7071707a9c1b6f3893abf5caf36c37f3cfdbc28/macports-ports] (master):
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="f7071707a9c1b6f3893abf5caf36c37f3cfdbc28"
 xeus: attempt to fix error: an attribute list cannot appear here

 See: https://trac.macports.org/ticket/60765
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/60765#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60765: xeus, nlohmann-json: error: an attribute list cannot appear here

macports-4
In reply to this post by macports-4
#60765: xeus, nlohmann-json: error: an attribute list cannot appear here
----------------------------------+-------------------------
  Reporter:  ryandesign           |      Owner:  Schamschula
      Type:  defect               |     Status:  closed
  Priority:  Normal               |  Milestone:
 Component:  ports                |    Version:  2.6.2
Resolution:  fixed                |   Keywords:
      Port:  xeus, nlohmann-json  |
----------------------------------+-------------------------
Changes (by ryandesign):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 Thanks.

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