All of lore.kernel.org
 help / color / mirror / Atom feed
* 5.19-rc1 x86 build failure
@ 2022-06-07 12:19 Joe Damato
  2022-06-07 12:42 ` Andrew Cooper
  0 siblings, 1 reply; 6+ messages in thread
From: Joe Damato @ 2022-06-07 12:19 UTC (permalink / raw)
  To: x86
  Cc: jpoimboe, peterz, linux-kernel, jiangshanlai, bp, brgerst,
	Andrew.Cooper3

Greetings:

My apologies if this is the incorrect place to report this, but I got a
build error when trying to compile the net-next 5.19-rc1 tree.

git bisect says that commit a1e2c031ec394 ("x86/mm: Simplify
RESERVE_BRK()") is responsible for the build issue I am hitting.

I am performing this build on an x86_64 system with GNU C11 (Ubuntu
5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu).

The assembler outputs a cryptic error message:

/tmp/ccnGOKZ5.s: Assembler messages:
/tmp/ccnGOKZ5.s:98: Error: missing ')'
/tmp/ccnGOKZ5.s:98: Error: missing ')'
/tmp/ccnGOKZ5.s:98: Error: missing ')'
/tmp/ccnGOKZ5.s:98: Error: junk at end of line, first unrecognized
character is `U'
/tmp/ccnGOKZ5.s:99: Error: missing ')'
/tmp/ccnGOKZ5.s:99: Error: missing ')'
/tmp/ccnGOKZ5.s:99: Error: missing ')'
/tmp/ccnGOKZ5.s:99: Error: junk at end of line, first unrecognized
character is `U'

I've asked GCC to generate the assembly and output so I can see more
specifically where this issue is (via "-fverbose-asm -Wa,-adhln=output"):

  96                            .pushsection .brk_reservation,"aw",@nobits
  97                            .brk.early_pgt_alloc:
  98 ???? 00000000              .skip ((2 * 3) * ((1UL) << 12))
****  Error: missing ')'
****  Error: missing ')'
****  Error: missing ')'
****  Error: junk at end of line, first unrecognized character is `U'
  98      0000
 100                            .popsection

This comes from arch/x86/mm/init.c, which has the following code:

RESERVE_BRK(early_pgt_alloc, INIT_PGT_BUF_SIZE);

wherein INIT_PGT_BUF_SIZE (via PAGE_SIZE) has a "1UL" which makes the
assembler unhappy.

I don't really know what the correct way to fix this is; it seems that the
macro _AC should handle this if ASSEMBLY is defined, IIUC, but that does
not seem to be the case at this point in init.c.

Perhaps I am doing something incorrect during the build process causing
this to happen?

Thanks,
Joe

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

end of thread, other threads:[~2022-06-08 15:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-07 12:19 5.19-rc1 x86 build failure Joe Damato
2022-06-07 12:42 ` Andrew Cooper
2022-06-08  0:59   ` Josh Poimboeuf
2022-06-08  9:10     ` Joe Damato
2022-06-08  9:24     ` Andrew Cooper
2022-06-08 15:00       ` Josh Poimboeuf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.