[MacPorts] #46287: harfbuzz-icu 0.9.37_0 build fails on 10.7.5
#46287: harfbuzz-icu 0.9.37_0 build fails on 10.7.5 ------------------------+-------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: harfbuzz-icu ------------------------+-------------------------------- harfbuzz-icu build fails with this error: libtool: compile: /usr/bin/llvm-g++-4.2 -DHAVE_CONFIG_H -I. -I.. -D_THREAD_SAFE -pthread -I./hb-ucdn -I/opt/local/include -pipe -Os -arch x86_64 -fno-rtti -fno-exceptions -Wcast-align -fvisibility-inlines-hidden --std=c++0x -MT libharfbuzz_la-hb-blob.lo -MD -MP -MF .deps /libharfbuzz_la-hb-blob.Tpo -c hb-blob.cc -fno-common -DPIC -o .libs /libharfbuzz_la-hb-blob.o cc1plus: error: unrecognized command line option "-std=c++0x" I am not sure if complier complains about extra "-" in --std=c++0x. -- Ticket URL: <https://trac.macports.org/ticket/46287> MacPorts <https://www.macports.org/> Ports system for OS X
#46287: harfbuzz-icu 0.9.37_0 build fails on 10.7.5 ---------------------------+-------------------------- Reporter: macports@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: harfbuzz-icu | ---------------------------+-------------------------- Changes (by jmr@…): * cc: macports@… (removed) * owner: macports-tickets@… => ryandesign@… Comment: Please remember to Cc the maintainer when you create a ticket. -- Ticket URL: <https://trac.macports.org/ticket/46287#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#46287: harfbuzz-icu 0.9.37_0 build fails on 10.7.5 ---------------------------+-------------------------- Reporter: macports@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: harfbuzz-icu | ---------------------------+-------------------------- Description changed by ryandesign@…: Old description:
harfbuzz-icu build fails with this error:
libtool: compile: /usr/bin/llvm-g++-4.2 -DHAVE_CONFIG_H -I. -I.. -D_THREAD_SAFE -pthread -I./hb-ucdn -I/opt/local/include -pipe -Os -arch x86_64 -fno-rtti -fno-exceptions -Wcast-align -fvisibility-inlines-hidden --std=c++0x -MT libharfbuzz_la-hb-blob.lo -MD -MP -MF .deps /libharfbuzz_la-hb-blob.Tpo -c hb-blob.cc -fno-common -DPIC -o .libs /libharfbuzz_la-hb-blob.o cc1plus: error: unrecognized command line option "-std=c++0x"
I am not sure if complier complains about extra "-" in --std=c++0x.
New description: harfbuzz-icu build fails with this error: {{{ libtool: compile: /usr/bin/llvm-g++-4.2 -DHAVE_CONFIG_H -I. -I.. -D_THREAD_SAFE -pthread -I./hb-ucdn -I/opt/local/include -pipe -Os -arch x86_64 -fno-rtti -fno-exceptions -Wcast-align -fvisibility-inlines-hidden --std=c++0x -MT libharfbuzz_la-hb-blob.lo -MD -MP -MF .deps /libharfbuzz_la-hb-blob.Tpo -c hb-blob.cc -fno-common -DPIC -o .libs /libharfbuzz_la-hb-blob.o cc1plus: error: unrecognized command line option "-std=c++0x" }}} I am not sure if complier complains about extra "-" in --std=c++0x. -- -- Ticket URL: <https://trac.macports.org/ticket/46287#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#46287: harfbuzz-icu 0.9.37_0 build fails on 10.7.5 ---------------------------+-------------------------- Reporter: macports@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: harfbuzz-icu | ---------------------------+-------------------------- Comment (by ryandesign@…): What version of Xcode are you using? Most (all?) versions of Xcode on Lion should be using clang, not llvm-gcc-4.2. -- Ticket URL: <https://trac.macports.org/ticket/46287#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#46287: harfbuzz-icu 0.9.37_0 build fails on 10.7.5 -------------------------------+-------------------------- Reporter: macports@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: harfbuzz-icu icu | -------------------------------+-------------------------- Changes (by ryandesign@…): * port: harfbuzz-icu => harfbuzz-icu icu Comment: `--std=c++0x` does not appear in the harfbuzz source code, but does appear in the pkg-config files installed by the icu port. You're right, that extra leading hyphen does look suspicious. -- Ticket URL: <https://trac.macports.org/ticket/46287#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#46287: harfbuzz-icu 0.9.37_0 build fails on 10.7.5 -------------------------------+-------------------------- Reporter: macports@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: harfbuzz-icu icu | -------------------------------+-------------------------- Comment (by ryandesign@…): But llvm-g++-4.2 probably just doesn't support the C11 standard that `-std=c++0x` calls for. It seems wrong that icu is putting that flag in its pkg-config files. icu cannot know whether the compiler used to compile something using those pkg-config files supports C11 or not. -- Ticket URL: <https://trac.macports.org/ticket/46287#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#46287: harfbuzz-icu 0.9.37_0 build fails on 10.7.5 -------------------------------+-------------------------- Reporter: macports@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: harfbuzz-icu icu | -------------------------------+-------------------------- Comment (by ryandesign@…): The typo in the argument (`--std` should be `-std`) is already reported upstream: http://bugs.icu-project.org/trac/ticket/11413 -- Ticket URL: <https://trac.macports.org/ticket/46287#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#46287: harfbuzz-icu 0.9.37_0 build fails on 10.7.5 -------------------------------+-------------------------- Reporter: macports@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: harfbuzz-icu icu | -------------------------------+-------------------------- Comment (by ryandesign@…): Replying to [comment:6 ryandesign@…]:
It seems wrong that icu is putting that flag in its pkg-config files. icu cannot know whether the compiler used to compile something using those pkg-config files supports C++11 or not.
I have reported this problem upstream: http://bugs.icu- project.org/trac/ticket/11455 -- Ticket URL: <https://trac.macports.org/ticket/46287#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#46287: harfbuzz-icu 0.9.37_0 build fails on 10.7.5 -------------------------------+-------------------------- Reporter: macports@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: harfbuzz-icu icu | -------------------------------+-------------------------- Comment (by macports@…): Replying to [comment:4 ryandesign@…]:
What version of Xcode are you using? Most (all?) versions of Xcode on Lion should be using clang, not llvm-gcc-4.2.
{{{ Xcode 4.2.1 Build version 4D502 }}} -- Ticket URL: <https://trac.macports.org/ticket/46287#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#46287: harfbuzz-icu 0.9.37_0 build fails on 10.7.5 -------------------------------+-------------------------- Reporter: macports@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: harfbuzz-icu icu | -------------------------------+-------------------------- Comment (by ryandesign@…): Replying to [comment:9 macports@…]:
Replying to [comment:4 ryandesign@…]:
What version of Xcode are you using?
{{{ Xcode 4.2.1 Build version 4D502 }}}
You should update to Xcode 4.6.3.
Most (all?) versions of Xcode on Lion should be using clang, not llvm- gcc-4.2.
I had forgotten that Xcode 4.1 was the first version for Lion, which did not include clang, so it defaulted to llvm-gcc-4.2. In addition, in r118085 we changed the default compiler in MacPorts for Xcode 4.2.x from clang to llvm-gcc-4.2. This was meant to help Snow Leopard, where Xcode 4.2 is an unusual configuration, not well tested, and the only one that was defaulting to clang, and a very old version of clang at that. -- Ticket URL: <https://trac.macports.org/ticket/46287#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#46287: harfbuzz-icu 0.9.37_0 build fails on 10.7.5 -------------------------------+-------------------------- Reporter: macports@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: harfbuzz-icu icu | -------------------------------+-------------------------- Comment (by ryandesign@…): Replying to [comment:10 ryandesign@…]:
I had forgotten that Xcode 4.1 was the first version for Lion, which did not include clang, so it defaulted to llvm-gcc-4.2.
Well, that's wrong: clang existed in Xcode 4.1, we just weren't defaulting to it because it was still early in clang's development and at that time llvm-gcc-4.2 still worked better. -- Ticket URL: <https://trac.macports.org/ticket/46287#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#46287: harfbuzz-icu @0.9.37_0: cc1plus: error: unrecognized command line option "-std=c++0x" -------------------------------+-------------------------- Reporter: macports@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: lion Port: harfbuzz-icu icu | -------------------------------+-------------------------- Changes (by ryandesign@…): * cc: tim@…, desmith@… (added) * keywords: => lion * status: new => assigned Comment: Has duplicates #48719, #50254, #50695. As mentioned [comment:6 above], this is an icu bug. The upstream bug report has not yet been closed, so [ticket:49614 updating icu to 56.1] probably won't help. I can try to patch icu to fix this. This problem should only affect users of Xcode versions 4.0 through 4.2 inclusive, which are the only ones where MacPorts defaults to using llvm-g++-4.2. On Snow Leopard, it is recommended to use Xcode 3.2.6, and on Lion it is recommended to use Xcode 4.6.3; neither of those should experience this problem. -- Ticket URL: <https://trac.macports.org/ticket/46287#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts