Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-util/hip-4.3.0 not compile (even without opencl-headers)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
stelinux
Tux's lil' helper
Tux's lil' helper


Joined: 02 Nov 2004
Posts: 124

PostPosted: Wed Sep 08, 2021 9:39 pm    Post subject: dev-util/hip-4.3.0 not compile (even without opencl-headers) Reply with quote

Hi,
as I have described dev-util/hip-4.3.0 give this error:
Code:

FAILED: lib/libamdhip64.so.4.3
: && /usr/lib/llvm/roc/bin/clang++ -fPIC -march=znver2 -O2 -pipe -stdlib=libc++  -Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory -Wl,-Bsymbolic -Wl,--unresolved-symbols=report-all -Wl,--version-script=/var/tmp/portage/dev-util/hip-4.3.0/work/HIP-rocm-4.3.0/rocclr/hip_hcc.map.in -shared -Wl,-soname,libamdhip64.so.4 -o lib/libamdhip64.so.4.3 rocclr/CMakeFiles/hip64.dir/hip_context.cpp.o rocclr/CMakeFiles/hip64.dir/hip_code_object.cpp.o rocclr/CMakeFiles/hip64.dir/hip_device.cpp.o rocclr/CMakeFiles/hip64.dir/hip_device_runtime.cpp.o rocclr/CMakeFiles/hip64.dir/hip_error.cpp.o rocclr/CMakeFiles/hip64.dir/hip_event.cpp.o rocclr/CMakeFiles/hip64.dir/hip_fatbin.cpp.o rocclr/CMakeFiles/hip64.dir/hip_global.cpp.o rocclr/CMakeFiles/hip64.dir/hip_hmm.cpp.o rocclr/CMakeFiles/hip64.dir/hip_memory.cpp.o rocclr/CMakeFiles/hip64.dir/hip_module.cpp.o rocclr/CMakeFiles/hip64.dir/hip_peer.cpp.o rocclr/CMakeFiles/hip64.dir/hip_platform.cpp.o rocclr/CMakeFiles/hip64.dir/hip_profile.cpp.o rocclr/CMakeFiles/hip64.dir/hip_stream.cpp.o rocclr/CMakeFiles/hip64.dir/hip_stream_ops.cpp.o rocclr/CMakeFiles/hip64.dir/hip_surface.cpp.o rocclr/CMakeFiles/hip64.dir/hip_texture.cpp.o rocclr/CMakeFiles/hip64.dir/hip_activity.cpp.o rocclr/CMakeFiles/hip64.dir/hip_intercept.cpp.o rocclr/CMakeFiles/hip64.dir/hip_rtc.cpp.o rocclr/CMakeFiles/hip64.dir/cl_gl.cpp.o rocclr/CMakeFiles/hip64.dir/cl_lqdflash_amd.cpp.o rocclr/CMakeFiles/hip64.dir/fixme.cpp.o rocclr/CMakeFiles/hip64.dir/hip_graph.cpp.o rocclr/CMakeFiles/hip64.dir/hip_graph_internal.cpp.o  /usr/lib64/libamdrocclr_static.a  -ldl  /usr/lib64/libhsa-runtime64.so.1.3.0  -pthread  /usr/lib64/libamd_comgr.so.2.1  /usr/lib64/librt.so  /usr/lib64/libnuma.so && :
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libamdrocclr_static.a(appprofile.cpp.o): undefined reference to symbol '_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE10_M_disposeEv@@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/libstdc++.so.6: error adding symbols: DSO missing from command line
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
 * ERROR: dev-util/hip-4.3.0::gentoo failed (compile phase):


dev-util/hip-4.2.0 compile fine. All eduilds used for hip compilation come from gentoo. Thanks.
P.S. maybe it's because i'm try to compiling it with clang/llvm-12?

Code:

Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/no-multilib, gcc-10.3.0, glibc-2.33-r1, 5.10.61-gentoo-r0 x86_64)
=================================================================
System uname: Linux-5.10.61-gentoo-r0-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.33
KiB Mem:    32851148 total,   7836224 free
KiB Swap:    1048572 total,   1047036 free
Timestamp of repository gentoo: Wed, 08 Sep 2021 20:00:01 +0000
Head commit of repository gentoo: 9c3662f5ee8b460227b2e5fc1ec46aa88f03e982
sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          2.7.18_p13::gentoo, 3.7.11_p1::gentoo, 3.8.12::gentoo, 3.9.6_p2::gentoo
dev-lang/rust:            1.53.0::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.43.5::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo, 2.36.1-r2::gentoo
sys-devel/gcc:            10.3.0-r2::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

stefano
    location: /var/db/repos/localrepo
    masters: gentoo
    priority: 0

