From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A36A03858CDA; Wed, 1 Feb 2023 22:37:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A36A03858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675291043; bh=sHvmb8/xRR6SN8OYs4KWvoQaqWUCNSmgynSH6km4CyM=; h=From:To:Subject:Date:From; b=DZqY7xCxZVaPL48XET/vTcOP0/6qBVZJxcsNJYhnFRWVnd1Wgu26cwD67H3rJecC8 7yQplQtjD7PZwqefhEWUV4HjqFBa1dnBcIoqx8ZDdQ0HsuGRp5DdWVoHW4Zi4djDOv vJzW4FEyJoI2NrmtsLKekQ5Qa6u83TE8Ack1m6Fo= From: "sam at gentoo dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug plugins/108634] New: [13 regression] 'undefined symbol: tree_code_type' when building kernel GCC plugins since r13-5431-gb0241ce6e37031 Date: Wed, 01 Feb 2023 22:37:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: sam at gentoo dot org 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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 Bug ID: 108634 Summary: [13 regression] 'undefined symbol: tree_code_type' when building kernel GCC plugins since r13-5431-gb0241ce6e37031 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: plugins Assignee: unassigned at gcc dot gnu.org Reporter: sam at gentoo dot org CC: jakub at gcc dot gnu.org Target Milestone: --- When building kernel 6.1.9: ``` cc1: error: cannot load plugin ./scripts/gcc-plugins/randomize_layout_plugin.so: ./scripts/gcc-plugins/randomize_layout_plugin.so: undefined symbol: tree_code_type make[2]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.9/work/linux-6.1/scripts/Mak= efile.build:118: scripts/mod/devicetable-offsets.s] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.9/work/linux-6.1/scripts/Mak= efile.build:250: scripts/mod/empty.o] Error 1 make[1]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.9/work/linux-6.1/Makefile:12= 81: prepare0] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:231: __sub-make] Error 2 ``` This happens since r13-5431-gb0241ce6e37031 which changes the visibility (thanks to Arsen and pinskia for spotting this) of some of the symbols. It's unclear to me if this is a kernel or GCC issue though (should the kern= el be using different methods in its plugin?)=