Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 839972

Summary: app-emulation/fs-uae-3.1.66 - src/od-win32/picasso96_win.cpp:3305:40: error: cast from 'std::nullptr_t' to 'uaecptr' {aka 'unsigned int'} loses precision [-fpermissive] (on musl)
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: James Le Cuirot <chewi>
Status: UNCONFIRMED ---    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=838469
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702, 839975    
Attachments: build.log
emerge --info
musl-1.2.3.patch

Description ernsteiswuerfel archtester 2022-04-21 21:17:15 UTC
Created attachment 772763 [details]
build.log

Thanks for fixing bug #838469!

But it only stops later at another build error:

[...]
/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/od-win32/picasso96_win.o src/od-win32/picasso96_win.cpp
src/od-win32/picasso96_win.cpp: In function 'uae_u32 picasso_BlitRect(TrapContext*)':
src/od-win32/picasso96_win.cpp:3305:40: error: cast from 'std::nullptr_t' to 'uaecptr' {aka 'unsigned int'} loses precision [-fpermissive]
 3305 |         result = BlitRect (renderinfo, (uaecptr)NULL, srcx, srcy, dstx, dsty, width, height, Mask, BLIT_SRC);
      |                                        ^
make[2]: *** [Makefile:4548: src/od-win32/picasso96_win.o] Error 1
Comment 1 ernsteiswuerfel archtester 2022-04-21 21:17:48 UTC
Created attachment 772766 [details]
emerge --info
Comment 3 ernsteiswuerfel archtester 2022-04-22 07:33:47 UTC
Created attachment 772823 [details, diff]
musl-1.2.3.patch

Applying the 2nd part of the Alpine patch worked fine! fs-uae builds again.