日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux在mak时候出现错误,在使用yocto构建linux映像时出现“memfd戋create的静态声明跟随非静态声明”错误...

發(fā)布時間:2023/12/15 linux 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux在mak时候出现错误,在使用yocto构建linux映像时出现“memfd戋create的静态声明跟随非静态声明”错误... 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

我正在使用

Yocto

建立系統(tǒng)

Ubuntu 18.04

主機。我正在遵循提供的步驟

here

. 我正在為

Colibri iMX6ULL

模塊上的計算機。但是,我的生成失敗,它顯示以下錯誤

declaration of amemfd_createa follows non-static declaration

| static int memfd_create(const char *name, unsigned int flags)

| ^~~~~~~~~~~~

| In file included from /usr/include/x86_64-linux-gnu/bits/mman-linux.h:115:0,

| from /usr/include/x86_64-linux-gnu/bits/mman.h:45,

| from /usr/include/x86_64-linux-gnu/sys/mman.h:41,

| from /home/abhiarora/iohertz/gateway_os/yocto/build/tmp-glibc/work/x86_64-linux/qemu-native/2.10.0-r0/qemu-2.10.0/include/sysemu/os-posix.h:29,

| from /home/abhiarora/iohertz/gateway_os/yocto/build/tmp-glibc/work/x86_64-linux/qemu-native/2.10.0-r0/qemu-2.10.0/include/qemu/osdep.h:104,

| from /home/abhiarora/iohertz/gateway_os/yocto/build/tmp-glibc/work/x86_64-linux/qemu-native/2.10.0-r0/qemu-2.10.0/util/memfd.c:28:

| /usr/include/x86_64-linux-gnu/bits/mman-shared.h:46:5: note: previous declaration of amemfd_createa was here

| int memfd_create (const char *__name, unsigned int __flags) __THROW;

| ^~~~~~~~~~~~

| /home/abhiarora/iohertz/gateway_os/yocto/build/tmp-glibc/work/x86_64-linux/qemu-native/2.10.0-r0/qemu-2.10.0/rules.mak:66: recipe for target 'util/memfd.o' failed

這個錯誤:

| gcc -c -I. -I../lib -I../../git/lib -isystem/home/abhiarora/iohertz/gateway_os/yocto/build/tmp-glibc/work/x86_64-linux/e2fsprogs-native/1.43.5-r0/recipe-sysroot-native/usr/include -isystem/home/abhiarora/iohertz/gateway_os/yocto/build/tmp-glibc/work/x86_64-linux/e2fsprogs-native/1.43.5-r0/recipe-sysroot-native/usr/include -O2 -pipe -DHAVE_CONFIG_H -I../../git/debugfs/../e2fsck -DDEBUGFS ../../git/debugfs/quota.c -o quota.o

| ../../git/debugfs/../misc/create_inode.c:406:18: error: conflicting types for acopy_file_rangea

| static errcode_t copy_file_range(ext2_filsys fs, int fd, ext2_file_t e2_file,

| ^~~~~~~~~~~~~~~

| In file included from ../../git/debugfs/../misc/create_inode.c:19:0:

| /usr/include/unistd.h:1110:9: note: previous declaration of acopy_file_rangea was here

| ssize_t copy_file_range (int __infd, __off64_t *__pinoff,

| ^~~~~~~~~~~~~~~

| gcc -c -I. -I../lib -I../../git/lib -isystem/home/abhiarora/iohertz/gateway_os/yocto/build/tmp-glibc/work/x86_64-linux/e2fsprogs-native/1.43.5-r0/recipe-sysroot-native/usr/include -isystem/home/abhiarora/iohertz/gateway_os/yocto/build/tmp-glibc/work/x86_64-linux/e2fsprogs-native/1.43.5-r0/recipe-sysroot-native/usr/include -O2 -pipe -DHAVE_CONFIG_H -I../../git/debugfs/../e2fsck -DDEBUGFS ../../git/debugfs/xattrs.c -o xattrs.o

| Makefile:422: recipe for target 'create_inode.o' failed

| make[2]: *** [create_inode.o] Error 1

| make[2]: *** Waiting for unfinished jobs....

失敗的包/任務:

E2FSprogs_1.43.5版

QEMU2.2.10

有人能幫我嗎?我不能切換到Ubuntu 16.04,但我認為它也應該和我的系統(tǒng)一起工作。

總結

以上是生活随笔為你收集整理的linux在mak时候出现错误,在使用yocto构建linux映像时出现“memfd戋create的静态声明跟随非静态声明”错误...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。