Bug 1729760 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Mac OS 11.4, non-artifact build, latest tip
The error from the `./mach build` output:

```
2:35.73   running: "/Users/owlish/.mozbuild/clang/bin/clang++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-apple-darwin" "--sysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" "-std=gnu++17" "-DMOZILLA_CONFIG_H" "-I" "glsl-optimizer/include" "-I" "glsl-optimizer/src/mesa" "-I" "glsl-optimizer/src/mapi" "-I" "glsl-optimizer/src/compiler" "-I" "glsl-optimizer/src/compiler/glsl" "-I" "glsl-optimizer/src/gallium/auxiliary" "-I" "glsl-optimizer/src/gallium/include" "-I" "glsl-optimizer/src" "-I" "glsl-optimizer/src/util" "-D__STDC_FORMAT_MACROS" "-DHAVE_PTHREAD" "-DHAVE_TIMESPEC_GET" "-DMOZ_INCLUDE_MOZALLOC_H" "-Dmozilla_throw_gcc_h" "-o" "/Users/owlish/code/gecko/obj-x86_64-unknown-linux-android/release/build/glslopt-a5682f2bddabc4bc/out/glsl-optimizer/src/compiler/glsl_types.o" "-c" "glsl-optimizer/src/compiler/glsl_types.cpp"
 2:35.73   cargo:warning=clang-12: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
 2:35.73   cargo:warning=In file included from glsl-optimizer/src/compiler/glsl_types.cpp:26:
 2:35.73   cargo:warning=In file included from glsl-optimizer/src/compiler/glsl/glsl_parser_extras.h:34:
 2:35.73   cargo:warning=glsl-optimizer/src/compiler/glsl/glsl_symbol_table.h:28:10: fatal error: 'new' file not found
 2:35.73   cargo:warning=#include <new>
 2:35.73   cargo:warning=         ^~~~~
 2:35.73   cargo:warning=1 error generated.
 2:35.73   exit status: 1
 2:35.73   --- stderr
 2:35.73   error occurred: Command "/Users/owlish/.mozbuild/clang/bin/clang++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-apple-darwin" "--sysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" "-std=gnu++17" "-DMOZILLA_CONFIG_H" "-I" "glsl-optimizer/include" "-I" "glsl-optimizer/src/mesa" "-I" "glsl-optimizer/src/mapi" "-I" "glsl-optimizer/src/compiler" "-I" "glsl-optimizer/src/compiler/glsl" "-I" "glsl-optimizer/src/gallium/auxiliary" "-I" "glsl-optimizer/src/gallium/include" "-I" "glsl-optimizer/src" "-I" "glsl-optimizer/src/util" "-D__STDC_FORMAT_MACROS" "-DHAVE_PTHREAD" "-DHAVE_TIMESPEC_GET" "-DMOZ_INCLUDE_MOZALLOC_H" "-Dmozilla_throw_gcc_h" "-o" "/Users/owlish/code/gecko/obj-x86_64-unknown-linux-android/release/build/glslopt-a5682f2bddabc4bc/out/glsl-optimizer/src/compiler/glsl_types.o" "-c" "glsl-optimizer/src/compiler/glsl_types.cpp" with args "clang++" did not execute successfully (status code exit status: 1).
 2:35.73 warning: build failed, waiting for other jobs to finish...```
```
I tried clobber, bootstrap, deleting object directories, resetting emulator (just in case), specifying `“-stdlib=libc++”` in the `CFLAGS` and `CXXFLAGS` variables, setting various values in `HOST_CC` / `HOST_CXX` / `CC` / `CXX` variables, overriding `CXX_x86_64_apple_darwin` variable - nothing helped.

Finally, I tried working off of an older commit - a random one from August 23 and a random one from August 10 - on the latter I was able to build.

jrmuizel is also able to reproduce the error.
Mac OS 11.4, non-artifact build, latest tip
The error from the `./mach build` output:

```
2:35.73   running: "/Users/owlish/.mozbuild/clang/bin/clang++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-apple-darwin" "--sysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" "-std=gnu++17" "-DMOZILLA_CONFIG_H" "-I" "glsl-optimizer/include" "-I" "glsl-optimizer/src/mesa" "-I" "glsl-optimizer/src/mapi" "-I" "glsl-optimizer/src/compiler" "-I" "glsl-optimizer/src/compiler/glsl" "-I" "glsl-optimizer/src/gallium/auxiliary" "-I" "glsl-optimizer/src/gallium/include" "-I" "glsl-optimizer/src" "-I" "glsl-optimizer/src/util" "-D__STDC_FORMAT_MACROS" "-DHAVE_PTHREAD" "-DHAVE_TIMESPEC_GET" "-DMOZ_INCLUDE_MOZALLOC_H" "-Dmozilla_throw_gcc_h" "-o" "/Users/owlish/code/gecko/obj-x86_64-unknown-linux-android/release/build/glslopt-a5682f2bddabc4bc/out/glsl-optimizer/src/compiler/glsl_types.o" "-c" "glsl-optimizer/src/compiler/glsl_types.cpp"
 2:35.73   cargo:warning=clang-12: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
 2:35.73   cargo:warning=In file included from glsl-optimizer/src/compiler/glsl_types.cpp:26:
 2:35.73   cargo:warning=In file included from glsl-optimizer/src/compiler/glsl/glsl_parser_extras.h:34:
 2:35.73   cargo:warning=glsl-optimizer/src/compiler/glsl/glsl_symbol_table.h:28:10: fatal error: 'new' file not found
 2:35.73   cargo:warning=#include <new>
 2:35.73   cargo:warning=         ^~~~~
 2:35.73   cargo:warning=1 error generated.
 2:35.73   exit status: 1
 2:35.73   --- stderr
 2:35.73   error occurred: Command "/Users/owlish/.mozbuild/clang/bin/clang++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-apple-darwin" "--sysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" "-std=gnu++17" "-DMOZILLA_CONFIG_H" "-I" "glsl-optimizer/include" "-I" "glsl-optimizer/src/mesa" "-I" "glsl-optimizer/src/mapi" "-I" "glsl-optimizer/src/compiler" "-I" "glsl-optimizer/src/compiler/glsl" "-I" "glsl-optimizer/src/gallium/auxiliary" "-I" "glsl-optimizer/src/gallium/include" "-I" "glsl-optimizer/src" "-I" "glsl-optimizer/src/util" "-D__STDC_FORMAT_MACROS" "-DHAVE_PTHREAD" "-DHAVE_TIMESPEC_GET" "-DMOZ_INCLUDE_MOZALLOC_H" "-Dmozilla_throw_gcc_h" "-o" "/Users/owlish/code/gecko/obj-x86_64-unknown-linux-android/release/build/glslopt-a5682f2bddabc4bc/out/glsl-optimizer/src/compiler/glsl_types.o" "-c" "glsl-optimizer/src/compiler/glsl_types.cpp" with args "clang++" did not execute successfully (status code exit status: 1).
 2:35.73 warning: build failed, waiting for other jobs to finish...```
```
I tried clobber, bootstrap, deleting object directories, resetting emulator (just in case), specifying `“-stdlib=libc++”` in the `CFLAGS` and `CXXFLAGS` variables, setting various values in `HOST_CC` / `HOST_CXX` / `CC` / `CXX` variables, overriding `CXX_x86_64_apple_darwin` variable, updating xcode - nothing helped.

Finally, I tried working off of an older commit - a random one from August 23 and a random one from August 10 - on the latter I was able to build.

jrmuizel is also able to reproduce the error.

Back to Bug 1729760 Comment 0