app-emulation/wine: Detect and warn about GCC-5.4 compilation issues
authorNP-Hardass <NP-Hardass@gentoo.org>
Thu, 23 Mar 2017 09:16:54 +0000 (05:16 -0400)
committerNP-Hardass <NP-Hardass@gentoo.org>
Thu, 23 Mar 2017 09:24:52 +0000 (05:24 -0400)
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=613128

Package-Manager: Portage-2.3.3, Repoman-2.3.1

app-emulation/wine/wine-2.0.ebuild
app-emulation/wine/wine-2.1.ebuild
app-emulation/wine/wine-2.2.ebuild
app-emulation/wine/wine-2.3.ebuild
app-emulation/wine/wine-9999.ebuild

index 4e02afd8e30072bb71b82554675950f50346478b..dbaee4a3add1d6cdc8cd7120642b24712d83d496 100644 (file)
@@ -213,6 +213,14 @@ wine_build_environment_check() {
                ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
                ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
        fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
+               if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
+                       ewarn "Compilation can hang with CFLAGS=\"-march=i686\".  You can temporarily work"
+                       ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
+                       ewarn "See package.env in man 5 portage for more information on how to do this."
+                       ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
+               fi
+       fi
 
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
index beb9758568d1b7824c329b30f7b0b354c78e3749..dcf9b6d9b5d8e1a91bbdbdba5cfc6e3c35e77f19 100644 (file)
@@ -260,6 +260,14 @@ wine_build_environment_check() {
                ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
                ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
        fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
+               if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
+                       ewarn "Compilation can hang with CFLAGS=\"-march=i686\".  You can temporarily work"
+                       ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
+                       ewarn "See package.env in man 5 portage for more information on how to do this."
+                       ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
+               fi
+       fi
 
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
index beb9758568d1b7824c329b30f7b0b354c78e3749..dcf9b6d9b5d8e1a91bbdbdba5cfc6e3c35e77f19 100644 (file)
@@ -260,6 +260,14 @@ wine_build_environment_check() {
                ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
                ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
        fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
+               if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
+                       ewarn "Compilation can hang with CFLAGS=\"-march=i686\".  You can temporarily work"
+                       ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
+                       ewarn "See package.env in man 5 portage for more information on how to do this."
+                       ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
+               fi
+       fi
 
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
index beb9758568d1b7824c329b30f7b0b354c78e3749..dcf9b6d9b5d8e1a91bbdbdba5cfc6e3c35e77f19 100644 (file)
@@ -260,6 +260,14 @@ wine_build_environment_check() {
                ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
                ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
        fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
+               if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
+                       ewarn "Compilation can hang with CFLAGS=\"-march=i686\".  You can temporarily work"
+                       ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
+                       ewarn "See package.env in man 5 portage for more information on how to do this."
+                       ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
+               fi
+       fi
 
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
index beb9758568d1b7824c329b30f7b0b354c78e3749..dcf9b6d9b5d8e1a91bbdbdba5cfc6e3c35e77f19 100644 (file)
@@ -260,6 +260,14 @@ wine_build_environment_check() {
                ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
                ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
        fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
+               if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
+                       ewarn "Compilation can hang with CFLAGS=\"-march=i686\".  You can temporarily work"
+                       ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
+                       ewarn "See package.env in man 5 portage for more information on how to do this."
+                       ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
+               fi
+       fi
 
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."