From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8ECE43858D3C; Wed, 1 Feb 2023 22:44:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8ECE43858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675291465; bh=eHspfXHtvVZu5ye1meQv3o8yAwj+ekl5dlY+W7KJyC8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gPiNkPM/LvgsuLtI0Tywifm/6cGy11ogN7gGd45uWdvDlmK0f+WA/2UiUmnwvTepg ucHkdo9k5mAhgp/lJvlgYRT2shmacw1P6qdJmAxUp5tHzvOUHXSdC6ci3bcDxn7t0G 7F03narlhpA89bJGApg0hSRZjfl/5Eob0e20VJUk= From: "arsen at aarsen dot me" To: gcc-bugs@gcc.gnu.org Subject: [Bug plugins/108634] [13 regression] 'undefined symbol: tree_code_type' when building kernel GCC plugins since r13-5431-gb0241ce6e37031 Date: Wed, 01 Feb 2023 22:44:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: plugins X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arsen at aarsen dot me X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108634 --- Comment #1 from Arsen Arsenovi=C4=87 --- The kernel's using wrong C(XX)FLAGS to compile the plugin. IMO, the best solution would be to dump $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) into a makef= ile that gets installed, so that plugins can use that=