[MacPorts] #53152: ${prefix}/bin is not in PATH during build
MacPorts
noreply at macports.org
Sun Dec 25 03:55:10 CET 2016
#53152: ${prefix}/bin is not in PATH during build
-----------------------+-----------------
Reporter: jeremyhu | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: scons |
-----------------------+-----------------
Changes (by jeremyhu):
* component: base => ports
* port: => scons
Comment:
Looks like a bug in scons.
scons seems to not be honoring $PATH in the calling environment:
{{{
$ which ar
/opt/local/bin/ar
$ /opt/local/bin/scons -j6 APR=/opt/local APU=/opt/local
OPENSSL=/opt/local PREFIX=/opt/local CC=/opt/local/bin/clang-mp-3.9
CPPFLAGS="-I/opt/local/include" CFLAGS="-Os -arch x86_64 -arch i386"
LINKFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64
-arch i386" CC="MACOSX_DEPLOYMENT_TARGET=10.6 /opt/local/bin/clang-mp-3.9"
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
ar rc libserf-1.a context.o incoming.o outgoing.o ssltunnel.o
buckets/aggregate_buckets.o buckets/allocator.o buckets/barrier_buckets.o
buckets/buckets.o buckets/bwtp_buckets.o buckets/chunk_buckets.o
buckets/dechunk_buckets.o buckets/deflate_buckets.o buckets/file_buckets.o
buckets/headers_buckets.o buckets/iovec_buckets.o buckets/limit_buckets.o
buckets/mmap_buckets.o buckets/request_buckets.o
buckets/response_body_buckets.o buckets/response_buckets.o
buckets/simple_buckets.o buckets/socket_buckets.o buckets/ssl_buckets.o
auth/auth.o auth/auth_basic.o auth/auth_digest.o auth/auth_spnego.o
auth/auth_spnego_gss.o auth/auth_spnego_sspi.o
/usr/bin/ranlib: for object: libserf-1.a(x86_64) architecture context.o
1482632001 502 80 100644 16904 `
???? malformed object (unknown load command 2)
/usr/bin/ranlib: for object: libserf-1.a(i386) architecture context.o
1482632001 502 80 100644 16904 `
???? malformed object (unknown load command 2)
/usr/bin/ranlib: for object: libserf-1.a(x86_64) architecture buckets.o
1482632002 502 80 100644 17356 `
???? malformed object (unknown load command 2)
/usr/bin/ranlib: for object: libserf-1.a(i386) architecture buckets.o
1482632002 502 80 100644 17356 `
???? malformed object (unknown load command 2)
/usr/bin/ranlib: for object: libserf-1.a(x86_64) architecture
dechunk_buckets.o malformed object (unknown load command 2)
/usr/bin/ranlib: for object: libserf-1.a(i386) architecture
dechunk_buckets.o malformed object (unknown load command 2)
/usr/bin/ranlib: for object: libserf-1.a(x86_64) architecture
deflate_buckets.o malformed object (unknown load command 2)
/usr/bin/ranlib: for object: libserf-1.a(i386) architecture
deflate_buckets.o malformed object (unknown load command 2)
/usr/bin/ranlib: for object: libserf-1.a(x86_64) architecture
headers_buckets.o malformed object (unknown load command 2)
/usr/bin/ranlib: for object: libserf-1.a(i386) architecture
headers_buckets.o malformed object (unknown load command 2)
/usr/bin/ranlib: for object: libserf-1.a(x86_64) architecture
response_buckets.o malformed object (unknown load command 2)
/usr/bin/ranlib: for object: libserf-1.a(i386) architecture
response_buckets.o malformed object (unknown load command 2)
/usr/bin/ranlib: for object: libserf-1.a(x86_64) architecture
ssl_buckets.o 1482632004 502 80 100644 62640 `
???? malformed object (unknown load command 2)
/usr/bin/ranlib: for object: libserf-1.a(i386) architecture ssl_buckets.o
1482632004 502 80 100644 62640 `
???? malformed object (unknown load command 2)
/usr/bin/ranlib: library member: libserf-1.a(context.o) is not an object
file (not allowed in a library with multiple architectures)
/usr/bin/ranlib: library member: libserf-1.a(buckets.o) is not an object
file (not allowed in a library with multiple architectures)
/usr/bin/ranlib: library member: libserf-1.a(dechunk_buckets.o) is not an
object file (not allowed in a library with multiple architectures)
/usr/bin/ranlib: library member: libserf-1.a(deflate_buckets.o) is not an
object file (not allowed in a library with multiple architectures)
/usr/bin/ranlib: library member: libserf-1.a(headers_buckets.o) is not an
object file (not allowed in a library with multiple architectures)
/usr/bin/ranlib: library member: libserf-1.a(response_buckets.o) is not an
object file (not allowed in a library with multiple architectures)
/usr/bin/ranlib: library member: libserf-1.a(ssl_buckets.o) is not an
object file (not allowed in a library with multiple architectures)
ar: internal ranlib command failed
scons: `libserf-1.dylib' is up to date.
scons: `serf-1.pc' is up to date.
scons: *** [libserf-1.a] Error 1
scons: building terminated because of errors.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/53152#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list