You are not logged in.
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 -sbut 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
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_installwhich 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}"/bootThis 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
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-N130It seems that _kernver="$(make kernelrelease)" is somehow messed up. The "99.98" shouldn't definitely be there.
I'll investigate this tomorrow.
Vlad
Offline
I solved this by:
mkdir ${pkgdir}/usr
ln -s ../lib ${pkgdir}/usr/libLast edited by lilydjwg (2012-08-16 04:11:51)
Offline