Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 902509 - sys-devel/gcc-12.2.1 /bits/*.h not installed
Summary: sys-devel/gcc-12.2.1 /bits/*.h not installed
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-21 08:40 UTC by 464270342
Modified: 2023-03-21 15:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gcc info (emerge-info-gcc,8.85 KB, text/plain)
2023-03-21 08:40 UTC, 464270342
Details
emerge --info libstdc++-v3 (emerge-info-libstdc++,8.02 KB, text/plain)
2023-03-21 08:41 UTC, 464270342
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 464270342 2023-03-21 08:40:14 UTC
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
Comment 1 464270342 2023-03-21 08:40:47 UTC
Created attachment 858527 [details]
gcc info
Comment 2 464270342 2023-03-21 08:41:05 UTC
Created attachment 858529 [details]
emerge --info libstdc++-v3
Comment 3 Jonas Stein gentoo-dev 2023-03-21 12:22:08 UTC
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/
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-21 15:40:10 UTC
Yep, it's not supposed to be in that location.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-21 15:40:25 UTC
(In reply to Sam James from comment #4)
> Yep, it's not supposed to be in that location.

(What actual problem are you hitting?)
Comment 6 Arsen Arsenović gentoo-dev 2023-03-21 15:43:58 UTC
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.