Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 838469 - app-emulation/fs-uae-3.1.66 - src/memory.cpp: In function 'bool mapped_malloc(addrbank*)': src/memory.cpp:1875:32: error: converting to 'bool' from 'std::nullptr_t' requires direct-initialization [-fpermissive] (on musl)
Summary: app-emulation/fs-uae-3.1.66 - src/memory.cpp: In function 'bool mapped_malloc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: James Le Cuirot
URL: https://github.com/FrodeSolheim/fs-ua...
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting 839975
  Show dependency tree
 
Reported: 2022-04-15 12:31 UTC by ernsteiswuerfel
Modified: 2022-04-21 21:40 UTC (History)
0 users

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


Attachments
build.log (fs-uae-3.1.66:20220415-122742.log,118.66 KB, text/plain)
2022-04-15 12:31 UTC, ernsteiswuerfel
Details
emerge --info (file_838469.txt,6.84 KB, text/plain)
2022-04-15 12:33 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2022-04-15 12:31:53 UTC
Created attachment 770882 [details]
build.log

Got this since a toolchain upgrade from stable to musl-1.2.3 + binutils-2.38-r1.

[...]
x86_64-gentoo-linux-musl-g++ -DHAVE_CONFIG_H -I.  -DLINUX -DUAE -DFSUAE -fno-pie -fno-PIE  -I./flac/include -I./gen -I./src -I./src/jit -I./src/include -I./src/od-fs -I./src/od-fs/include -I./src/od-win32 -I./src/od-win32/caps -I./libfsemu/include  -I./manymouse -I./glad/include     -I./prowizard/include -I./softfloat   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread  -DLUA_USE_POSIX -I/usr/include/AL   -I/usr/include/libpng16 -I/usr/include/SDL2 -D_REENTRANT    -fno-strict-overflow -fno-strict-aliasing -Wmissing-declarations -Waddress -fvisibility=hidden  -O2 -march=btver1 -mtune=btver1 -pipe -c -o src/mame/tm34010/tms34010.o src/mame/tm34010/tms34010.cpp
x86_64-gentoo-linux-musl-g++ -DHAVE_CONFIG_H -I.  -DLINUX -DUAE -DFSUAE -fno-pie -fno-PIE  -I./flac/include -I./gen -I./src -I./src/jit -I./src/include -I./src/od-fs -I./src/od-fs/include -I./src/od-win32 -I./src/od-win32/caps -I./libfsemu/include  -I./manymouse -I./glad/include     -I./prowizard/include -I./softfloat   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread  -DLUA_USE_POSIX -I/usr/include/AL   -I/usr/include/libpng16 -I/usr/include/SDL2 -D_REENTRANT    -fno-strict-overflow -fno-strict-aliasing -Wmissing-declarations -Waddress -fvisibility=hidden  -O2 -march=btver1 -mtune=btver1 -pipe -c -o src/memory.o src/memory.cpp
In file included from ./src/od-fs/threaddep/sem.h:4,
                 from ./src/od-fs/threaddep/thread.h:5,
                 from ./src/od-fs/defines.h:129,
                 from ./src/od-fs/sysconfig.h:279,
                 from src/memory.cpp:11:
src/memory.cpp: In function 'bool mapped_malloc(addrbank*)':
src/memory.cpp:1875:32: error: converting to 'bool' from 'std::nullptr_t' requires direct-initialization [-fpermissive]
 1875 |                         return NULL;
      |                                ^~~~
src/memory.cpp:1907:24: error: converting to 'bool' from 'std::nullptr_t' requires direct-initialization [-fpermissive]
 1907 |                 return NULL;
      |                        ^~~~
make[2]: *** [Makefile:4548: src/memory.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-emulation/fs-uae-3.1.66/work/fs-uae-3.1.66'
make[1]: *** [Makefile:4586: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-emulation/fs-uae-3.1.66/work/fs-uae-3.1.66'
make: *** [Makefile:2695: all] Error 2
 * ERROR: app-emulation/fs-uae-3.1.66::gentoo failed (compile phase):
Comment 1 ernsteiswuerfel archtester 2022-04-15 12:33:37 UTC
Created attachment 770885 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2022-04-17 09:41:35 UTC
The bug has been closed via the following commit(s):

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

commit c3d65847f6bf6ab9b8366eb6c5edcc381309b8ef
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2022-04-17 09:39:49 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2022-04-17 09:41:15 +0000

    app-emulation/fs-uae: Patch to fix musl build
    
    Closes: https://bugs.gentoo.org/838469
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 .../fs-uae/files/fs-uae-3.1.66-musl.patch          | 35 ++++++++++++++++++++++
 app-emulation/fs-uae/fs-uae-3.1.66.ebuild          |  1 +
 2 files changed, 36 insertions(+)