FS#75183 - [assimp] Build fails

Attached to Project: Arch Linux
Opened by Stefan Husmann (stefanhusmann) - Wednesday, 29 June 2022, 04:38 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 09 July 2022, 01:54 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: The URL https://github.com/gentoo/gentoo/raw/master/media-libs/assimp/files/assimp-5.2.3-drop-Werror-gcc-option.patch no longer works.


Additional info:
* package version(s) 5.2.4-1
* config and/or log files etc.

-- Shared libraries enabled
-- Looking for ZLIB...
-- Checking for module 'zzip-zlib-config'
-- Package 'zzip-zlib-config', required by 'virtual:world', not found
-- Found ZLIB: optimized;/usr/lib/libz.so;debug;/usr/lib/libz.so
-- Enabled importer formats: AMF 3DS AC ASE ASSBIN B3D BVH COLLADA DXF CSM HMP IRRMESH IQM IRR LWO LWS M3D MD2 MD3 MD5 MDC MDL NFF NDO OFF OBJ OGRE OPENGEX PLY MS3D COB BLEND IFC XGL FBX Q3D
Q3BSP RAW SIB SMD STL TERRAGEN 3D X X3D GLTF 3MF MMD
-- Disabled importer formats:
-- Enabled exporter formats: OBJ OPENGEX PLY 3DS ASSBIN ASSXML M3D COLLADA FBX STL X X3D GLTF 3MF PBRT ASSJSON STEP
-- Disabled exporter formats:
Building Assimp Viewer only supported on Windows.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/haawda/paketierung/not_maintained_by_me/assimp/repos/extra-x86_64/src/assimp-5.2.4/build
ninja: Entering directory `build'
[3/345] Building CXX object code/CMakeFiles/assimp.dir/Common/ZipArchiveIOSystem.cpp.o
FAILED: code/CMakeFiles/assimp.dir/Common/ZipArchiveIOSystem.cpp.o
/usr/lib/ccache/bin/c++ -DASSIMP_BUILD_DLL_EXPORT -DASSIMP_BUILD_NO_C4D_IMPORTER -DASSIMP_BUILD_NO_M3D_EXPORTER -DASSIMP_BUILD_NO_M3D_IMPORTER -DASSIMP_BUILD_NO_OWN_ZLIB -DASSIMP_IMPORTER_GLT
F_USE_OPEN3DGC=1 -DMINIZ_USE_UNALIGNED_LOADS_AND_STORES=0 -DOPENDDLPARSER_BUILD -DRAPIDJSON_HAS_STDSTRING=1 -DRAPIDJSON_NOMEMBERITERATORCLASS -Dassimp_EXPORTS -I/home/haawda/paketierung/not_m
aintained_by_me/assimp/repos/extra-x86_64/src/assimp-5.2.4/build/include -I/home/haawda/paketierung/not_maintained_by_me/assimp/repos/extra-x86_64/src/assimp-5.2.4/build -I/home/haawda/paketi
erung/not_maintained_by_me/assimp/repos/extra-x86_64/src/assimp-5.2.4/include -I/home/haawda/paketierung/not_maintained_by_me/assimp/repos/extra-x86_64/src/assimp-5.2.4/code -I/home/haawda/pa
ketierung/not_maintained_by_me/assimp/repos/extra-x86_64/src/assimp-5.2.4/. -I/home/haawda/paketierung/not_maintained_by_me/assimp/repos/extra-x86_64/src/assimp-5.2.4/code/../contrib/pugixml/
src -I/home/haawda/paketierung/not_maintained_by_me/assimp/repos/extra-x86_64/src/assimp-5.2.4/code/../contrib/rapidjson/include -I/home/haawda/paketierung/not_maintained_by_me/assimp/repos/e
xtra-x86_64/src/assimp-5.2.4/code/../contrib -I/home/haawda/paketierung/not_maintained_by_me/assimp/repos/extra-x86_64/src/assimp-5.2.4/code/../contrib/openddlparser/include -I/home/haawda/pa
ketierung/not_maintained_by_me/assimp/repos/extra-x86_64/src/assimp-5.2.4/code/../include -I/home/haawda/paketierung/not_maintained_by_me/assimp/repos/extra-x86_64/src/assimp-5.2.4/build/code
/../include -I/usr/include/minizip -fvisibility=hidden -fno-strict-aliasing -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2,-Wformat -Werror=format
-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -O3 -DNDEBUG -fPIC -std=gnu++11 -MD -MT code/CMakeFiles/assimp.dir/Common/ZipArchiveIOSystem.cpp.o -MF code/
CMakeFiles/assimp.dir/Common/ZipArchiveIOSystem.cpp.o.d -o code/CMakeFiles/assimp.dir/Common/ZipArchiveIOSystem.cpp.o -c /home/haawda/paketierung/not_maintained_by_me/assimp/repos/extra-x86_6
4/src/assimp-5.2.4/code/Common/ZipArchiveIOSystem.cpp
/home/haawda/paketierung/not_maintained_by_me/assimp/repos/extra-x86_64/src/assimp-5.2.4/code/Common/ZipArchiveIOSystem.cpp: In static member function 'static zlib_filefunc_def Assimp::IOSyst
em2Unzip::get(Assimp::IOSystem*)':
/home/haawda/paketierung/not_maintained_by_me/assimp/repos/extra-x86_64/src/assimp-5.2.4/code/Common/ZipArchiveIOSystem.cpp:199:13: error: 'zlib_filefunc_def' {aka 'struct zlib_filefunc_def_s
'} has no member named ?
199 | mapping.zopendisk_file = (opendisk_file_func)opendisk;
| ^~~~~~~~~~~~~~
| zopen_file
/home/haawda/paketierung/not_maintained_by_me/assimp/repos/extra-x86_64/src/assimp-5.2.4/code/Common/ZipArchiveIOSystem.cpp:199:31: error: 'opendisk_file_func' was not declared in this scope;
did you mean 'open_file_func'?
199 | mapping.zopendisk_file = (opendisk_file_func)opendisk;
| ^~~~~~~~~~~~~~~~~~
| open_file_func
[8/345] Building CXX object code/CMakeFiles/assimp.dir/Common/SceneCombiner.cpp.o
ninja: build stopped: subcommand failed.

* link to upstream bug report, if any: https://github.com/assimp/assimp/issues/4334


Steps to reproduce: Run makepkg
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Saturday, 09 July 2022, 01:54 GMT
Reason for closing:  Fixed
Additional comments about closing:  Thanks for the patch!
Comment by loqs (loqs) - Wednesday, 29 June 2022, 21:43 GMT
Does applying the attached diff resolve the issue for you?

Loading...