LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-11-2019, 07:34 AM   #1
javigarri
LQ Newbie
 
Registered: Jan 2016
Posts: 14

Rep: Reputation: Disabled
Make linux-4.19.42 error


Hello,

My English isn't good, so I use a translator. I apologize for that.

Since linux-4.19.38, which is the one I'm using at the moment, I haven't been able to compile again. Both linux-4.19.39, linux-4.19.40, linux-4.19.41 and linux-4.19.42 are giving the same error.

I need to compile the kernel myself because the built kernel doesn't work with the graphical environment. When I configure the sources, I disable the option "AMD DC - Enable new display engine (DRM_AMD_DC)". With the kernel thus configured, the graphical environment does work.

But since linux-4.19.39 I have not been able to build it. The output of the error is:
Code:
make[1]: se entra en el directorio '/home/kernel/linux-4.19.42'
  Using /usr/src/linux-4.19.42 as source for kernel
  GEN     ./Makefile
  CALL    /usr/src/linux-4.19.42/scripts/checksyscalls.sh
  DESCEND  objtool
  CHK     include/generated/compile.h
  CC      arch/x86/kernel/head64.o

during GIMPLE pass: wrestrict
En la función ‘copy_bootdata’:
en pp_format, en pretty-print.c:1393
  377 | static void __init copy_bootdata(char *real_mode_data)
      |                    ^~~~~~~~~~~~~
Por favor, envíe un informe completo de errores,
con el código preprocesado si es apropiado.
Véase <https://gcc.gnu.org/bugs/> para instrucciones.
make[3]: *** [/usr/src/linux-4.19.42/scripts/Makefile.build:304: arch/x86/kernel/head64.o] Error 1
make[2]: *** [/usr/src/linux-4.19.42/scripts/Makefile.build:544: arch/x86/kernel] Error 2
make[1]: *** [/usr/src/linux-4.19.42/Makefile:1051: arch/x86] Error 2
make[1]: se sale del directorio '/home/kernel/linux-4.19.42'
make: *** [Makefile:146: sub-make] Error 2
I hope someone can help me and I thank you in advance.
 
Old 05-11-2019, 07:44 AM   #2
LuckyCyborg
Member
 
Registered: Mar 2010
Posts: 426

Rep: Reputation: 222Reputation: 222Reputation: 222
Just enable back the option "AMD DC - Enable new display engine (DRM_AMD_DC)"
 
Old 05-11-2019, 07:49 AM   #3
javigarri
LQ Newbie
 
Registered: Jan 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
I also tried with that option enabled and the problem occurred as well.
 
Old 05-11-2019, 04:34 PM   #4
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 1,140

Rep: Reputation: 349Reputation: 349Reputation: 349Reputation: 349
I get the same, and cant build kernels , i test with most recent 5.1 branch , and nothing change.
 
Old 05-11-2019, 06:37 PM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,675
Blog Entries: 3

Rep: Reputation: 478Reputation: 478Reputation: 478Reputation: 478Reputation: 478
have you seen the new way Pat's is building the kernel. https://mirrors.kernel.org/slackware...rent/source/k/
and read his build scripts. there was a huge change these days.
Code:
# To use this script, point it to a Linux kernel source tree and a .config
# file by setting the appropriate environment variables:
#
# KERNEL_SOURCE=/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-generic-4.14.23 ./kernel-generic.SlackBuild
#
# It can also build the huge (or any other) kernel:
#
# KERNEL_NAME=huge KERNEL_SOURCE=/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-huge-4.14.23 ./kernel-generic.SlackBuild
#
# By default, it will call the package "kernel-generic" and use the source and
# .config already in /usr/src/linux (if possible).
big reason why the kernels are version right after the other do to make oldconfig
 
2 members found this post helpful.
Old 05-11-2019, 07:50 PM   #6
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 1,140

Rep: Reputation: 349Reputation: 349Reputation: 349Reputation: 349
Quote:
Originally Posted by Drakeo View Post
have you seen the new way Pat's is building the kernel. https://mirrors.kernel.org/slackware...rent/source/k/
and read his build scripts. there was a huge change these days.
Code:
# To use this script, point it to a Linux kernel source tree and a .config
# file by setting the appropriate environment variables:
#
# KERNEL_SOURCE=/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-generic-4.14.23 ./kernel-generic.SlackBuild
#
# It can also build the huge (or any other) kernel:
#
# KERNEL_NAME=huge KERNEL_SOURCE=/usr/src/linux KERNEL_CONFIG=./kernel-configs/config-huge-4.14.23 ./kernel-generic.SlackBuild
#
# By default, it will call the package "kernel-generic" and use the source and
# .config already in /usr/src/linux (if possible).
big reason why the kernels are version right after the other do to make oldconfig
Im building custom kernels since "years" , and start failing after gcc9 , i see slackbuild to find changes but if pay attention ,date of last modification are

15-Mar-2018

The slackbuild no change to gcc9 specific things.

