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

[fix hooks] libarchive #3778

Merged
merged 3 commits into from
Jan 12, 2021
Merged

Conversation

danimtb
Copy link
Member

@danimtb danimtb commented Dec 3, 2020

Specify library name and version: libarchive/all

  • 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

An unexpected error happened and has been reported. Help is on its way! 🏇

@conan-center-bot
Copy link
Collaborator

An unexpected error happened and has been reported. Help is on its way! 🏇

1 similar comment
@conan-center-bot
Copy link
Collaborator

An unexpected error happened and has been reported. Help is on its way! 🏇

ericLemanissier
ericLemanissier previously approved these changes Dec 3, 2020
Croydon
Croydon previously approved these changes Dec 3, 2020
@uilianries uilianries closed this Dec 3, 2020
@uilianries uilianries reopened this Dec 3, 2020
uilianries
uilianries previously approved these changes Dec 3, 2020
@conan-center-bot
Copy link
Collaborator

Some configurations of 'libarchive/3.4.0' failed in build 4 (144802bfd747932c51602dd8d3a5a1ed75e4e37c):

@danimtb
Copy link
Member Author

danimtb commented Dec 15, 2020

🤔 I tried this configuration locally and it worked for me... any clue?

@danimtb
Copy link
Member Author

danimtb commented Dec 15, 2020

This is the error https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4061?view=msvc-160 but I don't why it fails in the CI but not in my machine. Maybe it is due to the version of the compiler?

@uilianries
Copy link
Member

I'm on Windows right now, lemme try to reproduce it.

@conan-center-bot
Copy link
Collaborator

Some configurations of 'libarchive/3.4.0' failed in build 5 (144802bfd747932c51602dd8d3a5a1ed75e4e37c):

@uilianries
Copy link
Member

My version is a bit older, but I can reproduce it:

libarchive/3.4.0: Folder: C:\Users\uilia\.conan\data\libarchive\3.4.0\_\_\export
libarchive/3.4.0: Exported revision: e1dbeefba98103fa6122b58204de7f8e
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=Visual Studio
compiler.runtime=MTd
compiler.version=16
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

...

libarchive/3.4.0: Calling build()
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19041.
-- The C compiler identification is MSVC 19.27.29111.0
-- The CXX compiler identification is MSVC 19.27.29111.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done

...

C:\Users\uilia\.conan\data\libarchive\3.4.0\_\_\build\d78f64a6ae7b5e68fbc1e982868cb58c2031c65d\source_subfolder\libarchive\archive_read_support_format_warc.c(344,2): error C4061: enumerator 'WT_NONE' in switch of enum 'warc_type_t'
is not explicitly handled by a case label [C:\Users\uilia\.conan\data\libarchive\3.4.0\_\_\build\d78f64a6ae7b5e68fbc1e982868cb58c2031c65d\build_subfolder\source_subfolder\libarchive\archive_static.vcxproj]
C:\Users\uilia\.conan\data\libarchive\3.4.0\_\_\build\d78f64a6ae7b5e68fbc1e982868cb58c2031c65d\source_subfolder\libarchive\archive_read_support_format_warc.c(75): message : see declaration of 'warc_type_t' [C:\Users\uilia\.conan\dat a\libarchive\3.4.0\_\_\build\d78f64a6ae7b5e68fbc1e982868cb58c2031c65d\build_subfolder\source_subfolder\libarchive\archive_static.vcxproj]

@uilianries
Copy link
Member

@danimtb It's a libarchive bug: libarchive/libarchive#1395

libarchive 3.4.0 doesn't support that profile, but 3.5.0 supports according that fix.

@danimtb
Copy link
Member Author

danimtb commented Dec 15, 2020

thanks for the look into! Indeed it seems a bug from the library, but why it does not raise in my machine?

This is my setup reported by CMake:

-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042.
-- The C compiler identification is MSVC 19.25.28614.0
-- The CXX compiler identification is MSVC 19.25.28614.0

@uilianries
Copy link
Member

According to this discussion, it's a limitation with v142 toolset

@conan-center-bot
Copy link
Collaborator

Some configurations of 'libarchive/3.4.0' failed in build 6 (38db1a76eeaf30ebf674c86288ab84bc077cfcb1):

@uilianries
Copy link
Member

Okay, our CI is not running Conan 1.32.0. It's blocked.

@mathbunnyru
Copy link
Contributor

@uilianries uilianries closed this Jan 8, 2021
@uilianries uilianries reopened this Jan 8, 2021
@conan-center-bot
Copy link
Collaborator

Some configurations of 'libarchive/3.4.0' failed in build 7 (38db1a76eeaf30ebf674c86288ab84bc077cfcb1):

@conan-center-bot
Copy link
Collaborator

Some configurations of 'libarchive/3.4.0' failed in build 8 (38db1a76eeaf30ebf674c86288ab84bc077cfcb1):

@conan-center-bot
Copy link
Collaborator

All green in build 9 (bcee037159da07b338aa64bcb48ff82973dcf9e0)! 😊

  • libarchive/3.4.0: Generated 80 packages (+ 1 invalid config from build()). All logs here
  • libarchive/3.4.3: Generated 88 packages. All logs here

@SpaceIm
Copy link
Contributor

SpaceIm commented Jan 12, 2021

@danimtb Could you take advantage of this PR to bump dependencies, cache cmake and delete fPIC if shared please? I could modify this in another PR, but it would be a pity to generate another revision just for that.

    def requirements(self):
        self.requires("zlib/1.2.11")
        if self.options.with_bzip2:
            self.requires("bzip2/1.0.8")
        if self.options.with_openssl:
            self.requires("openssl/1.1.1d") # => 1.1.1i
        if self.options.with_lz4:
            self.requires("lz4/1.9.2") # => 1.9.3
        if self.options.with_zstd:
            self.requires("zstd/1.4.3") # => 1.4.8
        if self.options.with_lzma:
            self.requires("xz_utils/5.2.4") # => 5.2.5
        if self.options.with_libxml2:
            self.requires("libxml2/2.9.9") # => 2.9.10
        if self.options.with_expat:
            self.requires("expat/2.2.7") # => 2.2.10
        if self.options.with_iconv:
            self.requires("libiconv/1.15") # => 1.16
        if self.options.with_pcreposix:
            self.requires("pcre/8.41") # => 8.44
        # TODO: deps not covered yet: cng, nettle, libb2

@mathbunnyru
Copy link
Contributor

@SpaceIm I would like it to be done it in another review. I do think that CI is not stable for this recipe, so it would be better to merge what already works.

@danimtb
Copy link
Member Author

danimtb commented Jan 12, 2021

Agree with @mathbunnyru, I prefer to have this merged and stick to the initial goal of the PR

Copy link
Contributor

@SpaceIm SpaceIm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so let's this PR get merged quickly

@conan-center-bot conan-center-bot merged commit 520dd7d into conan-io:master Jan 12, 2021
@dmn-star
Copy link
Contributor

This is the line SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /we4061") in libarchive CMakeList.txt that treats the harmless C4061 warning as an error.

You can simple patch this line out to get libarchive compiled on VS 2019 again.

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.

10 participants