GithubHelp home page GithubHelp logo

Comments (11)

stsp avatar stsp commented on June 8, 2024

Its not happening on lp, so its your
problem. You need to see with strace
where does it look for a header.

from fdpp.

andrewbird avatar andrewbird commented on June 8, 2024

Just posting this while I have it. I have to go out now.

openat(AT_FDCWD, "./type_traits", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/clients/common/fdpp.git/include/fdpp/type_traits", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/clients/common/fdpp.git/kernel/type_traits", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/type_traits", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/llvm-14/lib/clang/14.0.0/include/type_traits", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/include/type_traits", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/include/x86_64-linux-gnu/type_traits", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/include/type_traits", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/clients/common/fdpp.git/fdpp/../hdr/type_traits", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

from fdpp.

stsp avatar stsp commented on June 8, 2024

Any progress?

from fdpp.

andrewbird avatar andrewbird commented on June 8, 2024

I'm busy with other things for the summer, so perhaps when I finally get back to it, it'll be fixed by magic somehow.

from fdpp.

andrewbird avatar andrewbird commented on June 8, 2024

It seems I now need to install the libstdc++-12-dev package, not sure why. Anyway with that installed it now compiles

from fdpp.

stsp avatar stsp commented on June 8, 2024

I think there is a build-essential package
that installs those.

from fdpp.

andrewbird avatar andrewbird commented on June 8, 2024

It was compiling fine in the past, then after one apt update;apt full-upgrade;apt autoremove cycle it started to fail. I can only imagine that libstdc++-12-dev was a dependency of some old package but not of its new revision and the apt autoremove tidied it away.

from fdpp.

stsp avatar stsp commented on June 8, 2024
$ dpkg-query -s clang-15
Package: clang-15
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 361
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Source: llvm-toolchain-15
Version: 1:15.0.7-3
Provides: c++-compiler, c-compiler, objc-compiler
Depends: libc6 (>= 2.34), libclang-cpp15 (>= 1:15.0.7), libgcc-s1 (>= 3.0), libllvm15, libstdc++6 (>= 11), libstdc++-12-dev, libgcc-12-dev, libobjc-12-dev, libclang-common-15-dev (= 1:15.0.7-3), llvm-15-linker-tools (= 1:15.0.7-3), libclang1-15 (= 1:15.0.7-3), libc6-dev, binutils

So its a dep of clang.

from fdpp.

andrewbird avatar andrewbird commented on June 8, 2024

Not sure why mine is different.

root@calypso:~# dpkg-query -s clang-15
Package: clang-15
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 380
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Source: llvm-toolchain-15
Version: 1:15.0.7-0ubuntu0.22.04.1
Provides: c++-compiler, c-compiler, objc-compiler
Depends: libc6 (>= 2.34), libclang-cpp15 (>= 1:15.0.7), libgcc-s1 (>= 3.0), libllvm15, libstdc++6 (>= 11), libstdc++-11-dev, libgcc-11-dev, libobjc-11-dev, libclang-common-15-dev (= 1:15.0.7-0ubuntu0.22.04.1), llvm-15-linker-tools (= 1:15.0.7-0ubuntu0.22.04.1), libclang1-15 (= 1:15.0.7-0ubuntu0.22.04.1), libc6-dev, binutils
Recommends: llvm-15-dev, python3
Suggests: clang-15-doc, wasi-libc
Description: C, C++ and Objective-C compiler
 Clang project is a C, C++, Objective C and Objective C++ front-end
 based on the LLVM compiler. Its goal is to offer a replacement to the
 GNU Compiler Collection (GCC).
 .
 Clang implements all of the ISO C++ 1998, 11, 14 and 17 standards and also
 provides most of the support of C++20.
Original-Maintainer: LLVM Packaging Team <[email protected]>
Homepage: https://www.llvm.org/

from fdpp.

stsp avatar stsp commented on June 8, 2024

Mine is 23.04.
So the packages are different, but
your clang also refers to libstdc++-dev.
See

ls -l `which clang`

, maybe its not referring to clang-15, but rather 14.

from fdpp.

andrewbird avatar andrewbird commented on June 8, 2024
root@calypso:~# ls -l `which clang`
lrwxrwxrwx 1 root root 24 Apr  1  2022 /usr/bin/clang -> ../lib/llvm-14/bin/clang

root@calypso:~# /usr/bin/clang --version
Ubuntu clang version 14.0.0-1ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

root@calypso:~# dpkg-query -s clang-14
Package: clang-14
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 366
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Source: llvm-toolchain-14
Version: 1:14.0.0-1ubuntu1
Provides: c++-compiler, c-compiler, objc-compiler
Depends: libc6 (>= 2.34), libclang-cpp14 (>= 1:14.0.0), libgcc-s1 (>= 3.0), libllvm14, libstdc++6 (>= 11), libstdc++-11-dev, libgcc-11-dev, libobjc-11-dev, libclang-common-14-dev (= 1:14.0.0-1ubuntu1), llvm-14-linker-tools (= 1:14.0.0-1ubuntu1), libclang1-14 (= 1:14.0.0-1ubuntu1), libc6-dev, binutils
Recommends: llvm-14-dev, python3
Suggests: clang-14-doc
Description: C, C++ and Objective-C compiler
 Clang project is a C, C++, Objective C and Objective C++ front-end
 based on the LLVM compiler. Its goal is to offer a replacement to the
 GNU Compiler Collection (GCC).
 .
 Clang implements all of the ISO C++ 1998, 11, 14 and 17 standards and also
 provides most of the support of C++20.
Homepage: https://www.llvm.org/
Original-Maintainer: LLVM Packaging Team <[email protected]>

root@calypso:~# dpkg -L libstdc++-11-dev | grep type_traits
/usr/include/c++/11/bits/cpp_type_traits.h
/usr/include/c++/11/experimental/type_traits
/usr/include/c++/11/ext/type_traits.h
/usr/include/c++/11/tr1/type_traits
/usr/include/c++/11/tr2/type_traits
/usr/include/c++/11/type_traits

But as we saw #223 (comment) earlier, clang seems to be looking for version 12, not 11. Anyway not to worry about chasing this down, like I mentioned earlier in the thread I have very little time at the moment, so whatever the root cause is it'll probably be fixed by the time I get back to dosemu/fdpp fiddling.

from fdpp.

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.