Opened 13 years ago

Closed 13 years ago

#33412 closed defect (duplicate)

clang-3.1 build fails due to unused function in Leopard

Reported by: yaseppochi (Stephen J. Turnbull) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: clang-3.1

Description

clang-3.1 @3.1-r151504

mi_zone_locked is not used on Mac OS X < 10.6. With -Werror, this aborts the build on Leopard.

The definition at l.301 of projects/compiler-rt/lib/asan/asan_malloc_mac.cc needs to be wrapped in

#if defined(MAC_OS_X_VERSION_10_6) && \
    MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
// definition
#endif

With this change the build succeeds.

Change History (4)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to jeremyhu@…
Port: clang-3.1 added

Please remember to fill in the Port field and to Cc the maintainer of that port.

comment:2 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Can you please post your full build log. Also, you have a suggested fix, so please post your patch.

comment:3 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Ok, I think I see what you're saying. It's unfortunate that it's built with -Werror...

comment:4 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: duplicate
Status: newclosed

Filed upstream: http://llvm.org/bugs/show_bug.cgi?id=12136 Marking as "duplicate" since we don't have an "upstream to fix" resolution.

Note: See TracTickets for help on using tickets.