Open Bug 1839324 Opened 1 year ago Updated 1 year ago

Firefox fails to build on GCC 13.1.1, problem with sysroot-x86_64-linux-gnu ?

Categories

(Firefox Build System :: General, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: stransky, Unassigned)

References

(Blocks 2 open bugs)

Details

Firefox fails to build on GCC 13.1.1. Latest nightly / Fedora 38 box.

 0:02.24 In file included from /home/komat/.mozbuild/sysroot-x86_64-linux-gnu/usr/include/c++/8/memory:80,
 0:02.24                  from /raid/src/third_party/wasm2c/include/wabt/common.h:28,
 0:02.24                  from /raid/src/third_party/wasm2c/include/wabt/binary.h:20,
 0:02.24                  from /raid/src/third_party/wasm2c/include/wabt/binary-reader.h:24,
 0:02.24                  from /raid/src/third_party/wasm2c/include/wabt/binary-reader-logging.h:20,
 0:02.24                  from /raid/src/third_party/wasm2c/src/binary-reader-logging.cc:17:
 0:02.24 /home/komat/.mozbuild/sysroot-x86_64-linux-gnu/usr/include/c++/8/bits/unique_ptr.h:415:15: error: expected identifier before ‘__remove_cv’
 0:02.24   415 |         using __remove_cv = typename remove_cv<_Up>::type;
 0:02.24       |               ^~~~~~~~~~~
 0:02.24 /home/komat/.mozbuild/sysroot-x86_64-linux-gnu/usr/include/c++/8/bits/unique_ptr.h:415:27: error: expected ‘(’ before ‘=’ token
 0:02.24   415 |         using __remove_cv = typename remove_cv<_Up>::type;
 0:02.24       |                           ^
 0:02.24       |                           (
 0:02.24 /home/komat/.mozbuild/sysroot-x86_64-linux-gnu/usr/include/c++/8/bits/unique_ptr.h:415:27: error: expected type-specifier before ‘=’ token
 0:02.24 /home/komat/.mozbuild/sysroot-x86_64-linux-gnu/usr/include/c++/8/bits/unique_ptr.h:415:27: error: expected unqualified-id before ‘=’ token
 0:02.24 /home/komat/.mozbuild/sysroot-x86_64-linux-gnu/usr/include/c++/8/bits/unique_ptr.h:421:69: error: wrong number of template arguments (1, should be 2)
 0:02.24   421 |                     __not_<is_same<__remove_cv<_Tp>, __remove_cv<_Up>>> >;
 0:02.24       |                                                                     ^~
 0:02.24 In file included from /home/komat/.mozbuild/sysroot-x86_64-linux-gnu/usr/include/c++/8/bits/move.h:55,
 0:02.24                  from /home/komat/.mozbuild/sysroot-x86_64-linux-gnu/usr/include/c++/8/bits/stl_pair.h:59,
 0:02.24                  from /home/komat/.mozbuild/sysroot-x86_64-linux-gnu/usr/include/c++/8/bits/stl_algobase.h:64,
 0:02.24                  from /home/komat/.mozbuild/sysroot-x86_64-linux-gnu/usr/include/c++/8/bits/char_traits.h:39,
 0:02.24                  from /home/komat/.mozbuild/sysroot-x86_64-linux-gnu/usr/include/c++/8/string_view:42,
 0:02.24                  from /raid/src/third_party/wasm2c/include/wabt/binary-reader.h:22:
 0:02.24 /home/komat/.mozbuild/sysroot-x86_64-linux-gnu/usr/include/c++/8/type_traits:1286:12: note: provided for ‘template<class, class> struct std::is_same’
 0:02.24  1286 |     struct is_same
 0:02.24       |            ^~~~~~~
 0:02.24 /home/komat/.mozbuild/sysroot-x86_64-linux-gnu/usr/include/c++/8/bits/unique_ptr.h:421:71: error: template argument 1 is invalid
 0:02.24   421 |                     __not_<is_same<__remove_cv<_Tp>, __remove_cv<_Up>>> >;
 0:02.24       |                                                                       ^
 0:02.24 /home/komat/.mozbuild/sysroot-x86_64-linux-gnu/usr/include/c++/8/bits/unique_ptr.h:421:73: error: template argument 2 is invalid
 0:02.24   421 |                     __not_<is_same<__remove_cv<_Tp>, __remove_cv<_Up>>> >;
 0:02.24       |                                                                         ^

Build with --enable-release, --disable-bootstrap or --without-sysroot.

Severity: -- → S3
Priority: -- → P3

I have had a similar problem to build C-C TB with gcc-12, even for quite a while.
Now I figured that --without-sysroot in my mozconfig and re-configure and re-build solves the issue for me.
Thanks to this, now I am encountering tons of GCC-12 specific issues but that is another story.

Blocks: build-gcc-12
You need to log in before you can comment on or make changes to this bug.