-
Notifications
You must be signed in to change notification settings - Fork 178
Fedora 17: cannot compile anymore #141
Comments
There is something wrong with something in the build chain. When I move the spl directory to /dev/shm/spl, it WORKS. When, on the contrary, I have it on my /home/rudd-o/Projects/Mine/spl, it DOES NOT. I will track down more info about this ASAP. |
When working from /usr/src (note: ssd/ROOT/fedora-17/usr on /usr type zfs (rw,relatime,xattr)) It DOES NOT WORK. It appears that kernel module compiles will simply not work if the sources are stored in ZFS file systems. That's a pretty big bug. |
I tested by moving /usr/src/spl to /spl It won't work. As long as the file system containing the ZFS / SPL sources is located inside a ZFS dataset, the compile fails. I will now try ext4. |
Confirmed working with ext4. So far we know that:
How cool is it that we are building a file system that cannot build itself when it is being used? :-S |
I have also verified that, if I go to /dev/shm and I make a symlink to the source directory, then cd into the directory and attempt to compile ZFS, it won't work either. It also dies with the modpost errors above. kernel version
|
Finally, I have verified that, if I put the sources of spl on an ext4 file system backed by a ZVol, it works and the compile succeeds. This points to a problem, not with the block layer or the SPA, but rather the POSIX layer of ZFS and the way it interacts with my particular kernel version. |
Yes, I suspect this is related to openzfs/zfs#764. This really need to go on my short list of things to get fixed. But the gist of it is that we're not strictly updating the inode in all cases. Certain utilities have stumbled due to this problem. Your right, it's a big deal. |
Yes. Well, that situation got worse in the past few days. I used to be able to compile zfs in zfs. Now I cannot :) |
That's a little surprising, maybe the updated tool chain is just more likely to notice the issue. It's just that the updates aren't quite as prompt as they should be. Anyway, we'll get it fixed. |
@Rudd-O Could this perhaps actually have been caused by the broken version of grep, openzfs/zfs#829 ? |
This just bit me too. Arch Linux 3.4.2 with custom kernel built with CONFIG_PREEMPT_NONE, zfs/spl 0.6.0-rc9. My new 3.4.7 kernel package and spl both failed to build their modules. Unsure if zfs succeeded, or if those were just the old modules sitting in /usr/lib/modules/extramodules-3.4-no-preempt. |
@fuhry Can you check what version of grep you have installed? |
nh:root:~ # yaourt -Q grep Written by Mike Haertel and others, see http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS. |
That may be it then. GNU grep 2.13 is buggy see openzfs/zfs#829 , could try downgrading it verify that resolves the problem. |
Closing this issue. The build failures are believed to have been due to a bug introduced by grep. |
After the latest batch of updates:
The text was updated successfully, but these errors were encountered: