conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
945 stars 1.72k forks source link

[package] libarchive/3.5.1: Compile error on iOS clang #4316

Closed tolstikh closed 4 days ago

tolstikh commented 3 years ago

Package and Environment Details (include every applicable attribute)

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

Configuration (profile_host):                                                                                                                                                                                                                                                                                   
[settings]                                                                                                                                                                                                                                                                                                      
arch=armv8                                                                                                                                                                                                                                                                                                      
arch_build=x86_64                                                                                                                                                                                                                                                                                               
build_type=Release                                                                                                                                                                                                                                                                                              
compiler=apple-clang                                                                                                                                                                                                                                                                                            
compiler.libcxx=libc++                                                                                                                                                                                                                                                                                          
compiler.version=12.0                                                                                                                                                                                                                                                                                           
os=iOS                                                                                                                                                                                                                                                                                                          
os.version=13.1                                                                                                                                                                                                                                                                                                 
os_build=Macos                                                                                                                                                                                                                                                                                                  
[options]                                                                                                                                                                                                                                                                                                       
libarchive:with_acl=False                                                                                                                                                                                                                                                                                       
libarchive:with_iconv=False                                                                                                                                                                                                                                                                                     
libarchive:with_openssl=True                                                                                                                                                                                                                                                                                    
[build_requires]                                                                                                                                                                                                                                                                                                
*: ios-cmake/3.1.2                                                                                                                                                                                                                                                                               
[env]                                                                                                                                                                                                                                                                                                           

Configuration (profile_build):                                                                                                                                                                                                                                                                                  
[settings]                                                                                                                                                                                                                                                                                                      
arch=x86_64                                                                                                                                                                                                                                                                                                     
arch_build=x86_64                                                                                                                                                                                                                                                                                               
build_type=Release                                                                                                                                                                                                                                                                                              
compiler=apple-clang                                                                                                                                                                                                                                                                                            
compiler.libcxx=libc++                                                                                                                                                                                                                                                                                          
compiler.version=12.0                                                                                                                                                                                                                                                                                           
os=Macos                                                                                                                                                                                                                                                                                                        
os_build=Macos                                                                                                                                                                                                                                                                                                  
[options]                                                                                                                                                                                                                                                                                                       
[build_requires]                                                                                                                                                                                                                                                                                                
[env]

Steps to reproduce (Include if Applicable)

Just try to create the package, this error should happen. It seems some C flags aren't being set correctly, because I can get it to build outside of Conan.

Logs (Include/Attach if Applicable)

Click to expand log ``` [ 6%] Building C object source_subfolder/libarchive/CMakeFiles/archive_static.dir/archive_entry_link_resolver.c.o [ 8%] Building C object source_subfolder/libarchive/CMakeFiles/archive_static.dir/archive_entry_strmode.c.o [ 8%] Building C object source_subfolder/libarchive/CMakeFiles/archive_static.dir/archive_entry_stat.c.o [ 10%] Building C object source_subfolder/libarchive/CMakeFiles/archive_static.dir/archive_entry_xattr.c.o [ 10%] Building C object source_subfolder/libarchive/CMakeFiles/archive_static.dir/archive_getdate.c.o [ 10%] Building C object source_subfolder/libarchive/CMakeFiles/archive_static.dir/archive_hmac.c.o [ 12%] Building C object source_subfolder/libarchive/CMakeFiles/archive_static.dir/archive_match.c.o [ 12%] Building C object source_subfolder/libarchive/CMakeFiles/archive_static.dir/archive_options.c.o [ 14%] Building C object source_subfolder/libarchive/CMakeFiles/archive_static.dir/archive_pathmatch.c.o [ 14%] Building C object source_subfolder/libarchive/CMakeFiles/archive_static.dir/archive_pack_dev.c.o [ 14%] Building C object source_subfolder/libarchive/CMakeFiles/archive_static.dir/archive_ppmd8.c.o [ 16%] Building C object source_subfolder/libarchive/CMakeFiles/archive_static.dir/archive_ppmd7.c.o /Users/andrey/.conan/data/libarchive/3.5.1/wrnch/testing/build/b0e6526698f9063382954542d357e1a917f1e7c0/source_subfolder/libarchive/archive_getdate.c:706:12: error: expected ';' after expression __time64_t tmptime; ^ ; /Users/andrey/.conan/data/libarchive/3.5.1/wrnch/testing/build/b0e6526698f9063382954542d357e1a917f1e7c0/source_subfolder/libarchive/archive_getdate.c:706:2: error: use of undeclared identifier '__time64_t' __time64_t tmptime; ^ /Users/andrey/.conan/data/libarchive/3.5.1/wrnch/testing/build/b0e6526698f9063382954542d357e1a917f1e7c0/source_subfolder/libarchive/archive_getdate.c:706:13: error: use of undeclared identifier 'tmptime' __time64_t tmptime; ^ /Users/andrey/.conan/data/libarchive/3.5.1/wrnch/testing/build/b0e6526698f9063382954542d357e1a917f1e7c0/source_subfolder/libarchive/archive_getdate.c:763:12: error: expected ';' after expression __time64_t tmptime; ^ ; /Users/andrey/.conan/data/libarchive/3.5.1/wrnch/testing/build/b0e6526698f9063382954542d357e1a917f1e7c0/source_subfolder/libarchive/archive_getdate.c:763:2: error: use of undeclared identifier '__time64_t' __time64_t tmptime; ^ /Users/andrey/.conan/data/libarchive/3.5.1/wrnch/testing/build/b0e6526698f9063382954542d357e1a917f1e7c0/source_subfolder/libarchive/archive_getdate.c:763:13: error: use of undeclared identifier 'tmptime' __time64_t tmptime; ^ /Users/andrey/.conan/data/libarchive/3.5.1/wrnch/testing/build/b0e6526698f9063382954542d357e1a917f1e7c0/source_subfolder/libarchive/archive_getdate.c:807:12: error: expected ';' after expression __time64_t tmptime; ^ ; /Users/andrey/.conan/data/libarchive/3.5.1/wrnch/testing/build/b0e6526698f9063382954542d357e1a917f1e7c0/source_subfolder/libarchive/archive_getdate.c:807:2: error: use of undeclared identifier '__time64_t' __time64_t tmptime; ^ /Users/andrey/.conan/data/libarchive/3.5.1/wrnch/testing/build/b0e6526698f9063382954542d357e1a917f1e7c0/source_subfolder/libarchive/archive_getdate.c:807:13: error: use of undeclared identifier 'tmptime' __time64_t tmptime; ^ /Users/andrey/.conan/data/libarchive/3.5.1/wrnch/testing/build/b0e6526698f9063382954542d357e1a917f1e7c0/source_subfolder/libarchive/archive_getdate.c:843:12: error: expected ';' after expression __time64_t tmptime; ^ ; /Users/andrey/.conan/data/libarchive/3.5.1/wrnch/testing/build/b0e6526698f9063382954542d357e1a917f1e7c0/source_subfolder/libarchive/archive_getdate.c:843:2: error: use of undeclared identifier '__time64_t' __time64_t tmptime; ^ /Users/andrey/.conan/data/libarchive/3.5.1/wrnch/testing/build/b0e6526698f9063382954542d357e1a917f1e7c0/source_subfolder/libarchive/archive_getdate.c:843:13: error: use of undeclared identifier 'tmptime' __time64_t tmptime; ^ [ 16%] Building C object source_subfolder/libarchive/CMakeFiles/archive_static.dir/archive_random.c.o /Users/andrey/.conan/data/libarchive/3.5.1/wrnch/testing/build/b0e6526698f9063382954542d357e1a917f1e7c0/source_subfolder/libarchive/archive_getdate.c:998:12: error: expected ';' after expression __time64_t tmptime; ^ ; /Users/andrey/.conan/data/libarchive/3.5.1/wrnch/testing/build/b0e6526698f9063382954542d357e1a917f1e7c0/source_subfolder/libarchive/archive_getdate.c:998:2: error: use of undeclared identifier '__time64_t' __time64_t tmptime; ^ /Users/andrey/.conan/data/libarchive/3.5.1/wrnch/testing/build/b0e6526698f9063382954542d357e1a917f1e7c0/source_subfolder/libarchive/archive_getdate.c:998:13: error: use of undeclared identifier 'tmptime' __time64_t tmptime; ^ 15 errors generated. make[2]: *** [source_subfolder/libarchive/CMakeFiles/archive_static.dir/archive_getdate.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 18%] Building C object source_subfolder/libarchive/CMakeFiles/archive_static.dir/archive_rb.c.o make[1]: *** [source_subfolder/libarchive/CMakeFiles/archive_static.dir/all] Error 2 make: *** [all] Error 2 ```
SpaceIm commented 3 years ago

Is it still broken? I can cross-compile libarchive to iOS with these options and apple-clang 12, but ios-cmake is not in my build requirements.

perseoGI commented 4 days ago

Hi there, I was reviewing old issues and I have come across this one. The libarchive/3.5.1 is no longer supported by Conan Center Index.

I'm closing this issue as this recipe has been modified already modified since this issue was open. If for some reason the problem remains nowadays, do not hesitate to reopen this issue or create a new ticket with updated information, preferably using conan v2.

Happy coding 🐸