Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'type_traits' file not found #176

Closed
dufresnep opened this issue Jun 12, 2021 · 4 comments
Closed

'type_traits' file not found #176

dufresnep opened this issue Jun 12, 2021 · 4 comments

Comments

@dufresnep
Copy link

Using clang v. 11 on GeckoLinux (OpenSUse)
tried to install some libc++ libs... without success.

clang++ -std=c++11 -c -fno-threadsafe-statics -fpic -iquote /home/paul/Downloads/fdpp-master/fdpp/../hdr -DWITHFAT32 -I . -I /home/paul/Downloads/fdpp-master/include/fdpp -I /home/paul/Downloads/fdpp-master/kernel/ -I /home/paul/Downloads/fdpp-master/fdpp -DFDPPKRNLDIR=/usr/local/share/fdpp -DKRNL_ELFNAME=fdppkrnl.elf -DKRNL_MAP_NAME=fdppkrnl.map -DKERNEL_VERSION="1.3 [GIT: ]" -Wall -ggdb3 -O2 -DDEBUG -Wno-format-invalid-specifier -o blockio.o blockio.cc
In file included from blockio.cc:31:
In file included from /home/paul/Downloads/fdpp-master/fdpp/../hdr/portab.h:202:
./farptr.hpp:22:10: fatal error: 'type_traits' file not found
#include <type_traits>
^~~~~~~~~~~~~
1 error generated.
make[1]: *** [makefile:165: blockio.o] Error 1
make[1]: Leaving directory '/home/paul/Downloads/fdpp-master/fdpp'
make: *** [makefile:13: all] Error 2

@stsp
Copy link
Member

stsp commented Jun 12, 2021

You need libstdc++-devel.
Besides, we have the opensuse
builds here:
https://download.opensuse.org/repositories/home:/stsp2/openSUSE_Tumbleweed/
HTH.

@stsp stsp closed this as completed Jun 12, 2021
@dufresnep
Copy link
Author

GeckoLinux (openSUSE Leap 15.3 x86_64) seems to have libstdc++-devel packages, only for specific versions of gcc, not for clang.
Like libstdc++6-devel-gcc10, or libstdc++6-devel-gcc7

@stsp
Copy link
Member

stsp commented Jun 13, 2021

As can be seen from this log:
https://build.opensuse.org/public/build/home:stsp2/openSUSE_Tumbleweed/x86_64/fdpp/_log
(opensuse tumbleweed), it installs
both
libstdc++6-devel-gcc11-11.1.1+git121-2.1
libstdc++-devel-11-1.12

It seems though:
https://software.opensuse.org/package/libstdc++6
that Leap 15.3 misses it while
15.2 has.

I don't know how to help you here,
but maybe @nnn19 or @mateuszviste
know how to use libstdc++ with clang
on leap-5.3?

@stsp
Copy link
Member

stsp commented Jun 13, 2021

OK, I created the Leap-15.3 log
for you:
https://build.opensuse.org/build/home:stsp2/openSUSE_Leap_15.3/x86_64/fdpp/_log
It installs
libstdc++6-devel-gcc7-7.5.0+r278197-4.25.1
libstdc++-devel-7-3.3.22

So obviously there IS such a
package. Not sure why at some
places it is not published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants