[MacPorts] #39849: llvm-3.3: error: '_CS_DARWIN_USER_TEMP_DIR' was not declared in this scope
#39849: llvm-3.3: error: '_CS_DARWIN_USER_TEMP_DIR' was not declared in this scope --------------------------+------------------------ Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: tiger | Port: llvm-3.3 --------------------------+------------------------ llvm-3.3 doesn't build on Tiger PPC. -- Ticket URL: <https://trac.macports.org/ticket/39849> MacPorts <http://www.macports.org/> Ports system for OS X
#39849: llvm-3.3: error: '_CS_DARWIN_USER_TEMP_DIR' was not declared in this scope ---------------------------+------------------------ Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: tiger Port: llvm-3.3 | ---------------------------+------------------------ Comment (by ccarey@…): Neither {{{_CS_DARWIN_USER_TEMP_DIR}}} nor {{{_CS_DARWIN_USER_CACHE_DIR}}} are defined in {{{<unistd.h>}}} in PPC Tiger. The simplest fix might be to change line 499 of {{{lib/support/PathV2.cpp}}} from {{{ #ifdef __APPLE__ }}} to {{{ #if defined(__APPLE__) && defined(_CS_DARWIN_USER_TEMP_DIR) && defined(_CS_DARWIN_USER_CACHE_DIR) }}} That change should allow PPC Tiger to use the non-Apple fallbacks in lines 520 through 544. -- Ticket URL: <https://trac.macports.org/ticket/39849#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39849: llvm-3.3: error: '_CS_DARWIN_USER_TEMP_DIR' was not declared in this scope ---------------------------+------------------------ Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: tiger Port: llvm-3.3 | ---------------------------+------------------------ Comment (by jeremyhu@…): Even after fixing this, you'll run into #39761 I'll tackle this after moving the build over to cmake... -- Ticket URL: <https://trac.macports.org/ticket/39849#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39849: llvm-3.3: error: '_CS_DARWIN_USER_TEMP_DIR' was not declared in this scope ---------------------------+------------------------ Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: tiger Port: llvm-3.3 | ---------------------------+------------------------ Comment (by ccarey@…): Replying to [comment:2 jeremyhu@…]:
Even after fixing this, you'll run into #39761
After fixing this locally (and with #39761 now fixed generally), the next error to appear in PPC Tiger is due to clang’s common Sanitizer code presuming that {{{struct stat64}}} is available on all platforms in {{{projects/compiler- rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc}}}. The AddressSanitizer is documented in {{{sanitizer_mac.cc}}} in the same directory as not supporting Leopard due to its lack of 64-bit inodes, so it will also not support Tiger. Whether ThreadSanitizer would support Tiger if the 32-bit ''stat''()-family of calls were to be used there remains to be discovered. -- Ticket URL: <https://trac.macports.org/ticket/39849#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#39849: Tiger: llvm-3.3 fails to build: stat64 and error: '_CS_DARWIN_USER_TEMP_DIR' was not declared in this scope ---------------------------+------------------------ Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: tiger Port: llvm-3.3 | ---------------------------+------------------------ -- Ticket URL: <https://trac.macports.org/ticket/39849#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#39849: Tiger: llvm-3.3 fails to build: stat64 and error: '_CS_DARWIN_USER_TEMP_DIR' was not declared in this scope ---------------------------+------------------------ Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: tiger Port: llvm-3.3 | ---------------------------+------------------------ Comment (by jeremyhu@…): If you have a patch, I'll take it, but if not, I'll be closing this as wontfix in the near future. -- Ticket URL: <https://trac.macports.org/ticket/39849#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#39849: Tiger: llvm-3.3 fails to build: stat64 and error: '_CS_DARWIN_USER_TEMP_DIR' was not declared in this scope ---------------------------+------------------------ Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: wontfix | Keywords: tiger Port: llvm-3.3 | ---------------------------+------------------------ Changes (by jeremyhu@…): * status: new => closed * resolution: => wontfix -- Ticket URL: <https://trac.macports.org/ticket/39849#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts