[Bug 251480] lang/spidermonkey78: Build fails on 12.2 with system clang 10.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Nov 30 11:27:01 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251480

            Bug ID: 251480
           Summary: lang/spidermonkey78: Build fails on 12.2 with system
                    clang 10.
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: swills at FreeBSD.org
          Reporter: janm at transactionware.com
             Flags: maintainer-feedback?(swills at FreeBSD.org)
          Assignee: swills at FreeBSD.org

When overriding CC to be "clang" and CXX to be "clang++" so that
lang/spidermonkey78 is build with the system Clang 10, the build fails with the
same error as in this bug:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250161

The issue seems to be the --target option. Rerunning the command without the
--target option, or fixing the target value to have a "12.2" suffix works.

Building with llvm80, as in the original bug, removing or fixing the --target
option also made this build step work.

Error output below.


  --- stdout
  TARGET = Some("x86_64-unknown-freebsd")
  OPT_LEVEL = Some("2")
  HOST = Some("x86_64-unknown-freebsd")
  CXX_x86_64-unknown-freebsd = None
  CXX_x86_64_unknown_freebsd = Some(" /usr/bin/clang++ -std=gnu++17")
  CXXFLAGS_x86_64-unknown-freebsd = None
  CXXFLAGS_x86_64_unknown_freebsd =
