Opened 7 weeks ago

Last modified 9 days 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 7 weeks ago.

Download all attachments as: .zip

Change History (3)

Changed 7 weeks ago by kwolcott

comment:1 Changed 7 weeks 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.

comment:2 Changed 9 days ago by kwolcott

Looks like it is working now.

Note: See TracTickets for help on using tickets.