gpt4 book ai didi

linux - 可能的架构错误

转载 作者:太空宇宙 更新时间:2023-11-04 11:12:20 25 4
gpt4 key购买 nike

升级到 Linux 内核版本 3.8.8 后,我发现 FUSE 模块没有正确安装。所以我下载了this fuse包(fuse-2.9.3),解压到Downloads目录,在命令行配置,然后使用make install命令,得到如下错误信息:

DALEK fuse-2.9.3 # make V=1 install
Making install in include
make[1]: Entering directory `/home/zermacr0yd/Downloads/fuse-2.9.3/include'
make[2]: Entering directory `/home/zermacr0yd/Downloads/fuse-2.9.3/include'
make[2]: Nothing to be done for `install-exec-am'.
/bin/mkdir -p '/usr/include/fuse'
/usr/bin/install -c -m 644 fuse.h fuse_compat.h fuse_common.h fuse_common_compat.h fuse_lowlevel.h fuse_lowlevel_compat.h fuse_opt.h cuse_lowlevel.h '/usr/include/fuse'
/bin/mkdir -p '/usr/include'
/usr/bin/install -c -m 644 old/fuse.h ulockmgr.h '/usr/include'
make[2]: Leaving directory `/home/zermacr0yd/Downloads/fuse-2.9.3/include'
make[1]: Leaving directory `/home/zermacr0yd/Downloads/fuse-2.9.3/include'
Making install in lib
make[1]: Entering directory `/home/zermacr0yd/Downloads/fuse-2.9.3/lib'
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse.lo -MD -MP -MF .deps/fuse.Tpo -c -o fuse.lo fuse.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse.lo -MD -MP -MF .deps/fuse.Tpo -c fuse.c -fPIC -DPIC -o .libs/fuse.o
fuse.c:219:1: warning: missing braces around initializer [-Wmissing-braces]
fuse.c:219:1: warning: (near initialization for 'fuse_context_lock.__data') [-Wmissing-braces]
mv -f .deps/fuse.Tpo .deps/fuse.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_kern_chan.lo -MD -MP -MF .deps/fuse_kern_chan.Tpo -c -o fuse_kern_chan.lo fuse_kern_chan.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_kern_chan.lo -MD -MP -MF .deps/fuse_kern_chan.Tpo -c fuse_kern_chan.c -fPIC -DPIC -o .libs/fuse_kern_chan.o
mv -f .deps/fuse_kern_chan.Tpo .deps/fuse_kern_chan.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_loop.lo -MD -MP -MF .deps/fuse_loop.Tpo -c -o fuse_loop.lo fuse_loop.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_loop.lo -MD -MP -MF .deps/fuse_loop.Tpo -c fuse_loop.c -fPIC -DPIC -o .libs/fuse_loop.o
mv -f .deps/fuse_loop.Tpo .deps/fuse_loop.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_loop_mt.lo -MD -MP -MF .deps/fuse_loop_mt.Tpo -c -o fuse_loop_mt.lo fuse_loop_mt.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_loop_mt.lo -MD -MP -MF .deps/fuse_loop_mt.Tpo -c fuse_loop_mt.c -fPIC -DPIC -o .libs/fuse_loop_mt.o
mv -f .deps/fuse_loop_mt.Tpo .deps/fuse_loop_mt.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_lowlevel.lo -MD -MP -MF .deps/fuse_lowlevel.Tpo -c -o fuse_lowlevel.lo fuse_lowlevel.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_lowlevel.lo -MD -MP -MF .deps/fuse_lowlevel.Tpo -c fuse_lowlevel.c -fPIC -DPIC -o .libs/fuse_lowlevel.o
mv -f .deps/fuse_lowlevel.Tpo .deps/fuse_lowlevel.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_mt.lo -MD -MP -MF .deps/fuse_mt.Tpo -c -o fuse_mt.lo fuse_mt.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_mt.lo -MD -MP -MF .deps/fuse_mt.Tpo -c fuse_mt.c -fPIC -DPIC -o .libs/fuse_mt.o
mv -f .deps/fuse_mt.Tpo .deps/fuse_mt.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_opt.lo -MD -MP -MF .deps/fuse_opt.Tpo -c -o fuse_opt.lo fuse_opt.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_opt.lo -MD -MP -MF .deps/fuse_opt.Tpo -c fuse_opt.c -fPIC -DPIC -o .libs/fuse_opt.o
mv -f .deps/fuse_opt.Tpo .deps/fuse_opt.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_session.lo -MD -MP -MF .deps/fuse_session.Tpo -c -o fuse_session.lo fuse_session.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_session.lo -MD -MP -MF .deps/fuse_session.Tpo -c fuse_session.c -fPIC -DPIC -o .libs/fuse_session.o
mv -f .deps/fuse_session.Tpo .deps/fuse_session.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_signals.lo -MD -MP -MF .deps/fuse_signals.Tpo -c -o fuse_signals.lo fuse_signals.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_signals.lo -MD -MP -MF .deps/fuse_signals.Tpo -c fuse_signals.c -fPIC -DPIC -o .libs/fuse_signals.o
mv -f .deps/fuse_signals.Tpo .deps/fuse_signals.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT buffer.lo -MD -MP -MF .deps/buffer.Tpo -c -o buffer.lo buffer.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT buffer.lo -MD -MP -MF .deps/buffer.Tpo -c buffer.c -fPIC -DPIC -o .libs/buffer.o
mv -f .deps/buffer.Tpo .deps/buffer.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT cuse_lowlevel.lo -MD -MP -MF .deps/cuse_lowlevel.Tpo -c -o cuse_lowlevel.lo cuse_lowlevel.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT cuse_lowlevel.lo -MD -MP -MF .deps/cuse_lowlevel.Tpo -c cuse_lowlevel.c -fPIC -DPIC -o .libs/cuse_lowlevel.o
mv -f .deps/cuse_lowlevel.Tpo .deps/cuse_lowlevel.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT helper.lo -MD -MP -MF .deps/helper.Tpo -c -o helper.lo helper.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT helper.lo -MD -MP -MF .deps/helper.Tpo -c helper.c -fPIC -DPIC -o .libs/helper.o
helper.c: In function 'fuse_daemonize':
helper.c:204:3: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result]
mv -f .deps/helper.Tpo .deps/helper.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT subdir.lo -MD -MP -MF .deps/subdir.Tpo -c -o subdir.lo `test -f 'modules/subdir.c' || echo './'`modules/subdir.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT subdir.lo -MD -MP -MF .deps/subdir.Tpo -c modules/subdir.c -fPIC -DPIC -o .libs/subdir.o
mv -f .deps/subdir.Tpo .deps/subdir.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT iconv.lo -MD -MP -MF .deps/iconv.Tpo -c -o iconv.lo `test -f 'modules/iconv.c' || echo './'`modules/iconv.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT iconv.lo -MD -MP -MF .deps/iconv.Tpo -c modules/iconv.c -fPIC -DPIC -o .libs/iconv.o
mv -f .deps/iconv.Tpo .deps/iconv.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT mount.lo -MD -MP -MF .deps/mount.Tpo -c -o mount.lo mount.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT mount.lo -MD -MP -MF .deps/mount.Tpo -c mount.c -fPIC -DPIC -o .libs/mount.o
mv -f .deps/mount.Tpo .deps/mount.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT mount_util.lo -MD -MP -MF .deps/mount_util.Tpo -c -o mount_util.lo mount_util.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT mount_util.lo -MD -MP -MF .deps/mount_util.Tpo -c mount_util.c -fPIC -DPIC -o .libs/mount_util.o
mv -f .deps/mount_util.Tpo .deps/mount_util.Plo
/bin/bash ../libtool --tag=CC --mode=link gcc -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -pthread -ldl -version-number 2:9:3 -Wl,--version-script,./fuse_versionscript -o libfuse.la -rpath /usr/lib fuse.lo fuse_kern_chan.lo fuse_loop.lo fuse_loop_mt.lo fuse_lowlevel.lo fuse_mt.lo fuse_opt.lo fuse_session.lo fuse_signals.lo buffer.lo cuse_lowlevel.lo helper.lo subdir.lo iconv.lo mount.lo mount_util.lo
libtool: link: gcc -shared -fPIC -DPIC .libs/fuse.o .libs/fuse_kern_chan.o .libs/fuse_loop.o .libs/fuse_loop_mt.o .libs/fuse_lowlevel.o .libs/fuse_mt.o .libs/fuse_opt.o .libs/fuse_session.o .libs/fuse_signals.o .libs/buffer.o .libs/cuse_lowlevel.o .libs/helper.o .libs/subdir.o .libs/iconv.o .libs/mount.o .libs/mount_util.o -ldl -O2 -pthread -Wl,--version-script -Wl,./fuse_versionscript -pthread -Wl,-soname -Wl,libfuse.so.2 -o .libs/libfuse.so.2.9.3
/usr/bin/ld: .libs/mount.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
.libs/mount.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [libfuse.la] Error 1
make[1]: Leaving directory `/home/zermacr0yd/Downloads/fuse-2.9.3/lib'
make: *** [install-recursive] Error

现在我使用命令 CFLAGS=-fPIC ./configure 重新编译和配置,然后再次使用 make install 命令。 这没有解决问题。我想知道由 makefile 创建的 mount.o 对象是否与我的体系结构不兼容。也就是说,这个包是针对32位架构的,而我的机器使用的是x86_64架构。以前有人遇到过这个错误吗?特别是这个包。

最佳答案

我认为您的问题与以下问题性质相同(尽管不是 FUSE 部分):

ffmpeg install on CentOS 64-bit 'install with -fPIC' error

上面讨论的答案也列在下面:

http://ubuntuforums.org/showthread.php?t=786095&page=53&p=8080679#post8080679

并且如下面的 CFLAGS 所示:

https://groups.google.com/forum/#!topic/harbour-devel/D4FqsmACKAU

“CFLAGS”本身也不是必需的。

关于linux - 可能的架构错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22519209/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com