guru
    location: /var/db/repos/guru
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
    masters: gentoo
    priority: 50

pf4public
    location: /var/db/repos/pf4public
    sync-type: laymansync
    sync-uri: https://github.com/PF4Public/gentoo-overlay.git
    masters: gentoo
    priority: 50

rocm
    location: /var/db/repos/rocm
    sync-type: laymansync
    sync-uri: https://github.com/justxi/rocm.git
    masters: gentoo
    priority: 50

science
    location: /var/db/repos/science
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/sci.git
    masters: gentoo
    priority: 50

stefantalpalaru
    location: /var/db/repos/stefantalpalaru
    sync-type: laymansync
    sync-uri: git://github.com/stefantalpalaru/gentoo-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=znver2 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=12 --load-average=12 --keep-going=n --with-bdeps=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.evowise.com/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://mirror.leaseweb.com/gentoo/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j12"
PKGDIR="/var/cache/binpkg"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X Xaw3d aalib acl acpi alsa amd64 amr avahi bluetooth bluray bs2b bzip2 cairo caps cdr chromaprint cli color-management crypt cups curl dbus designer dirac djvu dri dvb dvd egl eglfs elogind eselect-ldso exif expat faac faad fam fbcon ffmpeg fftw flac fontconfig fontforge fortran frei0r gdbm gnutls gpg gphoto graphicsmagick gstreamer gtk iconv icu ieee1394 int64 introspection ipv6 jack java jbig jpeg jpeg2k latex lcms libcaca libglvnd libinput libnotify libtirpc lua lzma mng mp3 music mysql ncurses nls nptl ocaml odbc ogg opencl openexr opengl openh264 openmp openssl pam pch pcre pdf perl phonon png policykit postscript private-headers ps pulseaudio python qml qt5 readline reports samba scanner screencast sdl seccomp slang smp snmp speex spell split-usr sqlite ssh ssl svg swig tcl tcpd telemetry theora thumbnail tiff tk truetype udev unicode usb v4l v4l2 vaapi vdpau verify-sig vorbis vulkan wayland widgets wmf x264 xattr xcb xinerama xml xv xvid xvmc zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="cpu cpufreq cpusleep disk hddtemp thermal" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="it" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console nlpsolver pdfimport scripting-javascript wiki-publisher" LLVM_TARGETS="AMDGPU X86 BPF" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 python3_8" RUBY_TARGETS="ruby26" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

_________________
stelinux on Ryzen 9 3900x on ROG Crosshair Hero VIII wifi 32GB G.Skill F4-3200C14D-16GFX CL16-16-16-39, 1.2 V
gentoo 17.1/no-multilib Sapphire Radeon RX 5700 XT 8G GDDR6 HDMI/TRIPLE DP OC W/ BP (UEFI)
openrc elogind kde pipewire
Back to top
View user's profile Send private message
larrys
n00b
n00b


Joined: 20 Jul 2020
Posts: 38
Location: New Jersey

PostPosted: Thu Sep 09, 2021 11:54 am    Post subject: Reply with quote

