Comments (13)
Is this happening with using the linux-bcachefs-git PKGBUILD I maintain? I stick very closely to the Arch Linux kernel PKGBUILD, only changing what is needed for, along with some nice enhancements from the linux-ck PKGBUILD, which don't change anything in the package() function.
I haven't been able to reproduce your issue, so I can't help, sorry. :.
from bcachefs.
it happens with all packages. i "maintain" my own linux-bcachefs-git that is basically bcachefs + upstream arch tags (based on an older commit from linux-bcachefs-git) but it does not comply with AUR for me to post (+ i do not care about maintaining for others as it is a bit finicky).
i ll post the PKGBUILD source when possible.
from bcachefs.
Hmmm.
I'd be interested to see the differences between mine and yours, when you can post it.
from bcachefs.
the relevant changes to PKGBUILD from 0bc77a44b90d9f409b452ccda7fdd13ccd7f7969
(or https://pastebin.com/ya9ndGL8)
diff --git a/PKGBUILD b/PKGBUILD
index fea45de..36633c6 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,8 +6,11 @@
### BUILD OPTIONS
# Set these variables to ANYTHING that is not null to enable them
+_ver=5.0.1
+_srcver=v${_ver}-arch1
# Tweak kernel options prior to a build via nconfig
_makenconfig=
+EDITOR=`which true`
# Compile ONLY probed modules
# As of mainline 2.6.32, running with this option will only build the modules
@@ -23,8 +26,7 @@ _makenconfig=
# More at this wiki page ---> https://wiki.archlinux.org/index.php/Modprobed-db
_localmodcfg=
-pkgbase=linux-bcachefs-git
-_srcver=4.20.5-arch1
+pkgbase=linux-bcachefs-tst
pkgver=${_srcver//-/.}
pkgrel=1
arch=(x86_64)
@@ -33,9 +35,8 @@ license=(GPL2)
makedepends=(xmlto kmod inetutils bc libelf git python-sphinx graphviz)
options=('!strip')
_gcc_more_v='20180509'
-_srcname=bcachefs
+_srcname=linux
source=(
- "$_srcname::git+https://evilpiepirate.org/git/bcachefs.git"
"enable_additional_cpu_optimizations-$_gcc_more_v.tar.gz::https://github.com/graysky2/kernel_gcc_patch/archive/$_gcc_more_v.tar.gz" # enable_additional_cpu_optimizations_for_gcc
config # the main kernel config file
60-linux.hook # pacman hook for depmod
@@ -46,7 +47,7 @@ validpgpkeys=(
'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds
'647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman
)
-sha256sums=('SKIP'
+sha256sums=(
'226e30068ea0fecdb22f337391385701996bfbdba37cdcf0f1dbf55f1080542d'
'828a1411c41f9fa47af90f8e0ae9742866de16dff2cadb2dbb06f41009ac8201'
'ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21'
@@ -56,16 +57,50 @@ sha256sums=('SKIP'
_kernelname=${pkgbase#linux}
: ${_kernelname:=-ARCH}
-prepare() {
- cd $_srcname
- msg2 "Adding patches from Arch Linux kernel repository..."
- git remote add arch_stable https://git.archlinux.org/linux.git
- git pull arch_stable v$_srcver
-
+first_run() {
+ git clone https://git.archlinux.org/linux.git
+ cd linux
+ git fetch --tags
+ git checkout $_srcver
+}
+
+patch_with() {
+ git config merge.renameLimit 999999
+ git checkout -b makepkg_"$(date +'%s')"
+
+ git remote add bcachefs http://evilpiepirate.org/git/bcachefs.git || true
+ git fetch bcachefs master
+
+ msg2 "Adding patches from Bcachefs repo ..."
+ if ! git merge bcachefs/master
+ then if ! git diff --name-only --diff-filter=U | xargs git checkout --theirs
+ then git diff --name-only --diff-filter=U |
+ while read line
+ do sleep 0.1; if ! git checkout --theirs $line
+ then sleep 0.1; git rm $line
+ fi
+ done
+ fi
+ fi
+ msg2 "patching Kdebug"
# https://github.com/graysky2/kernel_gcc_patch
msg2 "Patching to enabled additional gcc CPU optimizatons..."
patch -Np1 -i "$srcdir/kernel_gcc_patch-$_gcc_more_v/enable_additional_cpu_optimizations_for_gcc_v8.1+_kernel_v4.13+.patch"
+ git commit -am "makepkg $(date)"
+ git config --unset merge.renameLimit
+}
+
+prepare() {
+ if cd linux 2> /dev/null
+ then make clean || true
+ git reset --hard origin/master
+ git pull origin master
+ git fetch --tags
+ git reset --hard $_srcver
+ else first_run
+ fi
+ patch_with
msg2 "Setting version..."
scripts/setlocalversion --save-scmversion
@@ -103,7 +138,7 @@ prepare() {
make -s kernelrelease > ../version
msg2 "Prepared %s version %s" "$pkgbase" "$(<../version)"
- [[ -z "$_makenconfig" ]] || make nconfig
+ [[ -z "$_makenconfig" ]] || make menuconfig
# save configuration for later reuse
cat .config > "${startdir}/config.last"
@@ -111,7 +146,7 @@ prepare() {
build() {
cd $_srcname
- make bzImage modules htmldocs
+ make bzImage modules #htmldocs
}
_package() {
@@ -282,7 +317,7 @@ _package-docs() {
chmod -Rc u=rwX,go=rX "$pkgdir"
}
-pkgname=("$pkgbase" "$pkgbase-headers" "$pkgbase-docs")
+pkgname=("$pkgbase" "$pkgbase-headers") # "$pkgbase-docs")
for _p in "${pkgname[@]}"; do
eval "package_$_p() {
$(declare -f "_package${_p#$pkgbase}")
from bcachefs.
I have this issue too. I have no clue what's going on. I've even ripped out part of makepkg's packaging script and it makes a proper package on its own (???). The checksum in the .MTREE file generated by makepkg gets changed when building packages inside a bcachefs filesystem when going through /usr/bin/makepkg
. I can create packages in tmpfs or btrfs/ext4 mounts just fine. Doesn't matter which format I choose (i.e. tar, tar.xz, tar.gz), also happens on a compression=none discard=0 freshly formatted pendrive. Makeflags don't affect it as it happens to packages that don't even compile.
It has happened to me before a week ago but then it stopped. Then it started happening again today (maybe something to do with epochs?).
For now, if anyone runs into Exec format error
make sure you build using BUILDDIR=/tmp/makepkg makepkg
@Valmar33
Do you have a bcachefs root? I'm using a ext4 root, bcaches /home.
from bcachefs.
I'm using ext4 root, while using bcachefs for testing.
from bcachefs.
Can someone check if this is still happening with latest master?
If it is, I'm gonna get on this one
from bcachefs.
i ll check and report back within the hour
from bcachefs.
yep still the same issue, with makepkg -R
which repacks the already compiled result of the building process on tmpfs it creates a viable package but on bcachefs it does not.
just to reiterate, compiling works. the package process does not. if i copy the compiled source to tmpfs and repackage with makepkg -R
it works
i am uploading the 2 results now, will update you with the link
from bcachefs.
https://nicman24vps.duckdns.org/index.php/s/8dyFFLtKqJQRsg5
e: more info
Filesystem 85bf4cd0-9945-41d8-8d72-b93c618fc93b:
Size: 5.4T
Used: 2.0T
By replicas: 1x 2x 3x 4x
sb: 0 0 0 0
journal: 0 0 0 0
btree: 0 0 0 0
data: 0 0 0 0
cached: 0 0 0 0
reserved: 0 23.9G 0 0
online reserved: 59.6M
hdd (device 1): /dev/sda1 readwrite
data buckets fragmented
sb: 132.0K 1 380.0K
journal: 512.0M 1024 0
btree: 2.8G 9694 1.9G
data: 1022.4G 2159192 31.9G
cached: 0 0 0
available: 1.7T 3553263
capacity: 2.7T 5723174
hdd (device 2): /dev/sdb1 readwrite
data buckets fragmented
sb: 132.0K 1 380.0K
journal: 512.0M 1024 0
btree: 2.8M 10 2.2M
data: 1022.3G 2131142 18.2G
cached: 0 0 0
available: 1.7T 3590997
capacity: 2.7T 5723174
nvme (device 0): /dev/nvme0n1p2 readwrite
data buckets fragmented
sb: 132.0K 1 124.0K
journal: 256.0M 1024 0
btree: 2.8G 11614 0
data: 40.6M 181 4.6M
cached: 437.0G 1827452 9.2G
available: 454.2G 1860252
capacity: 457.3G 1873072
bcachefs show-super /dev/nvme0n1p2
External UUID: 85bf4cd0-9945-41d8-8d72-b93c618fc93b
Internal UUID: fafe7b2d-f6db-4b4e-823b-0ee265771dd4
Label:
Version: 10
Created: Tue Jan 29 16:31:26 2019
Block_size: 4.0K
Btree node size: 256.0K
Error action: remount-ro
Clean: 0
Metadata replicas: 2
Data replicas: 2
Metadata checksum type: crc32c (1)
Data checksum type: crc32c (1)
Compression type: none (0)
Foreground write target: Group 0 (nvme)
Background write target: Group 1 (hdd)
Promote target: Group 0 (nvme)
String hash type: siphash (2)
32 bit inodes: 0
GC reserve percentage: 8%
Root reserve percentage: 0%
Devices: 3 live, 3 total
Sections: journal,members,replicas_v0,disk_groups,clean,journal_seq_blacklist
Superblock size: 12072
Members (size 176):
Device 0:
UUID: 3fed3b47-259c-4829-8c8c-688e751969a0
Size: 457.3G
Bucket size: 256.0K
First bucket: 0
Buckets: 1873072
Last mount: Sat Jun 1 12:28:11 2019
State: readwrite
Group: nvme (0)
Data allowed: journal,btree,data
Has data: (none)
Replacement policy: lru
Discard: 0
Device 1:
UUID: 97b1b10d-f51d-4831-a007-f49fcd1794a8
Size: 2.7T
Bucket size: 512.0K
First bucket: 0
Buckets: 5723174
Last mount: Sat Jun 1 12:28:11 2019
State: readwrite
Group: hdd (1)
Data allowed: journal,btree,data
Has data: (none)
Replacement policy: lru
Discard: 0
Device 2:
UUID: da144269-9e39-49cb-a137-375c814910da
Size: 2.7T
Bucket size: 512.0K
First bucket: 0
Buckets: 5723174
Last mount: Sat Jun 1 12:28:11 2019
State: readwrite
Group: hdd (1)
Data allowed: journal,btree,data
Has data: (none)
Replacement policy: lru
Discard: 0
from bcachefs.
still a critical issue (tested master) as there is no way to compile linux-bcachefs on bcachefs in arch :/
from bcachefs.
as a workaround you can edit makepkg with
--- /usr/bin/makepkg 2019-03-01 03:41:56.000000000 +0200
+++ makepkg 2019-07-21 11:47:22.353595608 +0300
@@ -1465,10 +1465,10 @@
if [[ $BUILDDIR -ef "$startdir" ]]; then
srcdir="$BUILDDIR/src"
- pkgdirbase="$BUILDDIR/pkg"
+ pkgdirbase="/tmp/$BUILDDIR/pkg"
else
srcdir="$BUILDDIR/$pkgbase/src"
- pkgdirbase="$BUILDDIR/$pkgbase/pkg"
+ pkgdirbase="/tmp/$BUILDDIR/$pkgbase/pkg"
fi
from bcachefs.
no idea on how or why but the issue seams to have fixed itself. someone needed to verify as i am running a custom 5.4 kernel with some patches.
from bcachefs.
Related Issues (20)
- Making a snapshot on a prjquota-enabled filesystem makes it impossible to mount it again [26202210393a]
- Can't change durability and `device add` doesn't have a durability arg either [26202210393a] HOT 1
- NVMe Random write performance[5.19] HOT 25
- Kernel crash caused by rand insert (Perf Test, Version 5.19) HOT 1
- backpointer inconsistency [v5.19] HOT 3
- Upgrade the patch for 5.19.x kernel tree HOT 4
- rand insert 10 billions key took long[v5.17] HOT 1
- Rand write IOPS not stable with multiple threads [v5.17] HOT 3
- Kernel bug during mount in [37151a1] HOT 6
- Kernel bug when attempting to evacuate a device in 24c6361. HOT 7
- BUG in fs/bcachefs/btree_cache.c [cb8869d] HOT 2
- Build errors on x86_64 with CONFIG_BCACHEFS_FS=m HOT 5
- snapshot should not point to subvol: [1ae0d7c505e3 HOT 6
- Kernel panic "trans path oveflow" while firefox refreshing config[1ae0d7c505e3] HOT 14
- Regression in fsck performance in 47ffed9 HOT 9
- KASAN error [93dd3a558735] HOT 6
- getfattr does not seem to be able to read file/directory options with backpointers. HOT 3
- Impossibly long rebalance_work throttle time with 83edfde
- "ERROR: modpost: "prt_u64" [fs/bcachefs/bcachefs.ko] undefined!" with 56a0bd50df1287a344e647f51c9c151085cb81a9 HOT 2
- Rand read IOPS is too low in HDD HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bcachefs.