Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Error building on Arch Linux #5

Closed
binex-dsk opened this issue Aug 4, 2020 · 9 comments
Closed

Error building on Arch Linux #5

binex-dsk opened this issue Aug 4, 2020 · 9 comments

Comments

@binex-dsk
Copy link

Just upgraded my system (i'm using Arch Linux), and got an error with this module:

==> dkms install --no-depmod -m linux-apfs -v 0.1 -k 5.8.0-arch1-1
Error! Bad return status for module build on kernel: 5.8.0-arch1-1 (x86_64)
Consult /var/lib/dkms/linux-apfs/0.1/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m linux-apfs -v 0.1 -k 5.8.0-arch1-1' returned 10

Make.log is this:

DKMS make.log for linux-apfs-0.1 for kernel 5.8.0-arch1-1 (x86_64)
Tue Aug 4 13:26:17 EDT 2020
make: Entering directory '/usr/lib/modules/5.8.0-arch1-1/build'
AR /var/lib/dkms/linux-apfs/0.1/build/built-in.a
CC [M] /var/lib/dkms/linux-apfs/0.1/build/btree.o
CC [M] /var/lib/dkms/linux-apfs/0.1/build/dir.o
CC [M] /var/lib/dkms/linux-apfs/0.1/build/extents.o
CC [M] /var/lib/dkms/linux-apfs/0.1/build/file.o
CC [M] /var/lib/dkms/linux-apfs/0.1/build/inode.o
CC [M] /var/lib/dkms/linux-apfs/0.1/build/key.o
CC [M] /var/lib/dkms/linux-apfs/0.1/build/message.o
CC [M] /var/lib/dkms/linux-apfs/0.1/build/namei.o
/var/lib/dkms/linux-apfs/0.1/build/inode.c: In function 'apfs_readpages':
/var/lib/dkms/linux-apfs/0.1/build/inode.c:31:9: error: implicit declaration of function 'mpage_readpages'; did you mean 'mpage_readpage'? [-Werror=implicit-function-declaration]
31 | return mpage_readpages(mapping, pages, nr_pages, apfs_get_block);
  |         ^~~~~~~~~~~~~~~
  |         mpage_readpage
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:281: /var/lib/dkms/linux-apfs/0.1/build/inode.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1756: /var/lib/dkms/linux-apfs/0.1/build] Error 2
make: Leaving directory '/usr/lib/modules/5.8.0-arch1-1/build'

Why is this happening?

@eafer
Copy link
Member

eafer commented Aug 5, 2020 via email

@binex-dsk
Copy link
Author

binex-dsk commented Aug 5, 2020

Yeah, I figured it out after a few hours. And I don't know why GitHub did that, because the patch I sent to the AUR link didn't have all that whitespace change. I did copy it directly from my terminal rather than from a normal text editor though, so that might be the reason why, after all, whitespace can be weird in some terminals.

I guess you can just credit me with the name "sperg" and my main email is roachh@protonmail.com. If you'd like, just use "binex", either is fine!

@eafer
Copy link
Member

eafer commented Aug 6, 2020 via email

@HLFH
Copy link

HLFH commented Jan 5, 2021

I can build and install this software or this one on ArchLinux.

But I have the structure needs cleaning error when I mount the APFS partition.

➜ ~ mount /dev/nvme0n1p2 /mnt/apfs
mount: /mnt/apfs: échec de l’appel système mount(2) : La structure a besoin d'un nettoyage.

My ArchLinux file system is using BTRFS.

➜ ~ uname -r
5.10.4-arch2-1

@eafer
Copy link
Member

eafer commented Jan 5, 2021 via email

@HLFH
Copy link

HLFH commented Jan 8, 2021

I don't know where to look for the logs related to linux-apfs-oot. I'll probably go on macOS, and test * fsck_apfs* or Disk Utility repair feature, to see if it solves the structure needs cleaning issue.

@eafer
Copy link
Member

eafer commented Jan 9, 2021 via email

@HLFH
Copy link

HLFH commented Jan 11, 2021

@eafer

You can close this issue since it is apparently solved.

My issue is related to #3.

I have:

[243915.516458] APFS (nvme0n1p2): this module is read-only
[243915.538507] APFS (nvme0n1p2): bad node in block 0x6b8
[243915.538719] APFS (nvme0n1p2): unable to read catalog root node

@binex-dsk
Copy link
Author

You can close this issue since it is apparently solved.

hi

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants