Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
4.16.8/9 Kernel oldconfig error and compile errors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jasn
Guru
Guru


Joined: 05 May 2005
Posts: 439
Location: Maryland, US

PostPosted: Sun May 20, 2018 11:39 pm    Post subject: 4.16.8/9 Kernel oldconfig error and compile errors Reply with quote

Manually upgrading my kernel from 4.16.7 to 4.16.8 or 9, and when I copy the config file from my 4.16.7 directory over and run a "make oldconfig", it generates the following errors;
Code:
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  YACC    scripts/kconfig/zconf.tab.c
  LEX     scripts/kconfig/zconf.lex.c
  HOSTCC  scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2485:
scripts/kconfig/confdata.c: In function ‘conf_write’:
scripts/kconfig/confdata.c:773:22: warning: ‘%s’ directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
  sprintf(newname, "%s%s", dirname, basename);
                      ^~
scripts/kconfig/confdata.c:773:19: note: assuming directive output of 7 bytes
  sprintf(newname, "%s%s", dirname, basename);
                   ^~~~~~
In file included from /usr/include/stdio.h:862,
                 from scripts/kconfig/zconf.tab.c:74:
/usr/include/bits/stdio2.h:33:10: note: ‘__builtin___sprintf_chk’ output 1 or more bytes (assuming 4104) into a destination of size 4097
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from scripts/kconfig/zconf.tab.c:2485:
scripts/kconfig/confdata.c:776:23: warning: ‘.tmpconfig.’ directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
   sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
                       ^~~~~~~~~~~
In file included from /usr/include/stdio.h:862,
                 from scripts/kconfig/zconf.tab.c:74:
/usr/include/bits/stdio2.h:33:10: note: ‘__builtin___sprintf_chk’ output between 13 and 4119 bytes into a destination of size 4097
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#

Compiling the kernel generates a lot of errors, many of the "sibling call" errors as described in this thread, and in this bug report. I haven't tried booting the kernel, because after reading these threads, and others linked in them, I get the impression that I may need to change how I compile the kernel in order to make these newer ones compile correctly. This is a Core i7 7700K laptop, and I've been using the "Core i7/newer Xeon" CPU kernel option, along with using the gcc CFLAGS="-O2 -pipe -march=native" optimizations.

Do I need to reconfigure my current kernel config in order to avoid the error messages above? And are there other changes I need to make to enable compiling these newer kernels?

Thanks,.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7328
Location: Saint Amant, Acadiana

PostPosted: Mon May 21, 2018 8:10 pm    Post subject: Reply with quote

What version of GCC?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
jasn
Guru
Guru


Joined: 05 May 2005
Posts: 439
Location: Maryland, US

PostPosted: Mon May 21, 2018 8:29 pm    Post subject: Reply with quote

Using the current 8.1.0-r3. Here's the first section of my system's emerge --info
Code:
Portage 2.3.38 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-8.1.0, glibc-2.26-r7, 4.16.7-gentoo x86_64)
=================================================================
System uname: Linux-4.16.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-7700K_CPU_@_4.20GHz-with-gentoo-2.4.1
KiB Mem:    65857332 total,  46278320 free
KiB Swap:    3681276 total,   3681276 free
Timestamp of repository gentoo: Mon, 21 May 2018 00:45:01 +0000
sh bash 4.4_p19
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash:          4.4_p19::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.14-r2::gentoo, 3.5.5-r1::gentoo
dev-util/cmake:           3.11.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.35.5::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            6.4.0-r2::gentoo, 8.1.0-r3::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum