Opened 5 years ago

Closed 5 years ago

#59323 closed defect (fixed)

jtc @1.7.4: error: invalid value 'c++14' in '-std=c++14'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version: 2.6.1
Keywords: Cc:
Port: jtc

Description

error: invalid value 'c++14' in '-std=c++14':

--->  Building jtc
DEBUG: Executing org.macports.build (jtc)
DEBUG: Environment: 
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_textproc_jtc/jtc/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
DEVELOPER_DIR='/Library/Developer/CommandLineTools'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.9'
Executing:  cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_textproc_jtc/jtc/work/jtc-1.74" && /usr/bin/clang++ jtc.cpp -o jtc -Wall -std=c++14 -Ofast 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_textproc_jtc/jtc/work/jtc-1.74" && /usr/bin/clang++ jtc.cpp -o jtc -Wall -std=c++14 -Ofast 
error: invalid value 'c++14' in '-std=c++14'
Command failed:  cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_textproc_jtc/jtc/work/jtc-1.74" && /usr/bin/clang++ jtc.cpp -o jtc -Wall -std=c++14 -Ofast 
Exit code: 1

Maybe use compiler.cxx_standard 2014 to make MacPorts pick a newer compiler.

Change History (4)

comment:1 Changed 5 years ago by herbygillot (Herby Gillot)

Understood, thanks @ryandesign. PR here: https://github.com/macports/macports-ports/pull/5516

comment:2 Changed 5 years ago by herbygillot (Herby Gillot)

So I think we're still failing in 10.9 even with the compiler.cxx_standard 2014 directive.

comment:3 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Here is the latest build log which does indeed show the same failure. It still shows /usr/bin/clang++ being used. The log does not mention anything about blacklisting. I am not familiar with how the new compiler.cxx_standard option works so I cannot offer any suggestions for debugging this.

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

Resolution: fixed
Status: assignedclosed

In c6a9404a5f7a179860d8fd1bcef44321e724f374/macports-ports (master):

jtc: Work around C++14 compiler selection bug

See: https://github.com/macports/macports-base/pull/162
Closes: #59323

Note: See TracTickets for help on using tickets.