Skip to content

Error in building O2 since #422 #428

Closed

Description

@dr4kan

Hi,

I am getting some errors when compiling O2 since PR #422.

Thanks for checking.

/alice/sw/SOURCES/O2/dev/0/Utilities/DataCompression/test/../include/DataCompression/DataDeflater.h:47:48: warning: static_assert with no message is a C++1z extension [-Wc++1z-extensions] static_assert(Length <= 8 * sizeof(code_type)); ^ , "" /alice/sw/SOURCES/O2/dev/0/Utilities/DataCompression/test/test_DataDeflater.cxx:99:23: error: implicit instantiation of undefined template 'std::__1::array<char, 8>' std::array<char, 8> data = {'d','e','a','d','b','e','e','f'}; ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__tuple:116:65: note: template is declared here template <class _Tp, size_t _Size> struct _LIBCPP_TYPE_VIS_ONLY array; ^ /alice/sw/SOURCES/O2/dev/0/Utilities/DataCompression/test/test_DataDeflater.cxx:124:23: error: implicit instantiation of undefined template 'std::__1::array<char, 8>' std::array<char, 8> data = {'d','e','a','d','b','e','e','f'}; ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__tuple:116:65: note: template is declared here template <class _Tp, size_t _Size> struct _LIBCPP_TYPE_VIS_ONLY array; ^ /alice/sw/SOURCES/O2/dev/0/Utilities/DataCompression/test/test_DataDeflater.cxx:169:23: error: implicit instantiation of undefined template 'std::__1::array<char, 8>' std::array<char, 8> data = {'d','e','a','d','b','e','e','f'}; ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__tuple:116:65: note: template is declared here template <class _Tp, size_t _Size> struct _LIBCPP_TYPE_VIS_ONLY array; ^ 1 warning and 3 errors generated.

Activity

  1. sawenzel commented on Jun 26, 2017

    @sawenzel
    Collaborator

    @dr4kan: What is your compiler version?

  2. dr4kan commented on Jun 26, 2017

    @dr4kan
    ContributorAuthor

    @sawenzel:

    Apple LLVM version 8.0.0 (clang-800.0.42.1)
    Target: x86_64-apple-darwin15.6.0
    Thread model: posix
    InstalledDir: /Library/Developer/CommandLineTools/usr/bin

  3. sawenzel commented on Jun 27, 2017

    @sawenzel
    Collaborator

    @dr4kan : I confirm this error. @matthiasrichter : We should try to be able to compile with MacOS El Capitan as long as possible. Would it be possible to use the older static_assert API including an error string?

    Generally, I believe we should seriously reconsider to have a MacOS based pull request check to avoid such things in the future.

  4. matthiasrichter commented on Jun 27, 2017

    @matthiasrichter
    Collaborator

    Hi folks,sorry for this,think I have hit this already before. I will fix this later today,of course compilation on Macos must not be broken.

    @dberzano @sawenzel @ktf can we run CI on a mac system? #361

  5. added a commit that references this issue on Jun 27, 2017
    f249474
  6. matthiasrichter commented on Jun 27, 2017

    @matthiasrichter
    Collaborator

    Reading the error message more carefully pointed me to the std::array to be the problem and very likely its simply a missing include. I also fixed the static_assert to take also an error string.

    @dr4kan could you please check and approve PR #432 in case the problem is solved, thanks.

  7. dberzano commented on Jun 28, 2017

    @dberzano
    Contributor

    @matthiasrichter I have opened OCCF-42 to track the issue of running a build with Clang.

  8. dr4kan commented on Jun 28, 2017

    @dr4kan
    ContributorAuthor

    @matthiasrichter PR #432 does not compile either even though the error is elsewhere now

    Utilities/aliceHLTwrapper/src/Component.cxx:169:13: error: use of undeclared identifier 'ENOKEY'
    return -ENOKEY;

  9. sawenzel commented on Jun 28, 2017

    @sawenzel
    Collaborator

    @matthiasrichter : Can you please investigate the ENOKEY problem or find an alternative solution.

  10. sawenzel commented on Jun 28, 2017

    @sawenzel
    Collaborator

    @dr4kan : You should be able to compile now (I provided a temporary fix on the ENOKEY problem). But we will keep this issue open until properly corrected.

  11. matthiasrichter commented on Jun 28, 2017

    @matthiasrichter
    Collaborator

    Thanks @sawenzel,probably cerrno on mac does not define this error code.Maybe I will drop all the error codes and use exceptions later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions