Outreachy Linux Kernel Community
 help / color / mirror / Atom feed
From: "Fabio M. De Francesco" <fmdefrancesco@gmail.com>
To: outreachy@lists.linux.dev
Subject: Compilation errors
Date: Fri, 01 Apr 2022 11:35:13 +0200	[thread overview]
Message-ID: <3603561.MHq7AAxBmi@leap> (raw)

Hello everybody,

I've made hundreds of Linux builds and never had problems, but since 
few days I'm not anymore able to compile the kernel with GCC or Clang.

I get many errors like the following and the build crashes:

# CC=gcc-11 make -j12
[...]
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c: In function ‘bnx2x_check_blocks_with_parity3’:
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:4917:4: error: case label does not reduce to an integer constant
    case AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY:
[...]
make[5]: *** [scripts/Makefile.build:289: drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.o] Error 1
make[4]: *** [scripts/Makefile.build:551: drivers/net/ethernet/broadcom/bnx2x] Error 2
make[4]: *** Waiting for unfinished jobs....

One more example...

# make mrproper
# CC=clang make -j12
[...]
drivers/usb/typec/tcpm/tcpm.c:4724:3: error: case label does not reduce to an integer constant
   case BDO_MODE_TESTDATA:
   ^~~~
make[4]: *** [scripts/Makefile.build:288: drivers/usb/typec/tcpm/tcpm.o] Error 1
make[3]: *** [scripts/Makefile.build:550: drivers/usb/typec/tcpm] Error 2
make[2]: *** [scripts/Makefile.build:550: drivers/usb/typec] Error 2
make[2]: *** Waiting for unfinished jobs....

Can someone help me to understand what is happening and how to fix this issue?
Could it depend on a configuration option that, unintentionally enabled, make 
the build fail whenever "case label does not reduce to an integer constant" is 
hit? If so, which option?

Thanks,

Fabio M. De Francesco



             reply	other threads:[~2022-04-01  9:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-01  9:35 Fabio M. De Francesco [this message]
2022-04-01 10:13 ` Compilation errors Stefano Brivio
2022-04-01 12:01   ` Fabio M. De Francesco
2022-04-01 12:57     ` Stefano Brivio
2022-04-01 13:07       ` Fabio M. De Francesco
2022-04-01 16:09         ` Alison Schofield
2022-04-01 17:58           ` Fabio M. De Francesco
2022-04-01 14:39       ` Fabio M. De Francesco

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3603561.MHq7AAxBmi@leap \
    --to=fmdefrancesco@gmail.com \
    --cc=outreachy@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox