Opened 10 months ago

Closed 8 months ago

#67828 closed defect (fixed)

lldb-1[1-4]: Error: Macro '__STDC_LIMIT_MACROS' redefined

Reported by: jmroot (Joshua Root) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia), catap (Kirill A. Korinsky)
Port: lldb-11 lldb-12 lldb-13 lldb-14

Description

These are failing to build on all supported platforms.

llvm-project-14.0.6.src/lldb/bindings/interfaces.swig:5: Error: Macro '__STDC_LIMIT_MACROS' redefined,
:1: Error: previous definition of '__STDC_LIMIT_MACROS'.

The previous definition of the macro is from the command line: -D__STDC_LIMIT_MACROS

Attachments (1)

lldb-14-macOS13-arm64.log (238.5 KB) - added by jmroot (Joshua Root) 10 months ago.

Download all attachments as: .zip

Change History (8)

Changed 10 months ago by jmroot (Joshua Root)

Attachment: lldb-14-macOS13-arm64.log added

comment:1 Changed 8 months ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:2 Changed 8 months ago by mascguy (Christopher Nielsen)

Cc: catap added; mascguy removed
Owner: set to mascguy
Status: newassigned

I'll try to fix this over the next few days, assuming it's relatively straightforward.

comment:3 in reply to:  2 Changed 8 months ago by mascguy (Christopher Nielsen)

comment:4 Changed 8 months ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In c743c0d2b667bc4e3e1d6692613b24e5055983af/macports-ports (master):

lldb-{11..14}: patch for stdc_xxx_macros

Fixes: #67828

comment:5 Changed 8 months ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: closedreopened

It looks like we also have an unrelated issue, this time related to SWIG:

.../lldb-13/work/build/bindings/python/LLDBWrapPython.cpp:
error: non-const lvalue reference to type 'lldb::FileSP' (aka 'shared_ptr<lldb_private::File>')
cannot bind to a value of unrelated type 'SwigValueWrapper<std::shared_ptr<lldb_private::File>>'
    lldb::FileSP &sp = result;
                  ^    ~~~~~~

Upstream patch:

https://bugzilla.redhat.com/show_bug.cgi?id=2128646

comment:6 Changed 8 months ago by Christopher Nielsen <mascguy@…>

In b235513eaa622560e857b03bbfa57ea93aafc807/macports-ports (master):

lldb-{11..14}: patch for swig lvalue issue

See: #67828

comment:7 Changed 8 months ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: reopenedclosed

Looks good now, closing as fixed.

Note: See TracTickets for help on using tickets.