Building BeeGFS 7 on Jetson Nano running Ubuntu 18.04 ARM64

15 views
Skip to first unread message

Nicholas Yue

unread,
Sep 5, 2021, 8:28:22 PM9/5/21
to beegfs-user
Hi,

  I encountered the following compilation errors when trying to build BeeGFS on a Jetson Nano with an ARM64 chip running Ubuntu 18.04

  The failure seems to be at the point where the kernel module is being compiled

```
scripts/Makefile.build:335: recipe for target '/home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source/filesystem/FhgfsOpsPages.o' failed
make[3]: *** [/home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source/filesystem/FhgfsOpsPages.o] Error 1
Makefile:1629: recipe for target '_module_/home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source' failed
make[2]: *** [_module_/home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9'
Makefile:148: recipe for target 'module' failed
make[1]: *** [module] Error 2
make[1]: Leaving directory '/home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build'
Makefile:67: recipe for target 'client' failed
make: *** [client] Error 2
```

Cheers

Nicholas Yue

unread,
Sep 5, 2021, 8:35:27 PM9/5/21
to beegfs-user
I will include a bit more of the error log

```
/home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source/filesystem/FhgfsOpsPages.c: In function ‘FhgfsOpsPages_endReadPage’:
/home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source/filesystem/FhgfsOpsPages.c:771:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       if (readRes && readRes < PAGE_SIZE)
                              ^
/home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source/filesystem/FhgfsOpsPages.c: In function ‘_FhgfsOpsPages_readpages’:
/home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source/filesystem/FhgfsOpsPages.c:1007:52: error: passing argument 3 of ‘read_cache_pages’ from incompatible pointer type [-Werror=incompatible-pointer-types]
       retVal = read_cache_pages(mapping, pageList, FhgfsOpsPages_readPageCallBack, &pageData);
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source/filesystem/FhgfsOps_versions.h:10:0,
                 from /home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source/os/OsDeps.h:4,
                 from /home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source/common/Common.h:28,
                 from /home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source/app/config/Config.h:4,
                 from /home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source/app/log/Logger.h:4,
                 from /home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source/filesystem/FhgfsOpsPages.c:6:
./include/linux/pagemap.h:366:12: note: expected ‘int (*)(struct file *, struct page *)’ but argument is of type ‘int (*)(void *, struct page *)’
 extern int read_cache_pages(struct address_space *mapping,
            ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:335: recipe for target '/home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source/filesystem/FhgfsOpsPages.o' failed
make[3]: *** [/home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source/filesystem/FhgfsOpsPages.o] Error 1
Makefile:1629: recipe for target '_module_/home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source' failed
make[2]: *** [_module_/home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build/../source] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9'
Makefile:148: recipe for target 'module' failed
make[1]: *** [module] Error 2
make[1]: Leaving directory '/home/picocluster/projects/beegfs/beegfs_v7_git/client_module/build'
Makefile:67: recipe for target 'client' failed
make: *** [client] Error 2
```

Reply all
Reply to author
Forward
0 new messages