View previous topic :: View next topic |
Author |
Message |
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1099
|
Posted: Fri Feb 21, 2014 10:11 pm Post subject: hardened-sources make failure on ARM |
|
|
I get the below atomic64_sub_return messages throughout the make until it finally fails on my ARM device. Should I file a bug?
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from block/cfq-iosched.c:9:
/usr/src/linux-3.13.3-hardened-r1/arch/arm/include/asm/atomic.h: In function ‘atomic64_sub_return’:
/usr/src/linux-3.13.3-hardened-r1/arch/arm/include/asm/atomic.h:716:1: warning: no return statement in function returning non-void [-Wreturn-type]
LD block/built-in.o
CC grsecurity/grsec_chdir.o
In file included from include/linux/atomic.h:4:0,
from include/linux/debug_locks.h:5,
from include/linux/lockdep.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/spinlock.h:81,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/sched.h:17,
from grsecurity/grsec_chdir.c:2:
/usr/src/linux-3.13.3-hardened-r1/arch/arm/include/asm/atomic.h: In function ‘atomic64_sub_return’:
/usr/src/linux-3.13.3-hardened-r1/arch/arm/include/asm/atomic.h:716:1: error: no return statement in function returning non-void [-Werror=return-type]
cc1: all warnings being treated as errors
make[1]: *** [grsecurity/grsec_chdir.o] Error 1
make: *** [grsecurity] Error 2 |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23064
|
Posted: Fri Feb 21, 2014 11:09 pm Post subject: |
|
|
Yes. Does it work in sys-kernel/gentoo-sources? |
|
Back to top |
|
|
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1099
|
Posted: Fri Feb 21, 2014 11:10 pm Post subject: |
|
|
It works great in gentoo-sources. I'll file a bug. |
|
Back to top |
|
|
N8Fear Tux's lil' helper
Joined: 15 Apr 2013 Posts: 140 Location: Berlin (Germany)
|
Posted: Sun Feb 23, 2014 9:31 am Post subject: |
|
|
Are you compiling with -Werror ?
Just thinking because of
Code: | cc1: all warnings being treated as errors |
If yes: first try without it: I nearly always get warnings for my kernels (also for x86_64)... |
|
Back to top |
|
|
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1099
|
Posted: Sun Feb 23, 2014 2:25 pm Post subject: |
|
|
I don't have that explicitly set anywhere. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23064
|
Posted: Sun Feb 23, 2014 5:49 pm Post subject: |
|
|
It looks like that is set by the Makefile for grsecurity-specific files. Look how when building block/cfg-iosched.c, the diagnostic is a warning, but when building grsecurity/grsec_chdir.c, the diagnostic is an error. This suggests to me that the grsecurity directory uses stricter flags. |
|
Back to top |
|
|
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1099
|
|
Back to top |
|
|
|