stelinux,
The default build (g++) works.
Code:
: && /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=skylake -O2 -pipe  -Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory -Wl,-Bsymbolic -Wl,--unresolved-symbols=report-all -Wl,--version-script=/var/tmp/portage/dev-util/hip-4.3.0/work/HIP-rocm-4.3.0/rocclr/hip_hcc.map.in -shared -Wl,-soname,libamdhip64.so.4 -o lib/libamdhip64.so.4.3 rocclr/CMakeFiles/hip64.dir/hip_context.cpp.o rocclr/CMakeFiles/hip64.dir/hip_code_object.cpp.o rocclr/CMakeFiles/hip64.dir/hip_device.cpp.o rocclr/CMakeFiles/hip64.dir/hip_device_runtime.cpp.o rocclr/CMakeFiles/hip64.dir/hip_error.cpp.o rocclr/CMakeFiles/hip64.dir/hip_event.cpp.o rocclr/CMakeFiles/hip64.dir/hip_fatbin.cpp.o rocclr/CMakeFiles/hip64.dir/hip_global.cpp.o rocclr/CMakeFiles/hip64.dir/hip_hmm.cpp.o rocclr/CMakeFiles/hip64.dir/hip_memory.cpp.o rocclr/CMakeFiles/hip64.dir/hip_module.cpp.o rocclr/CMakeFiles/hip64.dir/hip_peer.cpp.o rocclr/CMakeFiles/hip64.dir/hip_platform.cpp.o rocclr/CMakeFiles/hip64.dir/hip_profile.cpp.o rocclr/CMakeFiles/hip64.dir/hip_stream.cpp.o rocclr/CMakeFiles/hip64.dir/hip_stream_ops.cpp.o rocclr/CMakeFiles/hip64.dir/hip_surface.cpp.o rocclr/CMakeFiles/hip64.dir/hip_texture.cpp.o rocclr/CMakeFiles/hip64.dir/hip_activity.cpp.o rocclr/CMakeFiles/hip64.dir/hip_intercept.cpp.o rocclr/CMakeFiles/hip64.dir/hip_rtc.cpp.o rocclr/CMakeFiles/hip64.dir/cl_gl.cpp.o rocclr/CMakeFiles/hip64.dir/cl_lqdflash_amd.cpp.o rocclr/CMakeFiles/hip64.dir/fixme.cpp.o rocclr/CMakeFiles/hip64.dir/hip_graph.cpp.o rocclr/CMakeFiles/hip64.dir/hip_graph_internal.cpp.o  -Wl,-rpath,/usr/lib/llvm/roc/lib:  /usr/lib64/libamdrocclr_static.a  -ldl  /usr/lib64/libhsa-runtime64.so.1.3.0  -pthread  /usr/lib64/libamd_comgr.so.2.1  /usr/lib64/librt.so  /usr/lib64/libnuma.so  -Wl,-rpath-link,/usr/lib/llvm/roc/lib && :
[29/29] /usr/bin/cmake -E cmake_symlink_library lib/libamdhip64.so.4.3  lib/libamdhip64.so.4 lib/libamdhip64.so && cd /var/tmp/portage/dev-util/hip-4.3.0/work/hip-4.3.0_build/rocclr && /usr/bin/cmake -E copy /var/tmp/portage/dev-util/hip-4.3.0/work/hip-4.3.0_build/.hipInfo /var/tmp/portage/dev-util/hip-4.3.0/work/hip-4.3.0_build/lib/.hipInfo && cd /var/tmp/portage/dev-util/hip-4.3.0/work/hip-4.3.0_build/rocclr && cp -rf /var/tmp/portage/dev-util/hip-4.3.0/work/HIP-rocm-4.3.0/include /var/tmp/portage/dev-util/hip-4.3.0/work/hip-4.3.0_build/
>>> Source compiled.
>>> Test phase [not enabled]: dev-util/hip-4.3.0

>>> Install dev-util/hip-4.3.0 into /var/tmp/portage/dev-util/hip-4.3.0/image


That method/symbol is defined in GNU/GCC libstdc++:
Code:
objdump -S /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/libstdc++.so.6 | grep '_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE10_M_disposeEv@@GLIBCXX_3.4.21'
   96350:   ff 25 52 be 13 00       jmp    *0x13be52(%rip)        # 1d21a8 <_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE10_M_disposeEv@@GLIBCXX_3.4.21+0x80a18>
0000000000151790 <_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE10_M_disposeEv@@GLIBCXX_3.4.21>:
  15179a:   74 0c                   je     1517a8 <_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE10_M_disposeEv@@GLIBCXX_3.4.21+0x18>
Back to top
View user's profile Send private message
stelinux
Tux's lil' helper
Tux's lil' helper


Joined: 02 Nov 2004
Posts: 124

PostPosted: Tue Sep 14, 2021 10:52 am    Post subject: Reply with quote

Hi Larrys, thanks a lot for your aid.
Now I have a big doubt, I compiled dev-util/hip in standard mode without modifying /etc/portage/package.env. Why does my system choose clang / llvm instead of gcc as default?
When I try to emerge hip first the system build llvm-roc and during hip compilation I read
Code:

>>> Configuring source in /var/tmp/portage/dev-util/hip-4.3.0/work/HIP-rocm-4.3.0 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-util/hip-4.3.0/work/HIP-rocm-4.3.0"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/dev-util/hip-4.3.0/work/hip-4.3.0_build"
cmake -C /var/tmp/portage/dev-util/hip-4.3.0/work/hip-4.3.0_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/usr/lib/llvm/roc -DCMAKE_BUILD_TYPE= -DCMAKE_INSTALL_PREFIX=/usr/lib/hip -DBUILD_HIPIFY_CLANG=OFF -DHIP_PLATFORM=rocclr -DHIP_COMPILER=clang -DROCM_PATH=/usr -DHSA_PATH=/usr -DUSE_PROF_API=0 -DPROF_API_HEADER_PATH=/usr/include/roctracer/ext -DROCclr_DIR=/usr/include/rocclr -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-util/hip-4.3.0/work/hip-4.3.0_build/gentoo_toolchain.cmake  /var/tmp/portage/dev-util/hip-4.3.0/work/HIP-rocm-4.3.0
loading initial cache file /var/tmp/portage/dev-util/hip-4.3.0/work/hip-4.3.0_build/gentoo_common_config.cmake
-- The C compiler identification is Clang 13.0.0
-- The CXX compiler identification is Clang 13.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/llvm/roc/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/llvm/roc/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done


