Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 527274 - sys-apps/hdparm-9.45 with llvm-core/clang-3.5.0 - x86_64-pc-linux-gnu-clang-3.5.0: error: unknown argument: '-fkeep-inline-functions'
Summary: sys-apps/hdparm-9.45 with llvm-core/clang-3.5.0 - x86_64-pc-linux-gnu-clang-3...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-28 19:07 UTC by Markus Ullmann
Modified: 2024-12-11 13:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,6.75 KB, text/plain)
2014-10-28 19:07 UTC, Markus Ullmann
Details
emerge --info (emerge-info.log,4.99 KB, text/plain)
2014-10-28 19:07 UTC, Markus Ullmann
Details
proposed change to ebuild (ebuild-bad-compileroption.patch,455 bytes, patch)
2014-10-28 19:08 UTC, Markus Ullmann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.