Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937038 - [guru] sci-physics/openmodelica-1.23.1 fails to compile: zip.c:1249:28: error: assignment to const long unsigned int from incompatible pointer type const z_crc_t {aka const unsigned int } [-Wincompatible-pointer-types]
Summary: [guru] sci-physics/openmodelica-1.23.1 fails to compile: zip.c:1249:28: error...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ivan Lloro
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-01 08:12 UTC by Agostino Sarubbo
Modified: 2024-08-05 05:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,405.41 KB, text/plain)
2024-08-01 08:12 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-08-01 08:12:55 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-physics/openmodelica-1.23.1 fails to compile.
Discovered on: amd64 (internal ref: guru_ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0003
Comment 1 Agostino Sarubbo gentoo-dev 2024-08-01 08:12:57 UTC
Created attachment 898738 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-08-01 08:12:57 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: OMCompiler/3rdParty/FMIL/Config.cmake/Minizip/CMakeFiles/minizip.dir/__/__/ThirdParty/Minizip/minizip/zip.c.o 
/var/tmp/portage/sci-physics/openmodelica-1.23.1/work/openmodelica-1.23.1/OMCompiler/3rdParty/FMIL/ThirdParty/Minizip/minizip/zip.c:1249:28: error: assignment to ‘const long unsigned int *’ from incompatible pointer type ‘const z_crc_t *’ {aka ‘const unsigned int *’} [-Wincompatible-pointer-types]
Comment 3 Ivan Lloro 2024-08-02 08:31:40 UTC
After a quick assessment, the ebuild fails to compile with GCC 14 (even when with GCC 13 works fine). Let's check on the root cause later.
Comment 4 Ivan Lloro 2024-08-04 19:57:17 UTC
This particular bug was due to an old third-party library (minizip) version that failed to build with GCC 14. This has been addressed and the relevant commit will close this particular bug.

Other GCC 14 compilation issue(s) still remaining.
Comment 5 Ivan Lloro 2024-08-04 21:27:26 UTC
No GCC 14 compilation issues remain after commit 613fb0e86114b18e5d66a26804a46ea515f18f17 (which solves a different unreported bug).
Comment 6 Larry the Git Cow gentoo-dev 2024-08-05 05:20:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dddee384e3b565220f190073acce350c770b4196

commit dddee384e3b565220f190073acce350c770b4196
Author:     Ivan Lloro <ivan.lloro.boada@gmail.com>
AuthorDate: 2024-08-04 19:50:48 +0000
Commit:     Ivan Lloro <ivan.lloro.boada@gmail.com>
CommitDate: 2024-08-04 19:51:34 +0000

    sci-physics/openmodelica: Update third party Minizip library to solve compilation error with GCC 14
    
    Closes: https://bugs.gentoo.org/937038
    Signed-off-by: Ivan Lloro <ivan.lloro.boada@gmail.com>

 sci-physics/openmodelica/openmodelica-1.23.1.ebuild | 4 ++++
 1 file changed, 4 insertions(+)