Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923302 - sci-libs/gdal-3.7.3 fails to build with libxml2-2.12: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlErrorPtr’ {aka ‘_xmlError*’} [-fpermissive]
Summary: sci-libs/gdal-3.7.3 fails to build with libxml2-2.12: error: invalid conversi...
Status: RESOLVED DUPLICATE of bug 917564
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-30 05:32 UTC by jorge
Modified: 2024-01-30 08:24 UTC (History)
3 users (show)

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


Attachments
build log (buildlog.txt,97.34 KB, text/plain)
2024-01-30 05:33 UTC, jorge
Details
emerge info (emergeinfo.txt,6.65 KB, text/plain)
2024-01-30 05:33 UTC, jorge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jorge 2024-01-30 05:32:38 UTC
After a gcc update (current version sys-devel/gcc-13.2.1_p20240113-r1), an update to gdal failed.

Reproducible: Always

Steps to Reproduce:
emerge -a gdal

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 5.48 s (backtrack: 0/20).

[ebuild     U  ] sci-libs/gdal-3.7.3 [3.7.0]

Would you like to merge these packages? [Yes/No] 
Actual Results:  
* Messages for package sci-libs/gdal-3.7.3:

 * ERROR: sci-libs/gdal-3.7.3::gentoo failed (compile phase):
 *   ninja -v -j16 -l0 failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 4804:  Called cmake_src_compile
 *   environment, line 1504:  Called cmake_build
 *   environment, line 1471:  Called eninja
 *   environment, line 2117:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/gdal-3.7.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/gdal-3.7.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/gdal-3.7.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/gdal-3.7.3/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/gdal-3.7.3/work/gdal-3.7.3_build'
 * S: '/var/tmp/portage/sci-libs/gdal-3.7.3/work/gdal-3.7.3'

Expected Results:  
gdal is updated
Comment 1 jorge 2024-01-30 05:33:12 UTC
Created attachment 883659 [details]
build log
Comment 2 jorge 2024-01-30 05:33:38 UTC
Created attachment 883660 [details]
emerge info
Comment 3 Alfred Wingate 2024-01-30 05:39:48 UTC
/var/tmp/portage/sci-libs/gdal-3.7.3/work/gdal-3.7.3/port/cpl_xml_validate.cpp: In function ‘void CPLLibXMLWarningErrorCallback(void*, const char*, ...)’:
/var/tmp/portage/sci-libs/gdal-3.7.3/work/gdal-3.7.3/port/cpl_xml_validate.cpp:917:48: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlErrorPtr’ {aka ‘_xmlError*’} [-fpermissive]
  917 |         xmlErrorPtr pErrorPtr = xmlGetLastError();
      |                                 ~~~~~~~~~~~~~~~^~
      |                                                |
      |                                                const xmlError* {aka const _xmlError*}
Comment 4 Alfred Wingate 2024-01-30 05:41:17 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34ed053b36d0d8f3985ff95d1052bbe9effffed3

Fixed in sci-libs/gdal-3.8.0
Comment 5 jorge 2024-01-30 05:50:25 UTC
I can confirm gdal-3.8.0 compiles in my system (by accepting amd64 keyword). In my system, gdal was pulled by:

equery depends gdal
 * These packages depend on gdal:
media-libs/opencv-4.8.0-r1 (sci-libs/gdal:0/33)
equery depends opencv
 * These packages depend on opencv:
media-plugins/frei0r-plugins-1.8.0 (facedetect ? >=media-libs/opencv-2.3.0[contribdnn,features2d,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?])
equery depends frei0r-plugins
 * These packages depend on frei0r-plugins:
media-libs/mlt-7.20.0-r1 (media-plugins/frei0r-plugins)
equery depends mlt
 * These packages depend on mlt:
kde-apps/kdenlive-23.08.3 (>=media-libs/mlt-7.14.0[ffmpeg,frei0r,qt5,sdl,xml])
equery depends kdenlive
 * These packages depend on kdenlive:
kde-apps/kdemultimedia-meta-23.08.3 (>=kde-apps/kdenlive-23.08.3:5)
equery depends kdemultimedia-meta
 * These packages depend on kdemultimedia-meta:
kde-apps/kde-apps-meta-23.08.3 (>=kde-apps/kdemultimedia-meta-23.08.3:5)
Comment 6 Andreas Sturmlechner gentoo-dev 2024-01-30 08:24:37 UTC

*** This bug has been marked as a duplicate of bug 917564 ***