With gcc8 , all build fines , its a gcc bug , waiting to gcc-9.1.1 , and the best thing i see in gcc github , is release 9.1 *BASE-VER TO 9.1.1 , in other words , 9.1 is a start point BASE , with spected bugs.

For fast test no need nothing special , download kernel sources, put the config file inside , and try make modules .... ERROR BUILDING after one minute ,same error ever...and big number of warnings arround objectool.


My problem starts in gcc9 update , kernels 4.19.x all fail , later i try some 5.x with make defconfig (default config) , to see if some config parameter is causing this, but the build error is the same ever ,arround objectool.

Last edited by USUARIONUEVO; 05-11-2019 at 07:54 PM.
 
1 members found this post helpful.
Old 05-11-2019, 08:30 PM   #7
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 1,140

Rep: Reputation: 349Reputation: 349Reputation: 349Reputation: 349
I found this , but im not sure is relevant.

Quote:
awk: arch/x86/tools/gen-insn-attr-x86.awk:260: aviso: regexp escape sequence `\:' is not a known regexp operator
awk: arch/x86/tools/gen-insn-attr-x86.awk:350: (FILENAME=arch/x86/lib/x86-opcode-map.txt FNR=41) aviso: regexp escape sequence `\&' is not a known regexp operator
 
Old 05-12-2019, 12:24 PM   #8
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 1,140

Rep: Reputation: 349Reputation: 349Reputation: 349Reputation: 349
Hi again , i have a start point to debug what appen here.

locale=es
keyboard-layout=es
timezone=europe/madrid

LINUX KERNEL FAILS TO BUILD

set system locale under US

locale=us
keyboard-layout=es
timezone=europe/madrid

only change system languaje , no modifified timezone or keyboard-layout , and MAGIC!!

linux builds under system in us locale but not build under spanish locale.


I try and test now , rebuilding gcc with this option

Quote:
--enable-clocale=gnu

Last edited by USUARIONUEVO; 05-12-2019 at 12:28 PM.
 
1 members found this post helpful.
Old 05-12-2019, 02:04 PM   #9
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 1,140

Rep: Reputation: 349Reputation: 349Reputation: 349Reputation: 349
export LANG=en_US.UTF-8

and make under linux folder sources ,compiles ok (of course with the config file etc) , if no export us LANG , make fails...strange.

I test other LANGS , and only error with spanish
if some one want test

Quote:
export LANG=es_ES.UTF-8
And try build with make.

Last edited by USUARIONUEVO; 05-12-2019 at 03:19 PM.
 
1 members found this post helpful.
Old 05-12-2019, 03:29 PM   #10
javigarri
LQ Newbie
 
Registered: Jan 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks USUARIONUEVO
I'm going to try to compile with LANG US
 
Old 05-12-2019, 09:59 PM   #11
sebasalazar
LQ Newbie
 
Registered: Dec 2012
Posts: 2

Rep: Reputation: Disabled
Thank you, you make my day.
 
Old 05-13-2019, 10:31 AM   #12
javigarri
LQ Newbie
 
Registered: Jan 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
With the option
Quote:
export LANG=en_US.UTF-8
has worked very well.

Thank you all very much.
 
Old 05-14-2019, 12:00 PM   #13
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 1,140

Rep: Reputation: 349Reputation: 349Reputation: 349Reputation: 349
Hi , i test today ,rebuild gcc with

Quote:
--enable-clocale=gnu
But no lucky ,my next try is test a gcc snapshot from svn.

EDIT: current gcc.slackbuild cant compile svn version , i stop here my probes.

Last edited by USUARIONUEVO; 05-14-2019 at 12:36 PM.
 
Old 05-14-2019, 02:14 PM   #14
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,695

Rep: Reputation: 5236Reputation: 5236Reputation: 5236Reputation: 5236Reputation: 5236Reputation: 5236Reputation: 5236Reputation: 5236Reputation: 5236Reputation: 5236Reputation: 5236
Quote:
Originally Posted by USUARIONUEVO View Post
EDIT: current gcc.slackbuild cant compile svn version , i stop here my probes.
As a test, I changed the fetch script to grab the gcc-9-branch and ran the SlackBuild. It compiled fine here.
 
Old 05-14-2019, 03:20 PM   #15
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 1,140

Rep: Reputation: 349Reputation: 349Reputation: 349Reputation: 349
Quote:
Originally Posted by volkerdi View Post
As a test, I changed the fetch script to grab the gcc-9-branch and ran the SlackBuild. It compiled fine here.
strange , I try again tomorrow , exporting LANG to US , but gcc-9.1 with the slackbuild compiles fine here , but not the svn.

if someone compiles svn version and want little test , post here links to donload and i test.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RH9 make menuconfig error: make[1]: *** [lxdialog] Error 1 rrochele Linux - Kernel 3 02-07-2007 03:39 PM
xprobe2 "make" error make[1]: *** [config_set.o] Error 1 rsharma2000 Linux - Security 1 11-24-2004 04:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration