All of lore.kernel.org
 help / color / mirror / Atom feed
* Add patch "arch: define weak abort()" to 4.14-stable tree
@ 2018-02-05 15:25 ` Evgeniy Didin
  0 siblings, 0 replies; 6+ messages in thread
From: Evgeniy Didin @ 2018-02-05 15:25 UTC (permalink / raw)
  To: linux-snps-arc

Patch subject:	"arch: define weak abort()"
Commit ID:	7c2c11b208be
Reason:?	While building mpi.ko module with lastest stable Linux 
		v4.14.17 an error occured:
		>ERROR: "abort" [lib/mpi/mpi.ko] undefined!
Kernel version: 4.14.x

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

* Add patch "arch: define weak abort()" to 4.14-stable tree
@ 2018-02-05 15:25 ` Evgeniy Didin
  0 siblings, 0 replies; 6+ messages in thread
From: Evgeniy Didin @ 2018-02-05 15:25 UTC (permalink / raw)
  To: stable@vger.kernel.org
  Cc: Alexey Brodkin, Vineet Gupta, linux-snps-arc@lists.infradead.org

Patch subject:	"arch: define weak abort()"
Commit ID:	7c2c11b208be
Reason: 	While building mpi.ko module with lastest stable Linux 
		v4.14.17 an error occured:
		>ERROR: "abort" [lib/mpi/mpi.ko] undefined!
Kernel version: 4.14.x

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

* Add patch "arch: define weak abort()" to 4.14-stable tree
  2018-02-05 15:25 ` Evgeniy Didin
@ 2018-02-05 16:19   ` Greg KH
  -1 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2018-02-05 16:19 UTC (permalink / raw)
  To: linux-snps-arc

On Mon, Feb 05, 2018@03:25:58PM +0000, Evgeniy Didin wrote:
> Patch subject:	"arch: define weak abort()"
> Commit ID:	7c2c11b208be
> Reason:?	While building mpi.ko module with lastest stable Linux 
> 		v4.14.17 an error occured:
> 		>ERROR: "abort" [lib/mpi/mpi.ko] undefined!
> Kernel version: 4.14.x

What kernel config is causing this build error?  I don't see it here,
nor have I seen it reported in any other built test.

And what kernel version did this break on?

thanks,

greg k-h

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

* Re: Add patch "arch: define weak abort()" to 4.14-stable tree
@ 2018-02-05 16:19   ` Greg KH
  0 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2018-02-05 16:19 UTC (permalink / raw)
  To: Evgeniy Didin
  Cc: stable@vger.kernel.org, Alexey Brodkin, Vineet Gupta,
	linux-snps-arc@lists.infradead.org

On Mon, Feb 05, 2018 at 03:25:58PM +0000, Evgeniy Didin wrote:
> Patch subject:	"arch: define weak abort()"
> Commit ID:	7c2c11b208be
> Reason:�	While building mpi.ko module with lastest stable Linux 
> 		v4.14.17 an error occured:
> 		>ERROR: "abort" [lib/mpi/mpi.ko] undefined!
> Kernel version: 4.14.x

What kernel config is causing this build error?  I don't see it here,
nor have I seen it reported in any other built test.

And what kernel version did this break on?

thanks,

greg k-h

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

* Add patch "arch: define weak abort()" to 4.14-stable tree
  2018-02-05 16:19   ` Greg KH
