Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 841746 - sci-libs/coinor-vol-1.5.4 - OsiVolSolverInterfaceIO.cpp: error: invalid cast from type std::nullptr_t to type const char
Summary: sci-libs/coinor-vol-1.5.4 - OsiVolSolverInterfaceIO.cpp: error: invalid cast ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 839975
  Show dependency tree
 
Reported: 2022-04-29 17:38 UTC by Toralf Förster
Modified: 2022-08-06 03:50 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.36 KB, text/plain)
2022-04-29 17:38 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,129.18 KB, text/plain)
2022-04-29 17:38 UTC, Toralf Förster
Details
environment (environment,24.04 KB, text/plain)
2022-04-29 17:38 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,18.19 KB, application/x-bzip)
2022-04-29 17:38 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,9.68 KB, application/x-bzip)
2022-04-29 17:38 UTC, Toralf Förster
Details
sci-libs:coinor-vol-1.5.4:20220429-173316.log (sci-libs:coinor-vol-1.5.4:20220429-173316.log,18.29 KB, text/plain)
2022-04-29 17:38 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-04-29 17:38:25 UTC
./../VolVolume.hpp:503:29: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  503 |       register const double ll = VolAbs(lcost);
      |                             ^~
OsiVolSolverInterfaceIO.cpp: In member function 'virtual void OsiVolSolverInterface::writeMps(const char*, const char*, double) const':
OsiVolSolverInterfaceIO.cpp:426:22: error: invalid cast from type 'std::nullptr_t' to type 'const char*'
  426 |                      reinterpret_cast<const char *> (NULL) /*integrality*/,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20220428-210012

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.3.0 *
clang/llvm (if any):
clang version 14.0.1
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.1
Python 3.9.12
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.60.0
  [2]   rust-1.60.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 11.0.14_p9 [openjdk-bin-11]
Available Java Virtual Machines:
  [1]   openjdk-bin-11  system-vm

php cli:
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *

  HEAD of ::gentoo
commit 19c6f75ecd19ba4cfdddcd3014b265bd3e9b68a7
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Apr 29 16:33:56 2022 +0000

    2022-04-29 16:33:56 UTC

emerge -qpvO sci-libs/coinor-vol
[ebuild  N    ] sci-libs/coinor-vol-1.5.4  USE="-doc -examples -static-libs -test"
Comment 1 Toralf Förster gentoo-dev 2022-04-29 17:38:26 UTC
Created attachment 775491 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-04-29 17:38:27 UTC
Created attachment 775494 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-04-29 17:38:29 UTC
Created attachment 775497 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-04-29 17:38:30 UTC
Created attachment 775500 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-04-29 17:38:31 UTC
Created attachment 775503 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-04-29 17:38:32 UTC
Created attachment 775506 [details]
sci-libs:coinor-vol-1.5.4:20220429-173316.log
Comment 8 Larry the Git Cow gentoo-dev 2022-08-06 03:50:58 UTC
The bug has been closed via the following commit(s):

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

commit 34adbf714860fb2c1f167181de149ccd01e14efc
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-06 03:44:28 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-06 03:49:29 +0000

    sci-libs/coinor-vol: fix build w/ musl 1.2.3
    
    Closes: https://bugs.gentoo.org/841746
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/coinor-vol/coinor-vol-1.5.4.ebuild        |  6 +++++-
 .../files/coinor-vol-1.5.4-musl-1.2.3-null.patch   | 24 ++++++++++++++++++++++
 2 files changed, 29 insertions(+), 1 deletion(-)