You are not logged in.

#1 2016-06-09 04:00:18

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

makepkg yields error: install: cannot stat 'tools/gcc/*.so'

I have a custom config for Linux-grsec that I use on my laptop.

I've built this kernel many times without issue. Somewhere in the last week of May or so, it stopped building.

Recently, however, it yields the following error:

 install: cannot stat 'tools/gcc/*.so': No such file or directory 

The PKGBUILD and all related files can be found in my github (the checksums are likely out of date, if you try to build, you'll need to run updpkgsums first.
The github can be found here: https://github.com/osteichthyes/linux-grsec

Has anyone else encountered a similar issue?

I've tried reinstalling make, abs, gcc, gcc-libs, binutils, and all other build related packages.

There is no tools/gcc in the source directory, so this isn't the issue: https://bbs.archlinux.org/viewtopic.php?id=193381

Offline

#2 2016-06-09 04:30:03

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Re: makepkg yields error: install: cannot stat 'tools/gcc/*.so'

I now tried using the PKGBUILD used to build the linux-grsec package, this is maintained by nning. His github is here: https://github.com/nning/linux-grsec

The build failed with the same error.

Offline

#3 2016-06-09 04:42:40

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: makepkg yields error: install: cannot stat 'tools/gcc/*.so'

Did you disable building the gcc plugin?  I know nothing about this package, but this is the lines causing your issue:

  # add vmlinux and gcc plugins
  install -Dm644 vmlinux "$pkgdir/usr/src/linux-$_kernver/vmlinux"
  mkdir -p "$pkgdir/usr/src/linux-$_kernver/tools/gcc"
  install -m644 tools/gcc/*.so "$pkgdir/usr/src/linux-$_kernver/tools/gcc/"

Offline

#4 2016-06-09 04:44:45

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Re: makepkg yields error: install: cannot stat 'tools/gcc/*.so'

I did not disable building the GCC plugin.

I figured that was the source of the error. I've honestly changed nothing since the last dozen times I've built it.

Is there a reason to disable the gcc plugin?

Offline

#5 2016-06-09 04:47:57

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Re: makepkg yields error: install: cannot stat 'tools/gcc/*.so'

It would appear that I did turn them off. I'm not sure how or why I did. I need to try to rebuild. but if so, I'll mark solved.

What a boneheaded mistake!

Offline

#6 2016-06-09 10:10:43

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Re: makepkg yields error: install: cannot stat 'tools/gcc/*.so'

I've now double checked, the GCC plugin is turned on in both my build, and one used to build the package on the repo. Neither will build. This isn't an error in my config or my pkgbuild. For some reason, it's not getting the GCC plugins.

Offline

#7 2016-06-10 04:45:30

osteichthyes
Member
Registered: 2016-04-20
Posts: 38

Re: makepkg yields error: install: cannot stat 'tools/gcc/*.so'

I tried reinstalling gcc, then switched to gcc-multilib and all related packages. Still getting the same error.

I've tried building multiple different kernels, I'm running out of ideas. I can't seem to find any other examples or similar issues anywhere.

Last edited by osteichthyes (2016-06-10 07:12:26)

Offline

Board footer

Powered by FluxBB