Summary: | sys-firmware/seabios-1.16.0 fails to compile with clang: error: unknown argument: -mpreferred-stack-boundary=2 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Matthias Maier <tamiko> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | virtualization |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/D4PDLDTZA5BTLE3KU2MVF76JYHDB6DK6/#LK75IBPVVYZOLVPK46KL27GGWYE5OVFJ | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 408963 | ||
Attachments: | build.log |
Description
Agostino Sarubbo
2022-12-19 08:11:53 UTC
Created attachment 843617 [details]
build.log
build log and emerge --info
The actual errors are odd, to say the least: clang -Iout/ -Isrc -Os -MD -g -Wall -Wno-strict-aliasing -Wold-style-definition -Wtype-limits -m32 -march=i386 -mregparm=3 -mpreferred-stack-boundary=2 -minline-all-stringops -fomit-frame-pointer -freg-struct-return -ffreestanding -fno-delete-null-pointer-checks -ffunction-sections -fdata-sections -fno-common -fno-merge-constants -fno-pie -fno-stack-protector -Wno-address-of-packed-member -fcf-protection=none -DMODE16=0 -DMODESEGMENT=0 -c src/pnpbios.c -o out/src/pnpbios.o clang-15: error: unknown argument: '-mpreferred-stack-boundary=2' clang-15: warning: optimization flag '-fno-merge-constants' is not supported [-Wignored-optimization-argument] clang-15: warning: optimization flag '-fno-defer-pop' is not supported [-Wignored-optimization-argument] make: *** [Makefile:137: out/src/asm-offsets.s] Error 1 make: *** Waiting for unfinished jobs.... clang-15clang-15clang-15clang-15: : : : error: error: error: error: unknown argument: '-mpreferred-stack-boundary=2'unknown argument: '-mpreferred-stack-boundary=2'unknown argument: '-mpreferred-stack-boundary=2'unknown argument: '-mpreferred-stack-boundary=2' clang-15clang-15clang-15clang-15clang-15: : clang-15: : : : error: error: error: error: error: error: unknown argument: '-mpreferred-stack-boundary=2'unknown argument: '-mpreferred-stack-boundary=2'unknown argument: '-mpreferred-stack-boundary=2'unknown argument: '-mpreferred-stack-boundary=2'unknown argument: '-mpreferred-stack-boundary=2' unknown argument: '-mpreferred-stack-boundary=2' Not sure how to get the mangled output that the tinderbox produced, but I can indeed get: clang -Iout/ -Isrc -Os -MD -g -Wall -Wno-strict-aliasing -Wold-style-definition -Wtype-limits -m32 -march=i386 -mregparm=3 -mpreferred-stack-boundary=2 -minline-all-stringops -fomit-frame-pointer -freg-struct-return -ffreestanding -fno-delete-null-pointer-checks -ffunction-sections -fdata-sections -fno-common -fno-merge-constants -fno-pie -fno-stack-protector -Wno-address-of-packed-member -fcf-protection=none -DMODE16=0 -DMODESEGMENT=0 -c src/misc.c -o out/src/misc.o clang-15: error: unknown argument: '-mpreferred-stack-boundary=2' clang-15: warning: optimization flag '-fno-merge-constants' is not supported [-Wignored-optimization-argument] make: *** [Makefile:141: out/src/misc.o] Error 1 * ERROR: sys-firmware/seabios-1.16.0::gentoo failed (compile phase): * emake failed Seems this fails with vanilla CFLAGS too, so just a "regular" clang issue. Looks like MaskRay has already done some work on this upstream :) But, those patches might not fix it all the way: "Note that clang still does not build due to other reasons: (1) probable misuse of constraint code 'Q': (2) clang cannot handle a typeof on GNU expression statement extension. I haven't investigated whether it is a clang bug." |