furthermore

Code:

stefano@stelinux ~ $ equery d llvm-roc
 * These packages depend on llvm-roc:
dev-libs/rocm-comgr-4.3.0 (>=sys-devel/llvm-roc-4.3.0)
dev-libs/rocm-device-libs-4.3.0 (>=sys-devel/llvm-roc-4.3.0)
dev-util/hip-4.2.0 (=sys-devel/llvm-roc-4.2.0*[runtime])


and clang-13 is related to llvm-roc-4.3 so how can compile hip with g++?
With /etc/portage/package.env entry to force use of gcc? Please help me if you can.
Thanks again.
_________________
stelinux on Ryzen 9 3900x on ROG Crosshair Hero VIII wifi 32GB G.Skill F4-3200C14D-16GFX CL16-16-16-39, 1.2 V
gentoo 17.1/no-multilib Sapphire Radeon RX 5700 XT 8G GDDR6 HDMI/TRIPLE DP OC W/ BP (UEFI)
openrc elogind kde pipewire
Back to top
View user's profile Send private message
larrys
n00b
n00b


Joined: 20 Jul 2020
Posts: 38
Location: New Jersey

PostPosted: Wed Sep 15, 2021 2:34 am    Post subject: Reply with quote

I dug around some more. Hip ebuild has the following:
Code:
        -DHIP_COMPILER=clang
Also, the CMakeLists.txt file has this:
Code:
if(HIP_PLATFORM STREQUAL "nvidia")
    set(HIP_RUNTIME "cuda"  CACHE STRING "HIP Runtime")
    set(HIP_COMPILER "nvcc" CACHE STRING "HIP Compiler")
elseif(HIP_PLATFORM STREQUAL "amd")
    set(HIP_RUNTIME "rocclr" CACHE STRING "HIP Runtime")
    set(HIP_COMPILER "clang" CACHE STRING "HIP Compiler")
else()
    message(FATAL_ERROR "Unexpected HIP_PLATFORM: " ${HIP_PLATFORM})
endif()
I noticed you have AMD graphics, so it looks like you should be using Clang. I have Intel graphics, so somehow my build fell through to gcc.

Looked more closely at the link command. Noticed the following option:
Code:
-stdlib=libc++
which I believe is the option to specify the LLVM C++ Library. Your link command, however, is using GNU libstdc++:
Code:
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/libstdc++.so.6:
Do you have sys-libs/libcxx installed?
Back to top
View user's profile Send private message
stelinux
Tux's lil' helper
Tux's lil' helper


Joined: 02 Nov 2004
Posts: 124

PostPosted: Wed Sep 15, 2021 12:44 pm    Post subject: Reply with quote

Yes Larrys,
I have
Code:

[ebuild   R    ] sys-libs/libcxx-12.0.1::gentoo  USE="(libcxxabi) libunwind -static-libs -test

[ebuild   R    ] sys-devel/clang-12.0.1:12::gentoo  USE="static-analyzer xml -debug -default-compiler-rt -default-libcxx -default-lld -doc -llvm-libunwind -test" LLVM_TARGETS="AMDGPU BPF (X86) -AArch64 -ARC -ARM -AVR (-CSKY) -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -VE -WebAssembly -XCore" PYTHON_SINGLE_TARGET="python3_9 (-python3_10) -python3_8"
[ebuild   R    ] sys-devel/llvm-12.0.1:12::gentoo  USE="gold libedit libffi ncurses xml -debug -doc -exegesis -test -xar -z3" LLVM_TARGETS="AMDGPU BPF (X86) -AArch64 -ARC -ARM -AVR (-CSKY) -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -VE -WebAssembly -XCore"
[ebuild   R    ] sys-devel/gcc-10.3.0-r2:10::gentoo  USE="(cxx) fortran go graphite lto nls nptl objc objc++ openmp pch (pie) sanitize ssp (-ada) -d -debug -doc (-fixed-point) (-hardened) -jit (-libssp) (-multilib) -objc-gc -pgo -systemtap -test -vanilla -vtv -zstd"


_________________
stelinux on Ryzen 9 3900x on ROG Crosshair Hero VIII wifi 32GB G.Skill F4-3200C14D-16GFX CL16-16-16-39, 1.2 V
gentoo 17.1/no-multilib Sapphire Radeon RX 5700 XT 8G GDDR6 HDMI/TRIPLE DP OC W/ BP (UEFI)
openrc elogind kde pipewire
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum