You are not logged in.

#1 2012-07-29 13:31:50

xaverlalo
Member
Registered: 2012-05-02
Posts: 18

[ERROR No such dir] Compiling custom kernel for Samsung N140 fails

Hello,
I try to compile the kernel for my N140 (https://wiki.archlinux.org/index.php/Samsung_N140) with the package from the AUR

$ wget https://aur.archlinux.org/packages/li/linux-n130/linux-n130.tar.gz
unpack etc...
$ makepkg -s

but it fails with this error message:

  INSTALL /home/xaver/builds/linux-n130/pkg/lib/firmware/keyspan_pda/keyspan_pda.fw
  INSTALL /home/xaver/builds/linux-n130/pkg/lib/firmware/keyspan_pda/xircom_pgs.fw
  DEPMOD  3.4.5-1-N130
ERROR: could not open directory /home/xaver/builds/linux-n130/pkg/usr/lib/modules/99.98.3.4.5-1-N130: No such file or directory
FATAL: could not search modules: No such file or directory
make: *** [_modinst_post] Fehler 1
==> FEHLER: Ein Fehler geschah in package().
    Breche ab ...

this directory exists: /home/xaver/builds/linux-n130/pkg/lib/modules/3.4.5-1-N130

I don't know what to do. Please help me.

Greetings from Germany
xaverlalo

Offline

#2 2012-07-29 14:11:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,506
Website

Re: [ERROR No such dir] Compiling custom kernel for Samsung N140 fails

I gave it a shot to tinker around with, but without much forethought so I think I'm going to run out of room in /tmp/ before it finishes compiling.

Your error is in the package function anyhow, so I took a look at the PKGBUILD.  There is a line near the middle of that function that 'rm's that directory.  Perhaps you could tinker with moving that to the end of the function.

edit: OK, just made it.  I've replicated your error with the current PKGBUILD, now I'm trying out some modifications.

update: nevermind the rm commands, the PKGBUILD never gets that far.  The error is from this line very early in the package function

  make INSTALL_MOD_PATH="${pkgdir}" modules_install

which stops on the error you listed above.

I took a quick look at the make file, and found the relevant make_install directive, but there are just too many variables to keep track of trying to trace this manually - at least for me since I am not really invested in whether this works.  If you want you can take this info and keep digging, or report it to the maintainer of the PKGBUILD.

Also, note the difference between the path you say exists ( ../pkg/lib/... ) and the one that the error reports missing ( .../pkg/usr/lib/...)

Further update - partial solution: I changed the first mkdir line of the package function to these two lines

 mkdir -p "${pkgdir}"{/usr/lib/modules/99.98.3.4.5-1-N130/{modules.order,modules.builtin},/usr/lib/firmware}
  mkdir -p "${pkgdir}"/boot

This solved the initial problem, but then as installation continued several more popped up.  I started solving those, but each time there were more.  All of them are the result of the makefile copying to directories without ensuring they exist first, so the PKGBUILD has to make a complete directory structure for make install to work with.

Last edited by Trilby (2012-07-29 15:08:23)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-07-29 20:35:48

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: [ERROR No such dir] Compiling custom kernel for Samsung N140 fails

xaverlalo wrote:

but it fails with this error message:

  INSTALL /home/xaver/builds/linux-n130/pkg/lib/firmware/keyspan_pda/keyspan_pda.fw
  INSTALL /home/xaver/builds/linux-n130/pkg/lib/firmware/keyspan_pda/xircom_pgs.fw
  DEPMOD  3.4.5-1-N130
ERROR: could not open directory /home/xaver/builds/linux-n130/pkg/usr/lib/modules/99.98.3.4.5-1-N130: No such file or directory
FATAL: could not search modules: No such file or directory
make: *** [_modinst_post] Fehler 1
==> FEHLER: Ein Fehler geschah in package().
    Breche ab ...

this directory exists: /home/xaver/builds/linux-n130/pkg/lib/modules/3.4.5-1-N130

Hello,

 /home/xaver/builds/linux-n130/pkg/usr/lib/modules/99.98.3.4.5-1-N130

It seems that _kernver="$(make kernelrelease)" is somehow messed up. The "99.98" shouldn't definitely be there.
I'll investigate this tomorrow.

Vlad

Offline

#4 2012-08-16 04:11:16

lilydjwg
Member
Registered: 2010-06-20
Posts: 72

Re: [ERROR No such dir] Compiling custom kernel for Samsung N140 fails

I solved this by:

mkdir ${pkgdir}/usr
ln -s ../lib ${pkgdir}/usr/lib

Last edited by lilydjwg (2012-08-16 04:11:51)

Offline

Board footer

Powered by FluxBB