如何解决”Error: can’t open elf64 for reading: No such file or directory”

huangapple go评论68阅读模式
英文:

How to solve "Error: can't open elf64 for reading: No such file or directory"

问题

我正在Ubuntu 20.04上编译libvpx-1.7.0库,配置命令如下:

./configure --disable-vp8 --enable-vp9 --enable-libyuv --target=x86_64-linux-gcc --enable-debug --disable-install-docs --log=yes --enable-internal-stats --disable-unit-tests --disable-docs --disable-tools --enable-webm-io --disable-optimizations

make命令如下:

make

然后我遇到了以下错误:

[AS] vpx_ports/emms_mmx.asm.o
Assembler messages:
Error: can't open elf64 for reading: No such file or directory
vpx_ports/emms_mmx.asm:2: Error: no such instruction: 'copyright (c) 2010 The WebM project authors. All Rights Reserved.'
vpx_ports/emms_mmx.asm:4: Error: no such instruction: 'use of this source code is governed by a BSD-style license'
vpx_ports/emms_mmx.asm:5: Error: no such instruction: 'that can be found in the LICENSE file in the root of the source'
vpx_ports/emms_mmx.asm:6: Error: no such instruction: 'tree. An additional intellectual property rights grant can be found'
vpx_ports/emms_mmx.asm:7: Error: junk 'file PATENTS.  All contributing project authors may' after expression
vpx_ports/emms_mmx.asm:7: Error: operand size mismatch for 'in'
vpx_ports/emms_mmx.asm:8: Error: no such instruction: 'be found in the AUTHORS file in the root of the source tree.'
vpx_ports/emms_mmx.asm:12: Error: junk at end of line, first unrecognized character is '%'
vpx_ports/emms_mmx.asm:14: Error: no such instruction: 'section .text'
vpx_ports/emms_mmx.asm:15: Error: invalid character '(' in mnemonic
vpx_ports/emms_mmx.asm:16: Error: invalid character '(' in mnemonic

我该如何解决这个问题?

昨晚我能够编译libvpx并运行vpxdec,最初没有添加配置选项"--disable-optimizations"。第一次添加"--disable-optimizations"后,无论是否使用"--disable-optimizations",我都无法再次编译它。

英文:

I was compiling libvpx-1.7.0 on ubuntu-20.04
the configure command is:

./configure --disable-vp8 --enable-vp9 --enable-libyuv --target=x86_64-linux-gcc --enable-debug --disable-install-docs --log=yes --enable-internal-stats --disable-unit-tests --disable-docs --disable-tools --enable-webm-io --disable-optimizations

the make command is:

make

then I an error:

 [AS] vpx_ports/emms_mmx.asm.o
Assembler messages:
Error: can't open elf64 for reading: No such file or directory
vpx_ports/emms_mmx.asm:2: Error: no such instruction: `copyright (c) 2010 The WebM project authors. All Rights Reserved.'
vpx_ports/emms_mmx.asm:4: Error: no such instruction: `use of this source code is governed by a BSD-style license'
vpx_ports/emms_mmx.asm:5: Error: no such instruction: `that can be found in the LICENSE file in the root of the source'
vpx_ports/emms_mmx.asm:6: Error: no such instruction: `tree. An additional intellectual property rights grant can be found'
vpx_ports/emms_mmx.asm:7: Error: junk `file PATENTS.  All contributing project authors may' after expression
vpx_ports/emms_mmx.asm:7: Error: operand size mismatch for `in'
vpx_ports/emms_mmx.asm:8: Error: no such instruction: `be found in the AUTHORS file in the root of the source tree.'
vpx_ports/emms_mmx.asm:12: Error: junk at end of line, first unrecognized character is `%'
vpx_ports/emms_mmx.asm:14: Error: no such instruction: `section .text'
vpx_ports/emms_mmx.asm:15: Error: invalid character '(' in mnemonic
vpx_ports/emms_mmx.asm:16: Error: invalid character '(' in mnemonic

What can I do to solve the problem?

I can compile libvpx and run vpxdec last night, at first I didn't add the configure option "--disable-optimizations". After the first time I add "--disable-optimizations" I can't compile it any more, no matter whether "--disable-optimizations" is used.

答案1

得分: 2

也许有一些东西改变了我的环境变量。最终,我发现我在使用错误的汇编器。只需在配置命令中添加选项 "--as=yasm" 即可修复错误。

英文:

May be there were something that changed my environment variant. I finally find out that I was using a wrong assembler. Just adding the option "--as=yasm" at configure command can fix the error.

huangapple
  • 本文由 发表于 2023年2月26日 20:17:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/75571920.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定