Opened 8 years ago

Closed 8 years ago

#50254 closed defect (duplicate)

harfbuzz-icu @1.1.2: error: unrecognized command line option "-std=c++0x"

Reported by: fortran_cc@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: lion Cc: ykzhou@…
Port: harfbuzz-icu

Description (last modified by ryandesign (Ryan Carsten Schmidt))

--->  Computing dependencies for harfbuzz-icu
--->  Building harfbuzz-icu
Error: org.macports.build for port harfbuzz-icu returned: command execution failed
Please see the log file for port harfbuzz-icu for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_harfbuzz/harfbuzz-icu/main.log
Error: Problem while installing harfbuzz-icu

Attachments (1)

main.log (11.3 KB) - added by fortran_cc@… 8 years ago.
main.log

Download all attachments as: .zip

Change History (7)

Changed 8 years ago by fortran_cc@…

Attachment: main.log added

main.log

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

Description: modified (diff)
Owner: changed from macports-tickets@… to ryandesign@…
Port: harfbuzz-icu added
Summary: Error: org.macports.build for port harfbuzz-icu returned: command execution failedharfbuzz-icu @1.1.2: error: unrecognized command line option "-std=c++0x"

I see that you're on Lion, that MacPorts has chosen to use the llvm-g++ compiler, and that it does not understand the "-std=c++0x" flag. I am not surprised llvm-g++ doesn't understand that flag, but I am surprised MacPorts chose to use llvm-g++. What version of Xcode is installed (find out by getting info on Xcode.app), and what version of clang? (find out by running "clang -v")

comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:3 in reply to:  2 Changed 8 years ago by ykzhou@…

Replying to ryandesign@…:

I had the same error.

here are the xcode info:

  Version:	4.2.1 (4D502)
  Location:	/Developer
  Applications:
  Xcode:	4.2.1 (834)
  Instruments:	4.2 (4233)
  Dashcode:	3.0.2 (336)
  SDKs:
  Mac OS X:
  10.6:	(10K549)
  10.7:	(11C63)
%clang -v
Apple clang version 3.0 (tags/Apple/clang-211.12) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix

The xcode I have is based on gcc-4.2. I do have a newer version gcc49 installed using 'sudo port install gcc49'. Even after adding /opt/local/bin to the beginning of my $PATH, the configure still could not find (or use?) the newer compiler.

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ykzhou@… added

ykzhou: It is intentional that MacPorts does not use a compiler you have installed or selected.

Can you upgrade to a newer version of Xcode? The latest that is compatible with OS X 10.7 is 4.6.3.

comment:5 Changed 8 years ago by fortran_cc@…

thank you.

installing xcode 4.6.3 solved the compiler problem. now my macport is back to normal.

comment:6 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: lion added
Resolution: duplicate
Status: newclosed

Duplicate of #46287.

Note: See TracTickets for help on using tickets.