GithubHelp home page GithubHelp logo

Comments (5)

johnmcfarlane avatar johnmcfarlane commented on June 12, 2024 1

Please don't close. CNL is intended to work with both versions of the compiler.

from cnl.

johnmcfarlane avatar johnmcfarlane commented on June 12, 2024

Hi Eduardo,

Thanks for letting me know. If you could provide any of the info listed here, it would be helpful. In particular, compiler version and flags are likely to explain this.

That specialization was previously not defined until C++17. Likely, a toolchain defined this in its standard library implementation since a certain version. It would be useful to confirm this. It would appear benign though if it's the only error you're seeing.

Cheers,
John

from cnl.

eduvfalc avatar eduvfalc commented on June 12, 2024

Hi John,

Thanks for the prompt reply. For your convenience, please find below the template-friendly problem I am facing and further info.

Describe the bug

When trying to build and install CNL v1.1.2 I ran through the following error:

[ 95%] Building CXX object test/unit/CMakeFiles/test-unit-presentations-cppcon2017.dir/presentations/cppcon2017.cpp.o
/home/falco/repos/cnl-1.1.2/test/unit/presentations/cppcon2017.cpp:24:13: error: redefinition of ‘struct std::hash<std::filesystem::__cxx11::path>’
   24 | struct std::hash<filesystem::path> {
      |             ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/filesystem:45,
                 from /home/falco/repos/cnl-1.1.2/test/unit/presentations/cppcon2017.cpp:16:
/usr/include/c++/11/bits/fs_path.h:1361:10: note: previous definition of ‘struct std::hash<std::filesystem::__cxx11::path>’
 1361 |   struct hash<filesystem::path>
      |          ^~~~~~~~~~~~~~~~~~~~~~

It happens in both cppcon2017.cpp and cppcon2018.cpp.

To Reproduce

Run the following commands:

mkdir build && cd build
cmake ..
cmake --build . --target install

Expected behavior

Files successfully installed in the system.

Desktop

OS: Ubuntu 22.04.3 LTS Jammy
CMake: 3.22.1
Compilers: gcc/g++ 11.4.0
Compiler flags used: default values apart from those set by the CNL build structure
Conan: 2.0.17
CNL: Latest release, v1.1.2

Please let me know if you need more information.

from cnl.

eduvfalc avatar eduvfalc commented on June 12, 2024

Hi John,

I downgraded my gcc/g++ compilers to version 10.5 instead of 11.4. Now the build is successful. The issue is not present in my system anymore, so I guess we can close this one.

from cnl.

eduvfalc avatar eduvfalc commented on June 12, 2024

Ok, let me know what else you will need from me and I can feed you with more details of the issue. I am still able to reproduce it should I upgrade the version.

from cnl.

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.