@ 2018-02-06 16:34     ` Evgeniy Didin
  -1 siblings, 0 replies; 6+ messages in thread
From: Evgeniy Didin @ 2018-02-06 16:34 UTC (permalink / raw)
  To: linux-snps-arc

Hello Greg,

> On Mon, Feb 05, 2018@03:25:58PM +0000, Evgeniy Didin wrote:
> > Patch subject:	"arch: define weak abort()"
> > Commit ID:	7c2c11b208be
> > Reason:?	While building mpi.ko module with lastest stable Linux?
> > 		v4.14.17 an error occured:
> > 		>ERROR: "abort" [lib/mpi/mpi.ko] undefined!
> > Kernel version: 4.14.x
> 
> What kernel config is causing this build error???I don't see it here,
> nor have I seen it reported in any other built test.
Here are config elements appended to
.config based on hsdk_defconfig
------------------------<8--------------
CONFIG_CRYPTO_RSA=m
CONFIG_CRYPTO_PCRYPT=y
CONFIG_CRYPTO_AUTHENC=m
CONFIG_CRYPTO_SHA1=m
CONFIG_CRYPTO_SHA256=m
CONFIG_CRYPTO_ARC4=y
CONFIG_CRC32_SARWATE=y
------------------------<8--------------

> And what kernel version did this break on?
The issue appeared because GCC 7 was used to build kernel.
GCC 7 does more testing in particular when building with "-O3"
trying to use either __builtin_trap(), or if it does not exist?
in port for this architecture (ARC will have it only in GCC 8),?
then it uses abort().
So for all kernels builded by GCC 7.x such pathes are needed.

This error was caught building with OpenWRT:
https://www.mail-archive.com/lede-dev at lists.infradead.org/msg10945.html

This message also applies to https://www.spinics.net/lists/stable/msg213925.html

Best regards,
Evgeniy Didin

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

* Re: Add patch "arch: define weak abort()" to 4.14-stable tree
@ 2018-02-06 16:34     ` Evgeniy Didin
  0 siblings, 0 replies; 6+ messages in thread
From: Evgeniy Didin @ 2018-02-06 16:34 UTC (permalink / raw)
  To: gregkh@linuxfoundation.org, Evgeniy.Didin@synopsys.com
  Cc: Vineet.Gupta1@synopsys.com, Alexey.Brodkin@synopsys.com,
	stable@vger.kernel.org, linux-snps-arc@lists.infradead.org

Hello Greg,

> On Mon, Feb 05, 2018 at 03:25:58PM +0000, Evgeniy Didin wrote:
> > Patch subject:	"arch: define weak abort()"
> > Commit ID:	7c2c11b208be
> > Reason: 	While building mpi.ko module with lastest stable Linux 
> > 		v4.14.17 an error occured:
> > 		>ERROR: "abort" [lib/mpi/mpi.ko] undefined!
> > Kernel version: 4.14.x
> 
> What kernel config is causing this build error?  I don't see it here,
> nor have I seen it reported in any other built test.
Here are config elements appended to
.config based on hsdk_defconfig
------------------------<8--------------
CONFIG_CRYPTO_RSA=m
CONFIG_CRYPTO_PCRYPT=y
CONFIG_CRYPTO_AUTHENC=m
CONFIG_CRYPTO_SHA1=m
CONFIG_CRYPTO_SHA256=m
CONFIG_CRYPTO_ARC4=y
CONFIG_CRC32_SARWATE=y
------------------------<8--------------

> And what kernel version did this break on?
The issue appeared because GCC 7 was used to build kernel.
GCC 7 does more testing in particular when building with "-O3"
trying to use either __builtin_trap(), or if it does not exist 
in port for this architecture (ARC will have it only in GCC 8), 
then it uses abort().
So for all kernels builded by GCC 7.x such pathes are needed.

This error was caught building with OpenWRT:
https://www.mail-archive.com/lede-dev@lists.infradead.org/msg10945.html

This message also applies to https://www.spinics.net/lists/stable/msg213925.html

Best regards,
Evgeniy Didin

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

end of thread, other threads:[~2018-02-06 16:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-05 15:25 Add patch "arch: define weak abort()" to 4.14-stable tree Evgeniy Didin
2018-02-05 15:25 ` Evgeniy Didin
2018-02-05 16:19 ` Greg KH
2018-02-05 16:19   ` Greg KH
2018-02-06 16:34   ` Evgeniy Didin
2018-02-06 16:34     ` Evgeniy Didin

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.