Skip to content

Commit

Permalink
app-emulation/modules: fix -mpreferred-stack-boundary error
Browse files Browse the repository at this point in the history
The smpcall.c unit fails to build leading to the failure
described in https://bugs.gentoo.org/show_bug.cgi?id=559798#c63

compilation fails when SSE related user flags are set in CFLAGS.
This is same condition as described in bug report
https://bugs.gentoo.org/show_bug.cgi?id=492964#c9

In the kernel SSE code is generally disabled so -mpreferred-stack-boundary=3
is forced on even on 64 bit systems. If any user CFLAGS requires
SSE instructions than the requirement for gcc becomes -mpreferred-stack-boundary=4
leading to a compilation failure.

Temporary fix until this is embedded in linux-mod.eclass because
it's not specific to vmware, I have opened the bug report #571800.
  • Loading branch information
efferre79 committed Jan 16, 2016
1 parent f6f3ebb commit b4c99ef
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app-emulation/vmware-modules/vmware-modules-308.0.0-r1.ebuild
Expand Up @@ -59,7 +59,9 @@ pkg_setup() {
BUILD_TARGETS="auto-build KERNEL_DIR=${KERNEL_DIR} KBUILD_OUTPUT=${KV_OUT_DIR}"

enewgroup "${VMWARE_GROUP}"

filter-flags -mfpmath=sse -mavx -mpclmul -maes
append-cflags -mno-sse # Found a problem similar to bug #492964

for mod in ${VMWARE_MODULE_LIST}; do
MODULE_NAMES="${MODULE_NAMES} ${mod}(misc:${S}/${mod}-only)"
Expand Down
2 changes: 2 additions & 0 deletions app-emulation/vmware-modules/vmware-modules-308.0.0.ebuild
Expand Up @@ -58,7 +58,9 @@ pkg_setup() {
BUILD_TARGETS="auto-build KERNEL_DIR=${KERNEL_DIR} KBUILD_OUTPUT=${KV_OUT_DIR}"

enewgroup "${VMWARE_GROUP}"

filter-flags -mfpmath=sse -mavx -mpclmul -maes
append-cflags -mno-sse # Found a problem similar to bug #492964

for mod in ${VMWARE_MODULE_LIST}; do
MODULE_NAMES="${MODULE_NAMES} ${mod}(misc:${S}/${mod}-only)"
Expand Down
2 changes: 2 additions & 0 deletions app-emulation/vmware-modules/vmware-modules-308.0.1.ebuild
Expand Up @@ -59,7 +59,9 @@ pkg_setup() {
BUILD_TARGETS="auto-build KERNEL_DIR=${KERNEL_DIR} KBUILD_OUTPUT=${KV_OUT_DIR}"

enewgroup "${VMWARE_GROUP}"

filter-flags -mfpmath=sse -mavx -mpclmul -maes
append-cflags -mno-sse # Found a problem similar to bug #492964

for mod in ${VMWARE_MODULE_LIST}; do
MODULE_NAMES="${MODULE_NAMES} ${mod}(misc:${S}/${mod}-only)"
Expand Down
2 changes: 2 additions & 0 deletions app-emulation/vmware-modules/vmware-modules-308.1.0.ebuild
Expand Up @@ -59,7 +59,9 @@ pkg_setup() {
BUILD_TARGETS="auto-build KERNEL_DIR=${KERNEL_DIR} KBUILD_OUTPUT=${KV_OUT_DIR}"

enewgroup "${VMWARE_GROUP}"

filter-flags -mfpmath=sse -mavx -mpclmul -maes
append-cflags -mno-sse # Found a problem similar to bug #492964

for mod in ${VMWARE_MODULE_LIST}; do
MODULE_NAMES="${MODULE_NAMES} ${mod}(misc:${S}/${mod}-only)"
Expand Down

0 comments on commit b4c99ef

Please sign in to comment.