Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 956640 - dev-build/cmake-3.28.5 [gcc-15] - ../work/cmake-3.28.5/Source/cmCurl.cxx:89:26: error: invalid conversion from 'long int' to 'CURL_NETRC_OPTION' [-fpermissive]
Summary: dev-build/cmake-3.28.5 [gcc-15] - ../work/cmake-3.28.5/Source/cmCurl.cxx:89:2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 955091
  Show dependency tree
 
Reported: 2025-05-26 11:01 UTC by ernsteiswuerfel
Modified: 2025-05-26 19:57 UTC (History)
2 users (show)

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


Attachments
build.log (ppc, 3.28.5) (cmake-3.28.5:20250526-095315.log,92.94 KB, text/plain)
2025-05-26 11:01 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2025-05-26 11:01:14 UTC
Created attachment 929590 [details]
build.log (ppc, 3.28.5)

{...]
[ 17%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmCurl.cxx.o
cd /var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5_build/Source && /usr/bin/powerpc-unknown-linux-gnu-g++ -D_FILE_OFFSET_BITS=64 -I/var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5_build/Utilities -I/var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5_build/Source -I/var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5/Source -I/var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5/Source/LexerParser -isystem /var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5/Utilities/std -isystem /var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5/Utilities -isystem /usr/include/jsoncpp  -O2 -pipe -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -std=c++17 -Wno-deprecated-declarations -MD -MT Source/CMakeFiles/CMakeLib.dir/cmCurl.cxx.o -MF CMakeFiles/CMakeLib.dir/cmCurl.cxx.o.d -o CMakeFiles/CMakeLib.dir/cmCurl.cxx.o -c /var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5/Source/cmCurl.cxx
In file included from /var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5/Utilities/cm3p/curl/curl.h:8,
                 from /var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5/Source/cmCurl.h:9,
                 from /var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5/Source/cmCurl.cxx:3:
/var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5/Source/cmCurl.cxx: In function 'std::string cmCurlSetNETRCOption(CURL*, const std::string&, const std::string&)':
/var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5/Source/cmCurl.cxx:89:26: error: invalid conversion from 'long int' to 'CURL_NETRC_OPTION' [-fpermissive]
   89 |       curl_netrc_level = CURL_NETRC_OPTIONAL;
      |                          ^~~~~~~~~~~~~~~~~~~
      |                          |
      |                          long int
/var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5/Source/cmCurl.cxx:91:26: error: invalid conversion from 'long int' to 'CURL_NETRC_OPTION' [-fpermissive]
   91 |       curl_netrc_level = CURL_NETRC_REQUIRED;
      |                          ^~~~~~~~~~~~~~~~~~~
      |                          |
      |                          long int
/var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5/Source/cmCurl.cxx:93:26: error: invalid conversion from 'long int' to 'CURL_NETRC_OPTION' [-fpermissive]
   93 |       curl_netrc_level = CURL_NETRC_IGNORED;
      |                          ^~~~~~~~~~~~~~~~~~
      |                          |
      |                          long int
make[2]: *** [Source/CMakeFiles/CMakeLib.dir/build.make:720: Source/CMakeFiles/CMakeLib.dir/cmCurl.cxx.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5_build'
make[1]: *** [CMakeFiles/Makefile2:389: Source/CMakeFiles/CMakeLib.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-build/cmake-3.28.5/work/cmake-3.28.5_build'
make: *** [Makefile:156: all] Error 2
 * ERROR: dev-build/cmake-3.28.5::gentoo failed (compile phase):
 *   emake failed
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-26 11:02:54 UTC
Guess we can backport the fix until https://bugs.gentoo.org/941738#c31 is done.
Comment 2 Larry the Git Cow gentoo-dev 2025-05-26 11:06:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e838c548af0885947a5a3a8fc1204ebd598e3b8e

commit e838c548af0885947a5a3a8fc1204ebd598e3b8e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-05-26 11:05:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-26 11:05:26 +0000

    dev-build/cmake: backport curl fix to 3.28.5 for ppc
    
    Bug: https://bugs.gentoo.org/953060
    Closes: https://bugs.gentoo.org/956640
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-build/cmake/cmake-3.28.5.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 3 ernsteiswuerfel archtester 2025-05-26 19:57:08 UTC
Thanks! Builds fine now.