Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917168 - app-emulation/wine-proton-8.0.4: error conflicting types for powf have float(float, float)
Summary: app-emulation/wine-proton-8.0.4: error conflicting types for powf have float(...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-11 12:31 UTC by Michael Egger
Modified: 2023-11-11 20:11 UTC (History)
1 user (show)

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


Attachments
build.log (build.log.bz2,287.69 KB, application/x-bzip2)
2023-11-11 12:31 UTC, Michael Egger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Egger 2023-11-11 12:31:11 UTC
Created attachment 874572 [details]
build.log

app-emulation/wine-proton-8.0.4 fails to build withcross-x86_64-w64-mingw32/gcc-13.2.1_p20231014::crossdev
and cross-i686-w64-mingw32/gcc-13.2.1_p20231014::crossdev due to error: conflicting types for ‘powf’; have ‘float(float,  float)’.

The system is configured to use clang as system compiler, however exceptions have been made for gcc and wine-proton:

$ cat /etc/portage/package.env/clanged
app-emulation/wine-proton compiler-gcc # gets built with crossdev toolchain

cross-i686-w64-mingw32/binutils compiler-gcc # Not compatible with clang
cross-i686-w64-mingw32/gcc compiler-gcc # Not compatible with clang
cross-i686-w64-mingw32/mingw64-runtime compiler-gcc # Not compatible with clang

cross-x86_64-w64-mingw32/binutils compiler-gcc # Not compatible with clang
cross-x86_64-w64-mingw32/gcc compiler-gcc # Not compatible with clang
cross-x86_64-w64-mingw32/mingw64-runtime compiler-gcc # Not compatible with clang


app-emulation/wine-proton-8.0.3c::gentoo was built with the following:
USE="alsa crossdev-mingw custom-cflags fontconfig gecko gstreamer llvm-libunwind mono nls pulseaudio sdl ssl strip udev udisks unwind usb xcomposite xinerama -osmesa -perl (-selinux) -v4l" ABI_X86="32 64"
CFLAGS="-march=native -O3 -pipe"
CXXFLAGS="-march=native -O3 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-log strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
LDFLAGS="-Wl,-O2 -Wl,-z,relro -Wl,--as-needed"


cross-i686-w64-mingw32/gcc-13.2.1_p20231014::crossdev was built with the following:
USE="custom-cflags cxx fortran graphite jit lto nls nptl openmp pgo ssp zstd -ada -cet -d -debug (-default-stack-clash-protection) -default-znow -doc -fixed-point -go (-hardened) -ieee-long-double -libssp -modula2 (-multilib) -objc -objc++ -objc-gc (-pch) (-pie) -sanitize -systemtap -test -valgrind -vanilla -vtv" ABI_X86="(64)"
CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"
FEATURES="config-protect-if-modified warn-on-large-env binpkg-logs protect-owned clean-logs parallel-fetch news userpriv network-sandbox buildpkg-live binpkg-multi-instance nodoc strict ebuild-locks binpkg-dostrip pid-sandbox pkgdir-index-trusted buildpkg assume-digests strict-keepdir userfetch unmerge-logs usersync preserve-libs unknown-features-warn distlocks usersandbox qa-unresolved-soname-deps xattr fixlafiles ipc-sandbox multilib-strict unmerge-orphans binpkg-docompress split-log sfperms sandbox merge-sync"
LDFLAGS="-Wl,-O2 -Wl,--as-needed"


cross-x86_64-w64-mingw32/gcc-13.2.1_p20231014::crossdev was built with the following:
USE="custom-cflags cxx fortran graphite jit lto nls nptl openmp pgo ssp zstd -ada -cet -d -debug (-default-stack-clash-protection) -default-znow -doc -fixed-point -go (-hardened) -ieee-long-double -libssp -modula2 (-multilib) -objc -objc++ -objc-gc (-pch) (-pie) -sanitize -systemtap -test -valgrind -vanilla -vtv" ABI_X86="(64)"
CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"
FEATURES="config-protect-if-modified warn-on-large-env binpkg-logs protect-owned clean-logs parallel-fetch news userpriv network-sandbox buildpkg-live binpkg-multi-instance nodoc strict ebuild-locks binpkg-dostrip pid-sandbox pkgdir-index-trusted buildpkg assume-digests strict-keepdir userfetch unmerge-logs usersync preserve-libs unknown-features-warn distlocks usersandbox qa-unresolved-soname-deps xattr fixlafiles ipc-sandbox multilib-strict unmerge-orphans binpkg-docompress split-log sfperms sandbox merge-sync"
LDFLAGS="-Wl,-O2 -Wl,--as-needed"
Comment 1 Michael Egger 2023-11-11 12:45:33 UTC
Seem like this issue has been caused by setting CPP="clang-cpp" in make.conf, but not correctly overriding it in the compiler-gcc env profiles.

This can be closed I think.
Comment 2 Ionen Wolkens gentoo-dev 2023-11-11 20:11:47 UTC
If you don't use mingw for anything else than wine, I'd personally recommend to just USE=-crossdev-mingw and use mingw64-toolchain instead (note that wine-proton *always* use mingw, so disabling that won't give you a PE-less build)

It also builds fine with clang last I know of (last tested with clang 17.0.x or so and with musl), and should save you a hassle in general.