Bug 233706

Summary: ports-mgmt/poudriere: reason for failure becomes bad_C++_code by outputting Mk/Scripts/ports_env.sh to the log
Product: Ports & Packages Reporter: Tatsuki Makino <tatsuki_makino>
Component: Individual Port(s)Assignee: Bryan Drewery <bdrewery>
Status: New ---    
Severity: Affects Only Me CC: ndowens04
Priority: --- Flags: bugzilla: maintainer-feedback? (bdrewery)
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227158
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230759

Description Tatsuki Makino 2018-12-02 04:28:07 UTC
If the jail environment is 10, Mk/Scripts/ports_env.sh returns the following line:

CC_OUTPUT_921dbbb2_65ad290d=error: invalid value 'c++14' in '-std=c++14'
CC_OUTPUT_921dbbb2_f2776b26=error: invalid value 'c++17' in '-std=c++17'
CC_OUTPUT_921dbbb2_160933ec=error: invalid value 'gnu++14' in '-std=gnu++14'
CC_OUTPUT_921dbbb2_fb62803b=error: invalid value 'gnu++17' in '-std=gnu++17'

About that, processonelog.sh returns the reason as bad_C++_code. It does not have enough information.
Comment 1 Nathan 2018-12-02 05:37:28 UTC
(In reply to Tatsuki Makino from comment #0)
It's "normal" I have that in poudriere in mine as well (13-current) and it was like that in older versions and builds don't fail because of it
Comment 2 Tatsuki Makino 2018-12-02 06:39:46 UTC
I do not know when it will be, but 13.x-RELEASE returns CC_OUTPUT_xxxxxxxx_xxxxxxxx=error: invalid value 'c++2?' in '-std=c++2?'.
If the reason for the build failure is a patch (or reasons to appear after reason="bad_C++_code"), poudriere reports the reason bad_C++_code.