Created attachment 387678 [details] build.log Due to bad compiler flags, this package does not build with clang compiler
Created attachment 387680 [details] emerge --info
Created attachment 387682 [details, diff] proposed change to ebuild
may also want to check back with toolchain guys if the compiler name can change or contain arch or something
>>> 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.