mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* Re: [ptxdist] Kernel GCC plugins
       [not found] <CABDcavbMrCE=yXDZ=MSbVCe1AVHX0U1-9XmmgZd0X5HN1J1QXg@mail.gmail.com>
@ 2021-07-16 12:11 ` Alexander Dahl
  2021-07-16 12:58   ` Michael Olbrich
       [not found]   ` <CABDcavYOeVWR+nVkMo4HXxFme=EmK050C383jGbAatD+N8GU3g@mail.gmail.com>
  0 siblings, 2 replies; 4+ messages in thread
From: Alexander Dahl @ 2021-07-16 12:11 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1251 bytes --]

Hei hei,

On Fri, Jul 16, 2021 at 01:32:29PM +0200, Guillermo Rodriguez Garcia wrote:
> I notice that the kernelconfig files changes depending on the host gcc
> version; in particular depending on supported gcc plugins.
> 
> However this does not seem to make much sense -- the kernel will not be
> built using the host gcc; it will be built using the cross compiler from
> the toolchain.
> 
> Is it possible to avoid this?

IIRC this was addressed several times in recent ptxdist versions:

- ptxdist-2021.04.0-14-g533f7709f ("kernel/kernel-template: set PTXDIST_NO_GCC_PLUGINS=1 in _MAKE_ENV as well")
- ptxdist-2021.03.0-69-g7a90f622f ("template: kernel: fix disabling gcc plugins for >= v5.11")
- ptxdist-2021.03.0-33-g114fecbd4 ("kernel: really fix disabling gcc plugins for >= v5.11)
- ptxdist-2021.02.0-41-gd57abb428 ("kernel: fix disabling gcc plugins for >= v5.11")

… and maybe more?

Or is yours another problem?

Greets
Alex

-- 
/"\ ASCII RIBBON | »With the first link, the chain is forged. The first
\ / CAMPAIGN     | speech censured, the first thought forbidden, the
 X  AGAINST      | first freedom denied, chains us all irrevocably.«
/ \ HTML MAIL    | (Jean-Luc Picard, quoting Judge Aaron Satie)

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

* Re: [ptxdist] Kernel GCC plugins
  2021-07-16 12:11 ` [ptxdist] Kernel GCC plugins Alexander Dahl
@ 2021-07-16 12:58   ` Michael Olbrich
       [not found]   ` <CABDcavYOeVWR+nVkMo4HXxFme=EmK050C383jGbAatD+N8GU3g@mail.gmail.com>
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2021-07-16 12:58 UTC (permalink / raw)
  To: ptxdist

On Fri, Jul 16, 2021 at 02:11:52PM +0200, Alexander Dahl wrote:
> On Fri, Jul 16, 2021 at 01:32:29PM +0200, Guillermo Rodriguez Garcia wrote:
> > I notice that the kernelconfig files changes depending on the host gcc
> > version; in particular depending on supported gcc plugins.
> > 
> > However this does not seem to make much sense -- the kernel will not be
> > built using the host gcc; it will be built using the cross compiler from
> > the toolchain.
> > 
> > Is it possible to avoid this?
> 
> IIRC this was addressed several times in recent ptxdist versions:
> 
> - ptxdist-2021.04.0-14-g533f7709f ("kernel/kernel-template: set PTXDIST_NO_GCC_PLUGINS=1 in _MAKE_ENV as well")
> - ptxdist-2021.03.0-69-g7a90f622f ("template: kernel: fix disabling gcc plugins for >= v5.11")
> - ptxdist-2021.03.0-33-g114fecbd4 ("kernel: really fix disabling gcc plugins for >= v5.11)
> - ptxdist-2021.02.0-41-gd57abb428 ("kernel: fix disabling gcc plugins for >= v5.11")
> 
> … and maybe more?

This started long before that:

ptxdist-2018.11.0-107-gc065184961ab ("kernel: add workaround to keep kernelconfigs stable")

Some more details on what happens here:

The kernel can use gcc plugins to do some tricks while building the kernel.
These plugins are built with the host gcc so at some point (v4.19) a check
was introduced to see if it's actually possible to build the plugins.
If the check passes, then a kconfig symbol is set to 'y' and you can enable
the plugins available for your current target architecture.

This check depends on the host compiler and related stuff, so sometimes the
config changes.
To avoid this, I tries to do some magic to force the check to fail all the
time. Unfortunately this check changed multiple times, so I had to change
PTXdist again because the check stopped failing...

Michael

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

* Re: [ptxdist] Kernel GCC plugins
       [not found]   ` <CABDcavYOeVWR+nVkMo4HXxFme=EmK050C383jGbAatD+N8GU3g@mail.gmail.com>
@ 2021-07-16 13:04     ` Michael Olbrich
       [not found]       ` <CABDcavZbjMQdMoQnScC-kmtciA2vKrton+-ztexWSCnYVBXqGQ@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Olbrich @ 2021-07-16 13:04 UTC (permalink / raw)
  To: Guillermo Rodriguez Garcia; +Cc: ptxdist

On Fri, Jul 16, 2021 at 02:45:40PM +0200, Guillermo Rodriguez Garcia wrote:
> El viernes, 16 de julio de 2021, Alexander Dahl <post@lespocky.de> escribió:
> > On Fri, Jul 16, 2021 at 01:32:29PM +0200, Guillermo Rodriguez Garcia wrote:
> > > I notice that the kernelconfig files changes depending on the host gcc
> > > version; in particular depending on supported gcc plugins.
> > >
> > > However this does not seem to make much sense -- the kernel will not be
> > > built using the host gcc; it will be built using the cross compiler from
> > > the toolchain.
> > >
> > > Is it possible to avoid this?
> >
> > IIRC this was addressed several times in recent ptxdist versions:
> >
> > - ptxdist-2021.04.0-14-g533f7709f ("kernel/kernel-template: set
> > PTXDIST_NO_GCC_PLUGINS=1 in _MAKE_ENV as well")
> > - ptxdist-2021.03.0-69-g7a90f622f ("template: kernel: fix disabling gcc
> > plugins for >= v5.11")
> > - ptxdist-2021.03.0-33-g114fecbd4 ("kernel: really fix disabling gcc
> > plugins for >= v5.11)
> > - ptxdist-2021.02.0-41-gd57abb428 ("kernel: fix disabling gcc plugins for
> > >= v5.11")
> >
> > … and maybe more?
> >
> > Or is yours another problem?
> 
> 
> Do I need to do something special for this to work?
> 
> I’m on ptxdist 2021.07.0 so the above fixes should be merged, yet I am
> still having the problem ..

Is PTXCONF_KERNEL_GCC_PLUGINS disabled? And which kernel version? Maybe the
check changed again.

Michael

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

* Re: [ptxdist] Kernel GCC plugins
       [not found]       ` <CABDcavZbjMQdMoQnScC-kmtciA2vKrton+-ztexWSCnYVBXqGQ@mail.gmail.com>
@ 2021-07-20 12:02         ` Michael Olbrich
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2021-07-20 12:02 UTC (permalink / raw)
  To: Guillermo Rodriguez Garcia; +Cc: ptxdist

Hi,

On Mon, Jul 19, 2021 at 01:45:44PM +0200, Guillermo Rodriguez Garcia wrote:
> El vie, 16 jul 2021 a las 15:04, Michael Olbrich (<m.olbrich@pengutronix.de>)
> escribió:
> > On Fri, Jul 16, 2021 at 02:45:40PM +0200, Guillermo Rodriguez Garcia wrote:
> > > El viernes, 16 de julio de 2021, Alexander Dahl <post@lespocky.de>
> > escribió:
> > > > On Fri, Jul 16, 2021 at 01:32:29PM +0200, Guillermo Rodriguez Garcia
> > wrote:
> > > > > I notice that the kernelconfig files changes depending on the host
> > gcc
> > > > > version; in particular depending on supported gcc plugins.
> > > > >
> > > > > However this does not seem to make much sense -- the kernel will not
> > be
> > > > > built using the host gcc; it will be built using the cross compiler
> > from
> > > > > the toolchain.
> > > > >
> > > > > Is it possible to avoid this?
> > > >
> > > > IIRC this was addressed several times in recent ptxdist versions:
> > > >
> > > > - ptxdist-2021.04.0-14-g533f7709f ("kernel/kernel-template: set
> > > > PTXDIST_NO_GCC_PLUGINS=1 in _MAKE_ENV as well")
> > > > - ptxdist-2021.03.0-69-g7a90f622f ("template: kernel: fix disabling gcc
> > > > plugins for >= v5.11")
> > > > - ptxdist-2021.03.0-33-g114fecbd4 ("kernel: really fix disabling gcc
> > > > plugins for >= v5.11)
> > > > - ptxdist-2021.02.0-41-gd57abb428 ("kernel: fix disabling gcc plugins
> > for
> > > > >= v5.11")
> > > >
> > > > … and maybe more?
> > > >
> > > > Or is yours another problem?
> > >
> > >
> > > Do I need to do something special for this to work?
> > >
> > > I’m on ptxdist 2021.07.0 so the above fixes should be merged, yet I am
> > > still having the problem ..
> >
> > Is PTXCONF_KERNEL_GCC_PLUGINS disabled?
> 
> Yes.

Ok.

> > And which kernel version?
> 
> 
> 5.4.56
> 
> I am rechecking, perhaps I did something wrong in the process.

Or maybe that version has a different check. Looking hat the history, I
definitely checked v4.19 and v5.6. I'm not sure about the versions in
between. Take a look at what scripts/gcc-plugins/Kconfig is doing.

Michael

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

end of thread, other threads:[~2021-07-20 12:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CABDcavbMrCE=yXDZ=MSbVCe1AVHX0U1-9XmmgZd0X5HN1J1QXg@mail.gmail.com>
2021-07-16 12:11 ` [ptxdist] Kernel GCC plugins Alexander Dahl
2021-07-16 12:58   ` Michael Olbrich
     [not found]   ` <CABDcavYOeVWR+nVkMo4HXxFme=EmK050C383jGbAatD+N8GU3g@mail.gmail.com>
2021-07-16 13:04     ` Michael Olbrich
     [not found]       ` <CABDcavZbjMQdMoQnScC-kmtciA2vKrton+-ztexWSCnYVBXqGQ@mail.gmail.com>
2021-07-20 12:02         ` Michael Olbrich

mailarchive of the ptxdist mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://lore.ptxdist.org/ptxdist/0 ptxdist/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ptxdist ptxdist/ https://lore.ptxdist.org/ptxdist \
		ptxdist@pengutronix.de
	public-inbox-index ptxdist

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git