Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
4.15-rc2 compile problem right away on bzImage SOLVED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3104
Location: Gainesville, Florida

PostPosted: Mon Dec 04, 2017 11:37 pm    Post subject: 4.15-rc2 compile problem right away on bzImage SOLVED Reply with quote

Since I run Ryzen systems, I was eager to give kernel 4.15-rc2 a try, but ran into this in first 70 lines, using either make xconfig, make gconfig, menuconfig.
Haven't had a basic kernel compile fail in many years. ("kern" is just my alias for "make bzImage && make modules && make modules_install") Used my 4.14.3 config file- only difference is the rc2 uses generic x_64 as no gcc opts patch was applied.
Code:
amd64 /usr/src/linux-4.15-rc2 # kern
  HOSTCC  scripts/kconfig/conf.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --silentoldconfig Kconfig
#
# configuration written to .config
#
  SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
  HOSTCC  scripts/basic/bin2c
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  CHK     include/config/kernel.release
  UPD     include/config/kernel.release
  WRAP    arch/x86/include/generated/asm/clkdev.h
  WRAP    arch/x86/include/generated/asm/dma-contiguous.h
  WRAP    arch/x86/include/generated/asm/early_ioremap.h
  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
  WRAP    arch/x86/include/generated/asm/mm-arch-hooks.h
  CHK     include/generated/uapi/linux/version.h
  UPD     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  CC      kernel/bounds.s
  CHK     include/generated/bounds.h
  UPD     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  UPD     include/generated/timeconst.h
  CC      arch/x86/kernel/asm-offsets.s
  CHK     include/generated/asm-offsets.h
  UPD     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  DESCEND  objtool
  HOSTCC   /usr/src/linux-4.15-rc2/tools/objtool/fixdep.o
  HOSTLD   /usr/src/linux-4.15-rc2/tools/objtool/fixdep-in.o
  LINK     /usr/src/linux-4.15-rc2/tools/objtool/fixdep
  CC       /usr/src/linux-4.15-rc2/tools/objtool/exec-cmd.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/help.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/pager.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/parse-options.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/run-command.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/sigchain.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/subcmd-config.o
  LD       /usr/src/linux-4.15-rc2/tools/objtool/libsubcmd-in.o
  AR       /usr/src/linux-4.15-rc2/tools/objtool/libsubcmd.a
  CC       /usr/src/linux-4.15-rc2/tools/objtool/arch/x86/decode.o
  LD       /usr/src/linux-4.15-rc2/tools/objtool/arch/x86/objtool-in.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/builtin-check.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/builtin-orc.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/check.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/orc_gen.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/orc_dump.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/elf.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/special.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/objtool.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/libstring.o
  CC       /usr/src/linux-4.15-rc2/tools/objtool/str_error_r.o
  LD       /usr/src/linux-4.15-rc2/tools/objtool/objtool-in.o
make[2]: execvp: ./sync-check.sh: Permission denied
make[2]: *** [Makefile:47: /usr/src/linux-4.15-rc2/tools/objtool/objtool] Error 127
make[1]: *** [Makefile:63: objtool] Error 2
make: *** [Makefile:1628: tools/objtool] Error 2
amd64 /usr/src/linux-4.15-rc2 #


I looked around doing searches on the error strings, but didn't find much. Anyone see this, or maybe point me in the right direction so i can figure out what the problem is? I can't remember the last time I had a kernel compile failure, even on git-sources -rc's.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 1700, 3.0GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.26-r3, gcc-7.2.0- kernel-4.14.5 gentoo USE=experimental


Last edited by wrc1944 on Tue Dec 05, 2017 4:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 11424

PostPosted: Tue Dec 05, 2017 2:57 am    Post subject: Reply with quote

What are the permissions on that file? What mount options were used on the filesystem that contains /usr/src/linux? Why are you compiling an -rc kernel as root?
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3104
Location: Gainesville, Florida

PostPosted: Tue Dec 05, 2017 8:03 am    Post subject: Reply with quote

Hu,
Thanks much for looking at this. :)
Back in 2002 when I first started with Gentoo, and I used a separate /home partition, and a /home/wrc/kern directory to compile my kernels in, and then change to root for modules_install, and cp arch/x86/boot/bzImage /boot/kernel-whatever. That went on for 4-5 years, and then I started using gentoo-sources, and since emerge put the source directories in /usr/src/ I just started compiling all my kernels there, as root, including any rc's and other random patched testing kernels.

I must have compiled many hundreds of all kinds of exotic kernels in addition to keeping up with virtually every release and version in the last 15 years, as root. Saved me the changing to root for the make modules_install step when compiling in /home/wrc/kern . So yes, what confused me is if I'm compiling as root in the same way I've done for 15 years, why suddenly on this 4.15-rc1 and rc2 would they complain about permissions?

For the last file before make[2]: execvp: ./sync-check.sh: Permission denied, which is: /usr/src/linux-4.15-rc2/tools/objtool/objtool-in.o and the permissions are :
Owner: root (root)
Access: read & write
Group: root
Access: read only
Otheres: read only

FWIW, Makefile, line 47:
Code:
l$(OBJTOOL): $(LIBSUBCMD) $(OBJTOOL_IN)
   @./sync-check.sh
   $(QUIET_LINK)$(CC) $(OBJTOOL_IN) $(LDFLAGS) -o $@

_________________
Main box- AsRock x370 Gaming K4
Ryzen 1700, 3.0GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.26-r3, gcc-7.2.0- kernel-4.14.5 gentoo USE=experimental
Back to top
View user's profile Send private message
Lucretia
n00b
n00b


Joined: 15 Oct 2002
Posts: 69

PostPosted: Tue Dec 05, 2017 11:29 am    Post subject: Reply with quote

Same issue here.
Code:
chmod +x ./tools/objtool/sync-check.sh
and it works fine.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3104
Location: Gainesville, Florida

PostPosted: Tue Dec 05, 2017 4:49 pm    Post subject: Reply with quote

Lucretia,
Thanks very much- worked nicely. :D Now I'll know what to do in similar situations.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 1700, 3.0GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.26-r3, gcc-7.2.0- kernel-4.14.5 gentoo USE=experimental
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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