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

libelfin: fix build with Clang 10 #5069

Merged
merged 3 commits into from Mar 29, 2021

Conversation

klimkin
Copy link
Contributor

@klimkin klimkin commented Mar 26, 2021

Specify library name and version: libelfin/0.3

  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

@conan-center-bot
Copy link
Collaborator

Failure in build 1 (a83e308350c40ce5049169894ca26407e17ab140):

  • libelfin/0.3@:
    CI failed to create some packages (All logs)

    Logs for packageID 264a397d120095b26217828520f5d9c8d0469b2f:
    [settings]
    arch=x86_64
    arch_build=x86_64
    build_type=Release
    compiler=clang
    compiler.libcxx=libstdc++
    compiler.version=10
    os=Linux
    os_build=Linux
    [options]
    libelfin:shared=False
    
    [ 36%] Building CXX object CMakeFiles/dwarf++.dir/source_subfolder/dwarf/cursor.cc.o
    [ 42%] Building CXX object CMakeFiles/dwarf++.dir/source_subfolder/dwarf/die.cc.o
    [ 47%] Building CXX object CMakeFiles/dwarf++.dir/source_subfolder/dwarf/die_str_map.cc.o
    [ 52%] Building CXX object CMakeFiles/dwarf++.dir/source_subfolder/dwarf/dwarf.cc.o
    [ 57%] Building CXX object CMakeFiles/dwarf++.dir/source_subfolder/dwarf/elf.cc.o
    [ 63%] Building CXX object CMakeFiles/dwarf++.dir/source_subfolder/dwarf/expr.cc.o
    [ 68%] Building CXX object CMakeFiles/dwarf++.dir/source_subfolder/dwarf/line.cc.o
    [ 73%] Building CXX object CMakeFiles/dwarf++.dir/source_subfolder/dwarf/rangelist.cc.o
    [ 78%] Building CXX object CMakeFiles/dwarf++.dir/source_subfolder/dwarf/value.cc.o
    [ 84%] Building CXX object CMakeFiles/dwarf++.dir/source_subfolder/dwarf/to_string.cc.o
    [ 89%] Linking CXX static library lib/libdwarf++.a
    [ 89%] Built target dwarf++
    Makefile:148: recipe for target 'all' failed
    libelfin/0.3: 
    CMake Warning:
      Manually-specified variables were not used by the project:
    
        CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    
    
    In file included from /home/conan/w/BuildSingleReference/.conan/data/libelfin/0.3/_/_/build/264a397d120095b26217828520f5d9c8d0469b2f/source_subfolder/elf/mmap_loader.cc:5:
    In file included from /home/conan/w/BuildSingleReference/.conan/data/libelfin/0.3/_/_/build/264a397d120095b26217828520f5d9c8d0469b2f/source_subfolder/elf/elf++.hh:9:
    /home/conan/w/BuildSingleReference/.conan/data/libelfin/0.3/_/_/build/264a397d120095b26217828520f5d9c8d0469b2f/source_subfolder/elf/data.hh:558:22: error: cannot assign to non-static data member within const member function 'set_binding'
                    info = (info & 0xF) | ((unsigned char)v << 4);
                    ~~~~ ^
    /home/conan/w/BuildSingleReference/.conan/data/libelfin/0.3/_/_/build/264a397d120095b26217828520f5d9c8d0469b2f/source_subfolder/elf/data.hh:556:14: note: member function 'elf::Sym<elf::Elf64, Order>::set_binding' is declared const here
            void set_binding(stb v) const
            ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /home/conan/w/BuildSingleReference/.conan/data/libelfin/0.3/_/_/build/264a397d120095b26217828520f5d9c8d0469b2f/source_subfolder/elf/elf.cc:5:
    In file included from /home/conan/w/BuildSingleReference/.conan/data/libelfin/0.3/_/_/build/264a397d120095b26217828520f5d9c8d0469b2f/source_subfolder/elf/elf++.hh:9:
    /home/conan/w/BuildSingleReference/.conan/data/libelfin/0.3/_/_/build/264a397d120095b26217828520f5d9c8d0469b2f/source_subfolder/elf/data.hh:558:22: error: cannot assign to non-static data member within const member function 'set_binding'
                    info = (info & 0xF) | ((unsigned char)v << 4);
                    ~~~~ ^
    /home/conan/w/BuildSingleReference/.conan/data/libelfin/0.3/_/_/build/264a397d120095b26217828520f5d9c8d0469b2f/source_subfolder/elf/data.hh:556:14: note: member function 'elf::Sym<elf::Elf64, Order>::set_binding' is declared const here
            void set_binding(stb v) const
            ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    make[2]: *** [CMakeFiles/elf++.dir/source_subfolder/elf/mmap_loader.cc.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    1 error generated.
    make[2]: *** [CMakeFiles/elf++.dir/source_subfolder/elf/elf.cc.o] Error 1
    make[1]: *** [CMakeFiles/elf++.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    make: *** [all] Error 2
    libelfin/0.3: WARN: Build folder is dirty, removing it: /home/conan/w/BuildSingleReference/.conan/data/libelfin/0.3/_/_/build/264a397d120095b26217828520f5d9c8d0469b2f
    libelfin/0.3: ERROR: Package '264a397d120095b26217828520f5d9c8d0469b2f' build failed
    libelfin/0.3: WARN: Build folder /home/conan/w/BuildSingleReference/.conan/data/libelfin/0.3/_/_/build/264a397d120095b26217828520f5d9c8d0469b2f
    ERROR: libelfin/0.3: Error in build() method, line 53
    	cmake.build()
    	ConanException: Error 2 while executing cmake --build '/home/conan/w/BuildSingleReference/.conan/data/libelfin/0.3/_/_/build/264a397d120095b26217828520f5d9c8d0469b2f' '--' '-j3'
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

@klimkin klimkin changed the title Retrigger libelfin builds for downstream dependencies libelfin: fix build with Clang 10 Mar 26, 2021
@conan-center-bot
Copy link
Collaborator

All green in build 2 (e2cb5c3967bfdb6a0c918b4ef9a9ec21769ecd6a):

  • libelfin/0.3@:
    All packages built successfully! (All logs)

Co-authored-by: Javier G. Sogo <jgsogo@gmail.com>
@conan-center-bot
Copy link
Collaborator

All green in build 3 (d399baa83a1ee069b631d2e86f049404ad0ec0df):

  • libelfin/0.3@:
    All packages built successfully! (All logs)

@prince-chrismc
Copy link
Contributor

Please add to the title "and missing binaries" It's an experiment to see if it gets more reviews 🙏

@conan-center-bot conan-center-bot merged commit ac8102c into conan-io:master Mar 29, 2021
@klimkin klimkin deleted the feature/trigger-libelfin branch March 29, 2021 15:51
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

Successfully merging this pull request may close these issues.

None yet

7 participants