Opened 17 months ago

Last modified 13 months ago

#67683 assigned defect

ld64-97: error: 'TARGET_OS_WATCH' is not defined, evaluates to 0

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: snowleopard Cc: cooljeanius (Eric Gallager)
Port: ld64

Description

https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/159634/steps/install-port/logs/stdio

In file included from src/other/ObjectDump.cpp:31:
In file included from src/ld/MachOReaderRelocatable.hpp:43:
In file included from src/ld/parsers/libunwind/DwarfInstructions.hpp:43:
In file included from src/ld/parsers/libunwind/AddressSpace.hpp:38:
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_ld64/ld64-97/work/dyld-655.1.1/include/mach-o/dyld_priv.h:255:5: error: 'TARGET_OS_WATCH' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
#if TARGET_OS_WATCH
    ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_ld64/ld64-97/work/dyld-655.1.1/include/mach-o/dyld_priv.h:270:5: error: 'TARGET_OS_BRIDGE' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
#if TARGET_OS_BRIDGE
    ^

Change History (2)

comment:1 Changed 17 months ago by jmroot (Joshua Root)

That warning has been promoted to an error in newer clang versions. The code is actually fine in this case, but the warning can be silenced by changing #if FOO to #if defined(FOO) && FOO.

comment:2 Changed 13 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.