GithubHelp home page GithubHelp logo

Comments (14)

perfect7gentleman avatar perfect7gentleman commented on July 17, 2024

it's copy from your overlay

from gentoo-overlay.

PF4Public avatar PF4Public commented on July 17, 2024

You're using custom-cflags, try building without.

from gentoo-overlay.

PF4Public avatar PF4Public commented on July 17, 2024

I assume, this solves the issue

from gentoo-overlay.

perfect7gentleman avatar perfect7gentleman commented on July 17, 2024

USE="-custom-cflags" won't help

from gentoo-overlay.

PF4Public avatar PF4Public commented on July 17, 2024

Then, if you want me to help you, please provide more information. Aborted is not enough.

I've inspected your USE flags once more and I see that you're trying to build with libcxx, new-tcmalloc and tcmalloc. There is a problem with libcxx, but I wonder how could you build it successfully. Try disabling libcxx and new-tcmalloc.

BTW: what is the point in copying into your overlay?

from gentoo-overlay.

perfect7gentleman avatar perfect7gentleman commented on July 17, 2024

USE="-custom-cflags -libcxx -new-tcmalloc" helped. thanx.

BTW: what is the point in copying into your overlay?

Really, there is no any sensible reason.
But now I'll enable your repo.

from gentoo-overlay.

PF4Public avatar PF4Public commented on July 17, 2024

I have actually tried building with libcxx and new-tcmalloc, but it failed with re2 library being not build with libcxx… How did you manage to build it? Did you do anything special?

from gentoo-overlay.

perfect7gentleman avatar perfect7gentleman commented on July 17, 2024

I build all deps and related packages with -stdlib=libc++

from gentoo-overlay.

PF4Public avatar PF4Public commented on July 17, 2024

Do you do this by default in your system, or specifically for ungoogled-chromium?

from gentoo-overlay.

perfect7gentleman avatar perfect7gentleman commented on July 17, 2024

It's default for most packages built with Clang

~ $ cat /etc/portage/env/clang_compiler 
CC="clang"
CXX="clang++"
COMMON_FLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-plt -fno-stack-protector -flto=thin"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS} -stdlib=libc++"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
LDFLAGS="-Wl,-O2 -Wl,--as-needed -Wl,--strip-debug -Wl,--thinlto-jobs=9 -flto=thin -fuse-ld=lld"
AR="llvm-ar"
NM="llvm-nm"
RANLIB="llvm-ranlib"

from gentoo-overlay.

perfect7gentleman avatar perfect7gentleman commented on July 17, 2024

before it was possible to build working UGC with USE="custom-cflags libcxx new-tcmalloc"

from gentoo-overlay.

PF4Public avatar PF4Public commented on July 17, 2024

Then I would suggest building it again with libcxx and new-tcmalloc and enable symbols in gn args. Run chromium with gdb and show backtrace to see, what is failing. Unfortunately I cannot promise that I will do this in an immediate future due to the lack of time at present, but if you eager, you may try, but don't enable custom-flags, as it could potentially spoil the result. It could probably give us a clue on what is wrong or what else do we need to patch to make it work.

I will edit and reopen this bug for anyone, who also is trying to build it this way. If you don't mind.

from gentoo-overlay.

PF4Public avatar PF4Public commented on July 17, 2024

libcxx doesn't seem to be used much, so I drop it from ebuild.
One could make this locally if desired.

from gentoo-overlay.

perfect7gentleman avatar perfect7gentleman commented on July 17, 2024
www-client/ungoogled-chromium-80.0.3987.87_p1::pf4public was built with the following:
USE="clang convert-dict cups custom-cflags optimize-thinlto optimize-webui pdf proprietary-codecs pulseaudio system-ffmpeg system-harfbuzz system-icu system-jsoncpp system-libevent system-libvpx system-openh264 system-openjpeg tcmalloc thinlto vaapi -cfi -closure-compile -enable-driver -gnome -gnome-keyring -hangouts -kerberos (-selinux) -suid -widevine" L10N="ru -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh-CN -zh-TW" PYTHON_TARGETS="python2_7 python3_8 -python3_6 -python3_7"
CFLAGS="-march=native -mtune=native -O3 -pipe -flto=thin -fomit-frame-pointer -fno-plt -fno-stack-protector -fno-unwind-tables -Wno-unknown-warning-option -Wno-builtin-macro-redefined"
CXXFLAGS="-march=native -mtune=native -O3 -pipe -flto=thin -fomit-frame-pointer -fno-plt -fno-stack-protector -fno-unwind-tables -stdlib=libc++ -Wno-unknown-warning-option -Wno-builtin-macro-redefined"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--strip-debug -Wl,--discard-all -Wl,--thinlto-jobs=9 -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -s -march=native -mtune=native -O3 -pipe -flto=thin -fomit-frame-pointer -fno-plt -fno-stack-protector -fno-unwind-tables -stdlib=libc++ -Wl,-plugin-opt,-import-instr-limit=30 -Wl,--thinlto-jobs=9"

It works finally.

from gentoo-overlay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.