Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hardened-sources make failure on ARM
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1099

PostPosted: Fri Feb 21, 2014 10:11 pm    Post subject: hardened-sources make failure on ARM Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23064

PostPosted: Fri Feb 21, 2014 11:09 pm    Post subject: Reply with quote

Yes. Does it work in sys-kernel/gentoo-sources?
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1099

PostPosted: Fri Feb 21, 2014 11:10 pm    Post subject: Reply with quote

It works great in gentoo-sources. I'll file a bug.
Back to top
View user's profile Send private message
N8Fear
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2013
Posts: 140
Location: Berlin (Germany)

PostPosted: Sun Feb 23, 2014 9:31 am    Post subject: Reply with quote

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
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1099

PostPosted: Sun Feb 23, 2014 2:25 pm    Post subject: Reply with quote

I don't have that explicitly set anywhere.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23064

PostPosted: Sun Feb 23, 2014 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1099

PostPosted: Mon Feb 24, 2014 2:52 pm    Post subject: Reply with quote

Here's the bug for reference:

https://bugs.gentoo.org/show_bug.cgi?id=502058
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum