[MacPorts] #70842: lfortran port fails to compile
MacPorts
noreply at macports.org
Fri Sep 20 21:50:47 UTC 2024
#70842: lfortran port fails to compile
----------------------------------+---------------------------------
Reporter: kwolcott | Owner: MarcusCalhoun-Lopez
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: sequoia
Port: lfortran, rapidjson |
----------------------------------+---------------------------------
Changes (by ryandesign):
* status: new => assigned
* cc: barracuda156 (added)
* keywords: => sequoia
* owner: (none) => MarcusCalhoun-Lopez
* port: lfortran => lfortran, rapidjson
Old description:
> const SizeType' (aka 'const unsigned int')
> 319 | GenericStringRef& operator=(const GenericStringRef& rhs) { s
> = rhs.s; length = rhs.length; }
> |
> ~~~~~~ ^
> /opt/local/include/rapidjson/document.h:325:20: note: non-static data
> member 'length' declared const here
> 325 | const SizeType length; //!< length of the string (excluding
> the trailing NULL terminator)
> | ~~~~~~~~~~~~~~~^~~~~~
> 1 error generated.
> make[2]: *** [src/lfortran/CMakeFiles/lfortran_lib.dir/ast_to_json.cpp.o]
> Error 1
>
> MacOS 15.0
New description:
{{{
const SizeType' (aka 'const unsigned int')
319 | GenericStringRef& operator=(const GenericStringRef& rhs) { s =
rhs.s; length = rhs.length; }
|
~~~~~~ ^
/opt/local/include/rapidjson/document.h:325:20: note: non-static data
member 'length' declared const here
325 | const SizeType length; //!< length of the string (excluding
the trailing NULL terminator)
| ~~~~~~~~~~~~~~~^~~~~~
1 error generated.
make[2]: *** [src/lfortran/CMakeFiles/lfortran_lib.dir/ast_to_json.cpp.o]
Error 1
}}}
MacOS 15.0
--
Comment:
Remember to use WikiFormatting.
You didn't show what the error was but from your log it was:
{{{
/opt/local/include/rapidjson/document.h:319:82: error: cannot assign to
non-static data member 'length' with const-qualified type 'const SizeType'
(aka 'const unsigned int')
}}}
That sounds like a bug in the port that provides the file
/opt/local/include/rapidjson/document.h, namely rapidjson.
--
Ticket URL: <https://trac.macports.org/ticket/70842#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list