sys-devel/gcc-12.2.1 Installed,but can't found /usr/include/c++/bits/ folder. It seems like gcc didn't compiled with gcc/libstdc++-v3/include/bits/ I also installed sys-libs/libstdc++-v3-3.3.6-r4, but it only installed libstdc++.so, not the headers. It make me impossible to compile my project. libstdc++-v3 works fine in Ubuntu or Archlinux, but I didn't see a way to get it on Gentoo. Reproducible: Always
Created attachment 858527 [details] gcc info
Created attachment 858529 [details] emerge --info libstdc++-v3
works for me: equery f sys-devel/gcc | grep bits | grep "\.h" /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/algorithmfwd.h /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/align.h /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/alloc_traits.h /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/allocated_ptr.h /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/allocator.h /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/atomic_base.h ... sys-devel/gcc-12.2.1_p20230304::gentoo was built with the following: USE="(cxx) fortran (multilib) nls nptl openmp (pie) sanitize ssp -ada (-cet) (-custom-cflags) -d -debug -default-stack-clash-protection -default-znow -doc (-fixed-point) -go -graphite -hardened (-ieee-long-double) -jit (-libssp) -lto -objc -objc++ -objc-gc (-pch) -pgo -systemtap -test -valgrind -vanilla -vtv -zstd" ABI_X86="(64)" CFLAGS="-march=native -pipe -O2" CXXFLAGS="-march=native -pipe -O2" FEATURES="merge-sync distlocks sfperms xattr assume-digests ipc-sandbox binpkg-docompress unmerge-orphans sandbox userfetch binpkg-multi-instance fixlafiles userpriv network-sandbox pid-sandbox unmerge-logs news unknown-features-warn strict ebuild-locks preserve-libs binpkg-dostrip usersandbox parallel-fetch buildpkg-live protect-owned qa-unresolved-soname-deps usersync multilib-strict binpkg-logs config-protect-if-modified" For some reasons you do not get the .h file. The situation seems to be a bit more complicate and requires some analysis. We can not help you efficiently via bug tracker. The bug tracker aims rather on specific problems in .ebuilds and less on individual systems. I have had very good experience on the gentoo IRC [1] with questions like this. Of course there are also forums and mailing lists [2,3]. I hope you understand, that I will close the bug here therefore and wish you good luck on one of the mentioned channels [4]. Please reopen the ticket in order to provide an indication for an specific error in an ebuild or any gentoo related product. [1] https://www.gentoo.org/get-involved/irc-channels/ [2] https://forums.gentoo.org/ [3] https://www.gentoo.org/get-involved/mailing-lists/all-lists.html [4] https://www.gentoo.org/support/
Yep, it's not supposed to be in that location.
(In reply to Sam James from comment #4) > Yep, it's not supposed to be in that location. (What actual problem are you hitting?)
sys-libs/libstdc++-v3 is an ancient copy of libstdc++ used only for ABI compatibility with some old proprietary programs. You are never looking for it. The C++ frontend and runtimes ought to be working fine. If I had to guess, your code is misusing -nostdinc and then assuming the location of standard headers via -I.