linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [linux-next][bisected c7c133f3][gcc 4.8.5] build fail with error: first argument to ‘__builtin_choose_expr’ not a constant
@ 2018-03-14  8:29 Abdul Haleem
  2018-03-14  8:39 ` Stephen Rothwell
  0 siblings, 1 reply; 3+ messages in thread
From: Abdul Haleem @ 2018-03-14  8:29 UTC (permalink / raw)
  To: linuxppc-dev
  Cc: linux-next, linux-kernel, Stephen Rothwell, Kees Cook, mpe,
	sachinp

Greetings,

Today's next kernel fails to build with gcc 4.8.5 on powerpc machine.


./include/linux/jiffies.h: In function ‘jiffies_delta_to_clock_t’:
./include/linux/kernel.h:855:2: error: first argument to ‘__builtin_choose_expr’ not a constant
  __builtin_choose_expr(__builtin_constant_p(x) &&  \
  ^
./include/linux/kernel.h:867:19: note: in expansion of macro ‘__max’
 #define max(x, y) __max(typeof(x), typeof(y), x, y)

Machine Type: Power8 Baremetal
gcc: 4.8.5


Builds fine when below patch is reverted
c7c133f3 kernel.h: skip single-eval logic on literals in min()/max()

-- 
Regard's

Abdul Haleem
IBM Linux Technology Centre

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-14 10:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-14  8:29 [linux-next][bisected c7c133f3][gcc 4.8.5] build fail with error: first argument to ‘__builtin_choose_expr’ not a constant Abdul Haleem
2018-03-14  8:39 ` Stephen Rothwell
2018-03-14  9:59   ` Abdul Haleem

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).