#66980 closed defect (fixed)

lldb-9.0 @9.0.2: Error: Macro '__STDC_LIMIT_MACROS' redefined

Reported by: clintolsen (Clint Olsen) Owned by: kencu (Ken)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: monterey ventura Cc:
Port: lldb-9.0

Description

One big fixed, another one revealed:

:info:build /opt/local/bin/swig -c++ -shadow -python -threads -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/lldb-9.0/work/llvm-9.0.1.src/tools/lldb/include -I. -D__STDC_L
IMIT_MACROS -D__STDC_CONSTANT_MACROS -outdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/lldb-9.0/work/build/tools/lldb/scripts -o /opt/local/var/macports/build/_opt_loca
l_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/lldb-9.0/work/build/tools/lldb/scripts/LLDBWrapPython.cpp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_
ports_lang_llvm-9.0/lldb-9.0/work/llvm-9.0.1.src/tools/lldb/scripts/lldb.swig
:info:build make[2]: *** [tools/lldb/scripts/LLDBWrapPython.cpp] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/lldb-9.0/work/build'
:info:build make[1]: *** [tools/lldb/scripts/CMakeFiles/swig_wrapper.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....

Attachments (1)

main.log (1.4 MB) - added by clintolsen (Clint Olsen) 14 months ago.
main.log

Download all attachments as: .zip

Change History (4)

Changed 14 months ago by clintolsen (Clint Olsen)

Attachment: main.log added

main.log

comment:1 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: ventura added
Summary: lldb-9.0 fails to buildlldb-9.0 @9.0.2: Error: Macro '__STDC_LIMIT_MACROS' redefined

The error in the log is:

:info:build ERROR:root:swig failed with error code 1: stdout=, stderr=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/lldb-9.0/work/llvm-9.0.1.src/tools/lldb/scripts/lldb.swig:182: Error: Macro '__STDC_LIMIT_MACROS' redefined,
:info:build :1: Error: previous definition of '__STDC_LIMIT_MACROS'.
:info:build ERROR:root:command line:
:info:build /opt/local/bin/swig -c++ -shadow -python -threads -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/lldb-9.0/work/llvm-9.0.1.src/tools/lldb/include -I. -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -outdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/lldb-9.0/work/build/tools/lldb/scripts -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/lldb-9.0/work/build/tools/lldb/scripts/LLDBWrapPython.cpp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/lldb-9.0/work/llvm-9.0.1.src/tools/lldb/scripts/lldb.swig
:info:build make[2]: *** [tools/lldb/scripts/LLDBWrapPython.cpp] Error 1

We see the same problem on our Ventura x86_64 build machine.

Is there a reason why you need a version as old as this? The current stable version is lldb-15 and it shows successful builds.

comment:2 Changed 14 months ago by clintolsen (Clint Olsen)

Honestly I have no idea how lldb-9.0 got pulled in. Perhaps it was a botched port migration when I moved to this new Macbook. I've uninstalled it for now. If you think this is outside of the support window you could mark the port as deprecated?

comment:3 Changed 14 months ago by kencu (Ken)

Owner: set to kencu
Resolution: fixed
Status: newclosed

In 1370c74a3dbf038ccaf824022ba7c3317b536c60/macports-ports (master):

lldb-9.0: disable on Ventura+

closes: #66980

Note: See TracTickets for help on using tickets.