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

Bug 527274

Summary: sys-apps/hdparm-9.45 with sys-devel/clang-3.5.0 - x86_64-pc-linux-gnu-clang-3.5.0: error: unknown argument: '-fkeep-inline-functions'
Product: Gentoo Linux Reporter: Markus Ullmann <mail>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: jer
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info
proposed change to ebuild

Description Markus Ullmann 2014-10-28 19:07:18 UTC
Created attachment 387678 [details]
build.log

Due to bad compiler flags, this package does not build with clang compiler
Comment 1 Markus Ullmann 2014-10-28 19:07:35 UTC
Created attachment 387680 [details]
emerge --info
Comment 2 Markus Ullmann 2014-10-28 19:08:03 UTC
Created attachment 387682 [details, diff]
proposed change to ebuild
Comment 3 Markus Ullmann 2014-10-28 19:09:21 UTC
may also want to check back with toolchain guys if the compiler name can change or contain arch or something
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-28 19:49:41 UTC
>>> Compiling source in /home/jer/portage/sys-apps/hdparm-9.45/work/hdparm-9.45 ...
make -j10 STRIP=: CC=clang
clang -O2 -Wall -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -Wall   -c -o hdparm.o hdparm.c
clang -O2 -Wall -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -Wall   -c -o identify.o identify.c
clang -O2 -Wall -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -Wall   -c -o sgio.o sgio.c
clang -O2 -Wall -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -Wall   -c -o sysfs.o sysfs.c
clang -O2 -Wall -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -Wall   -c -o geom.o geom.c
clang -O2 -Wall -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -Wall   -c -o fallocate.o fallocate.c
clang -O2 -Wall -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -Wall   -c -o fibmap.o fibmap.c
clang -O2 -Wall -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -Wall   -c -o fwdownload.o fwdownload.c
clang -O2 -Wall -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -Wall   -c -o dvdspeed.o dvdspeed.c
clang -O2 -Wall -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -Wall   -c -o wdidle3.o wdidle3.c
hdparm.c:1045:19: warning: cast from '__u16 *' (aka 'unsigned short *') to '__u64 *' (aka 'unsigned long long *') increases required
      alignment from 2 to 8 [-Wcast-align]
                __u64 *maxlba = (__u64 *) &dco[3];
                                ^~~~~~~~~~~~~~~~~
identify.c:328:19: warning: unused variable 'unknown' [-Wunused-const-variable]
static const char unknown[8] = "obsolete";
                  ^
1 warning generated.
1 warning generated.
clang -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o hdparm hdparm.o identify.o sgio.o sysfs.o geom.o fallocate.o fibmap.o fwdownload.o dvdspeed.o wdidle3.o
: hdparm
>>> Source compiled.

That's =sys-devel/clang-3.4.2-r100 /not/ failing.