-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
Hello !
I am currently trying to compile Ungoogled Chromium on Ubuntu 23.10. And the build failed despite following the instructions.
What I did
sudo apt install -y devscripts equivs
git clone https://github.com/ungoogled-software/ungoogled-chromium-debian.git
cd ungoogled-chromium-debian
git submodule update --init --recursive
debian/rules setup
sudo mk-build-deps -i debian/control
rm ungoogled-chromium-build-deps_*
dpkg-buildpackage -b -uc
The error occured on the last command.
The error I see
[A LOT OF LOGS]
[8535/57298] CXX obj/third_party/ruy/ruy_instrumentation/instrumentation.o
FAILED: obj/third_party/ruy/ruy_instrumentation/instrumentation.o
clang++-16 -MMD -MF obj/third_party/ruy/ruy_instrumentation/instrumentation.o.d -DRUY_PROFILER -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-18-init-9505-g10664813-1\" -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../third_party/ruy/src -Wall -Wextra -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wno-invalid-offsetof -Wno-vla-extension -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -ffp-contract=off -m64 -msse3 -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -fno-omit-frame-pointer -gdwarf-4 -g1 -gdwarf-aranges -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-unknown-warning-option -Wno-deprecated-declarations -c ../../third_party/ruy/src/ruy/profiler/instrumentation.cc -o obj/third_party/ruy/ruy_instrumentation/instrumentation.o
In file included from ../../third_party/ruy/src/ruy/profiler/instrumentation.cc:16:
../../third_party/ruy/src/ruy/profiler/instrumentation.h:55:8: error: no type named 'string' in namespace 'std'
std::string Formatted() const;
~~~~~^
../../third_party/ruy/src/ruy/profiler/instrumentation.h:147:7: error: use of undeclared identifier 'abort'
abort();
^
../../third_party/ruy/src/ruy/profiler/instrumentation.cc:34:12: error: no member named 'string' in namespace 'std'
if (std::string(format_) != std::string(other.format_)) {
~~~~~^
../../third_party/ruy/src/ruy/profiler/instrumentation.cc:34:36: error: no member named 'string' in namespace 'std'
if (std::string(format_) != std::string(other.format_)) {
~~~~~^
../../third_party/ruy/src/ruy/profiler/instrumentation.cc:48:6: error: no type named 'string' in namespace 'std'
std::string Label::Formatted() const {
~~~~~^
../../third_party/ruy/src/ruy/profiler/instrumentation.cc:52:12: error: cannot initialize return object of type 'int' with an lvalue of type 'const char *const'
return format_;
^~~~~~~
../../third_party/ruy/src/ruy/profiler/instrumentation.cc:63:5: error: use of undeclared identifier 'abort'
abort();
^
../../third_party/ruy/src/ruy/profiler/instrumentation.cc:65:10: error: cannot initialize return object of type 'int' with an lvalue of type 'char[256]'
return buf;
^~~
8 errors generated.
[8566/57298] ACTION //third_party/dav1d:dav1d_asm_action(//build/toolchain/linux/unbundle:default)
ninja: build stopped: subcommand failed.
make[1]: *** [debian/rules:143 : override_dh_auto_build] Erreur 1
make[1] : on quitte le répertoire « /home/BLABLABLA/Ungoogled/ungoogled-chromium-debian »
make: *** [debian/rules:109 : binary] Erreur 2
dpkg-buildpackage: erreur: le sous-processus fakeroot debian/rules binary a retourné l’état de sortie 2
My environment
$ clang++-16 -v
Ubuntu clang version 16.0.6 (15)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/13
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/13
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 13.2.0-4ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-13 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-13-XYspKM/gcc-13-13.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-13-XYspKM/gcc-13-13.2.0/debian/tmp-gcn/usr --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.0 (Ubuntu 13.2.0-4ubuntu3)
I have libstdc++6and libstdc++-13-dev installed (I guessed it was used over libc++).
Can you please help me seeing what is going wrong here ?
Thanks !
Metadata
Metadata
Assignees
Labels
No labels