Opened 3 hours ago

Last modified 3 hours ago

#70842 assigned defect

lfortran port fails to compile

Reported by: kwolcott Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: sequoia Cc: barracuda156
Port: lfortran, rapidjson

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

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

Attachments (1)

lfortran_port_build_failure.log.bz2 (12.5 KB) - added by kwolcott 3 hours ago.

Download all attachments as: .zip

Change History (2)

Changed 3 hours ago by kwolcott

comment:1 Changed 3 hours ago by ryandesign (Ryan Carsten Schmidt)

Cc: barracuda156 added
Description: modified (diff)
Keywords: sequoia added
Owner: set to MarcusCalhoun-Lopez
Port: rapidjson added
Status: newassigned

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.

Note: See TracTickets for help on using tickets.