Some("-I/ports-work/usr/ports/lang/spidermonkey78/work/.build/dist/system_wrappers
-include
/ports-work/usr/ports/lang/spidermonkey78/work/firefox-78.2.0/config/gcc_hidden.h
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -DNDEBUG=1
-DTRIMMED=1 -DEXPORT_JS_API -DMOZ_HAS_MOZGLUE
-I/ports-work/usr/ports/lang/spidermonkey78/work/firefox-78.2.0/js/src/rust
-I/ports-work/usr/ports/lang/spidermonkey78/work/.build/js/src/rust
-I/ports-work/usr/ports/lang/spidermonkey78/work/.build/dist/include
-I/usr/local/include/nspr -I/usr/local/include -fPIC -DMOZILLA_CLIENT -include
/ports-work/usr/ports/lang/spidermonkey78/work/.build/js/src/js-confdefs.h
-Qunused-arguments -I/usr/local/include -isystem /usr/local/include
-Qunused-arguments -Wall -Wbitfield-enum-conversion -Wempty-body
-Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith
-Wshadow-field-in-constructor-modified -Wsign-compare -Wtype-limits
-Wunreachable-code -Wunreachable-code-return -Wwrite-strings
-Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt
-Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis
-Wc++2a-compat -Wcomma -Wimplicit-fallthrough -Wunused-function
-Wunused-variable -Wstring-conversion -Wtautological-overlap-compare
-Wtautological-unsigned-enum-zero-compare -Wtautological-unsigned-zero-compare
-Wno-error=tautological-type-limit-compare -Wno-inline-new-delete
-Wno-error=deprecated-declarations -Wno-error=array-bounds
-Wno-error=backend-plugin -Wno-error=return-std-move
-Wno-error=atomic-alignment -Wno-error=deprecated-copy -Wformat
-Wformat-security -Wno-gnu-zero-variadic-macro-arguments -Wno-noexcept-type
-Wno-unknown-warning-option -fno-sized-deallocation -fno-aligned-new -O2 -pipe
-I/usr/local/include/boost-default -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fno-rtti
-ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pipe -O
-fomit-frame-pointer -funwind-tables -fexperimental-new-pass-manager
-DMOZILLA_CONFIG_H")
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  running: "/usr/bin/clang++" "-std=gnu++17" "-O2" "-ffunction-sections"
"-fdata-sections" "-fPIC" "--target=x86_64-unknown-freebsd"
"-I/ports-work/usr/ports/lang/spidermonkey78/work/.build/dist/system_wrappers"
"-include"
"/ports-work/usr/ports/lang/spidermonkey78/work/firefox-78.2.0/config/gcc_hidden.h"
"-U_FORTIFY_SOURCE" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong"
"-DNDEBUG=1" "-DTRIMMED=1" "-DEXPORT_JS_API" "-DMOZ_HAS_MOZGLUE"
"-I/ports-work/usr/ports/lang/spidermonkey78/work/firefox-78.2.0/js/src/rust"
"-I/ports-work/usr/ports/lang/spidermonkey78/work/.build/js/src/rust"
"-I/ports-work/usr/ports/lang/spidermonkey78/work/.build/dist/include"
"-I/usr/local/include/nspr" "-I/usr/local/include" "-fPIC" "-DMOZILLA_CLIENT"
"-include"
"/ports-work/usr/ports/lang/spidermonkey78/work/.build/js/src/js-confdefs.h"
"-Qunused-arguments" "-I/usr/local/include" "-isystem" "/usr/local/include"
"-Qunused-arguments" "-Wall" "-Wbitfield-enum-conversion" "-Wempty-body"
"-Wignored-qualifiers" "-Woverloaded-virtual" "-Wpointer-arith"
"-Wshadow-field-in-constructor-modified" "-Wsign-compare" "-Wtype-limits"
"-Wunreachable-code" "-Wunreachable-code-return" "-Wwrite-strings"
"-Wno-invalid-offsetof" "-Wclass-varargs" "-Wempty-init-stmt"
"-Wfloat-overflow-conversion" "-Wfloat-zero-conversion" "-Wloop-analysis"
"-Wc++2a-compat" "-Wcomma" "-Wimplicit-fallthrough" "-Wunused-function"
"-Wunused-variable" "-Wstring-conversion" "-Wtautolo@@@                         
                                                              275,0-1       91%
  cargo:warning=#include_next <type_traits>
  cargo:warning=              ^~~~~~~~~~~~~
  cargo:warning=1 error generated.
  exit code: 1

  --- stderr


  error occurred: Command "/usr/bin/clang++" "-std=gnu++17" "-O2"
"-ffunction-sections" "-fdata-sections" "-fPIC"
"--target=x86_64-unknown-freebsd"
"-I/ports-work/usr/ports/lang/spidermonkey78/work/.build/dist/system_wrappers"
"-include"
"/ports-work/usr/ports/lang/spidermonkey78/work/firefox-78.2.0/config/gcc_hidden.h"
"-U_FORTIFY_SOURCE" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong"
"-DNDEBUG=1" "-DTRIMMED=1" "-DEXPORT_JS_API" "-DMOZ_HAS_MOZGLUE"
"-I/ports-work/usr/ports/lang/spidermonkey78/work/firefox-78.2.0/js/src/rust"
"-I/ports-work/usr/ports/lang/spidermonkey78/work/.build/js/src/rust"
"-I/ports-work/usr/ports/lang/spidermonkey78/work/.build/dist/include"
"-I/usr/local/include/nspr" "-I/usr/local/include" "-fPIC" "-DMOZILLA_CLIENT"
"-include"
"/ports-work/usr/ports/lang/spidermonkey78/work/.build/js/src/js-confdefs.h"
"-Qunused-arguments" "-I/usr/local/include" "-isystem" "/usr/local/include"
"-Qunused-arguments" "-Wall" "-Wbitfield-enum-conversion" "-Wempty-body"
"-Wignored-qualifiers" "-Woverloaded-virtual" "-Wpointer-arith"
"-Wshadow-field-in-constructor-modified" "-Wsign-compare" "-Wtype-limits"
"-Wunreachable-code" "-Wunreachable-code-return" "-Wwrite-strings"
"-Wno-invalid-offsetof" "-Wclass-varargs" "-Wempty-init-stmt"
"-Wfloat-overflow-conversion" "-Wfloat-zero-conversion" "-Wloop-analysis"
"-Wc++2a-compat" "-Wcomma" "-Wimplicit-fallthrough" "-Wunused-function"
"-Wunused-variable" "-Wstring-conversion" "-Wtautological-overlap-compare"
"-Wtautological-unsigned-enum-zero-compare"
"-Wtautological-unsigned-zero-compare"
"-Wno-error=tautological-type-limit-compare" "-Wno-inline-new-delete"
"-Wno-error=deprecated-declarations" "-Wno-error=array-bounds"
"-Wno-error=backend-plugin" "-Wno-error=return-std-move"
"-Wno-error=atomic-alignment" "-Wno-error=deprecated-copy" "-Wformat"
"-Wformat-security" "-Wno-gnu-zero-variadic-macro-arguments"
"-Wno-noexcept-type" "-Wno-unknown-warning-option" "-fno-sized-deallocation"
"-fno-aligned-new" "-O2" "-pipe" "-I/usr/local/include/boost-default"
"-fstack-protector-strong" "-isystem" "/usr/local/include"
"-fno-strict-aliasing" "-isystem" "/usr/local/include" "-fno-rtti"
"-ffunction-sections" "-fdata-sections" "-fno-exceptions" "-fno-math-errno"
"-pipe" "-O" "-fomit-frame-pointer" "-funwind-tables"
"-fexperimental-new-pass-manager" "-DMOZILLA_CONFIG_H" "-I"
"/ports-work/usr/ports/lang/spidermonkey78/work/.build/js/src" "-I"
"/ports-work/usr/ports/lang/spidermonkey78/work/.build/dist/include"
"-DMOZ_HAS_MOZGLUE" "-o"
"/ports-work/usr/ports/lang/spidermonkey78/work/.build/x86_64-unknown-freebsd/release/build/mozglue-static-38598c650063714d/out/wrappers.o"
"-c" "wrappers.cpp" with args "clang++" did not execute successfully (status
code exit code: 1).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list