命令行输入的是
emerge --ask =www-client/firefox-123.0
在compile阶段说是找不到符号.Lla-relax-align
,但是grep了源代码一下,并没有用到这个符号,是不是系统需要做一些配置?多谢大家
完整输出:
0:04.17 checking whether the C compiler supports -Wno-unknown-warning-option... yes
0:04.19 checking whether the C++ compiler supports -Wno-unknown-warning-option... yes
0:04.21 checking whether the C++ compiler supports -fno-sized-deallocation... yes
0:04.23 checking whether the C++ compiler supports -fno-aligned-new... yes
0:04.23 checking for llvm_profdata... /usr/lib/llvm/17/bin/llvm-profdata
0:04.24 checking whether llvm-profdata supports 'order' subcommand... yes
0:04.27 checking for llvm-objdump... /usr/lib/llvm/17/bin/llvm-objdump
0:04.29 checking for readelf... /usr/lib/llvm/17/bin/llvm-readelf
0:04.32 checking for objcopy... /usr/lib/llvm/17/bin/llvm-objcopy
0:04.32 checking for alsa... yes
0:04.33 checking MOZ_ALSA_CFLAGS...
0:04.33 checking MOZ_ALSA_LIBS... -lasound
0:04.34 checking for nspr >= 4.32... yes
0:04.34 checking NSPR_CFLAGS... -I/usr/include/nspr
0:04.34 checking NSPR_LIBS... -lplds4 -lplc4 -lnspr4
0:04.34 checking for rustc... /usr/bin/rustc
0:04.34 checking for cargo... /usr/bin/cargo
0:04.47 checking rustc version... 1.76.0
0:04.49 checking cargo version... 1.76.0
0:04.66 checking for rust host triplet... loongarch64-unknown-linux-gnu
0:04.70 checking for rust target triplet... loongarch64-unknown-linux-gnu
0:04.70 checking for rustdoc... /usr/bin/rustdoc
0:04.71 checking for cbindgen... /usr/bin/cbindgen
0:04.71 checking for rustfmt... not found
0:04.71 checking for clang for bindgen... /usr/lib/llvm/17/bin/loongarch64-unknown-linux-gnu-clang++-17
0:04.71 checking for libclang for bindgen... /usr/lib/llvm/17/lib64/libclang.so
0:04.73 checking that libclang is new enough... yes
0:04.73 checking bindgen cflags... -x c++ -fno-sized-deallocation -fno-aligned-new -DTRACING=1 -DIMPL_LIBXUL -DMOZILLA_INTERNAL_API -DRUST_BINDGEN
0:04.73 checking for libffi > 3.0.9... yes
0:04.74 checking MOZ_FFI_CFLAGS... -I/usr/lib64/libffi/include
0:04.74 checking MOZ_FFI_LIBS... -lffi
0:04.75 checking for icu-i18n >= 73.1... yes
0:04.75 checking MOZ_ICU_CFLAGS...
0:04.75 checking MOZ_ICU_LIBS... -licui18n -licuuc -licudata
0:04.78 checking for tm_zone and tm_gmtoff in struct tm... yes
0:04.83 checking for getpagesize... no
0:04.87 checking for gmtime_r... no
0:04.92 checking for localtime_r... no
0:04.97 checking for gettid... no
0:05.01 checking for setpriority... no
0:05.06 checking for syscall... no
0:05.10 checking for getc_unlocked... no
0:05.15 checking for pthread_getname_np... no
0:05.19 checking for pthread_get_name_np... no
0:05.24 checking for strerror... no
0:05.29 checking for __cxa_demangle... no
0:05.34 checking for _getc_nolock... no
0:05.38 checking for localeconv... no
0:05.42 checking for nodejs... /usr/bin/node (20.11.1)
0:05.43 checking for pango >= 1.22.0... yes
0:05.44 checking MOZ_PANGO_CFLAGS... -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/lib64/libffi/include -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/pixman-1
0:05.44 checking MOZ_PANGO_LIBS... -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz
0:05.45 checking for fontconfig >= 2.7.0... yes
0:05.45 checking _FONTCONFIG_CFLAGS... -I/usr/include/freetype2
0:05.45 checking _FONTCONFIG_LIBS... -lfontconfig -lfreetype
0:05.45 checking for freetype2 >= 9.10.3... yes
0:05.46 checking _FT2_CFLAGS... -I/usr/include/freetype2
0:05.46 checking _FT2_LIBS... -lfreetype
0:05.46 checking for graphite2... yes
0:05.47 checking MOZ_GRAPHITE2_CFLAGS...
0:05.47 checking MOZ_GRAPHITE2_LIBS... -lgraphite2
0:05.47 checking for harfbuzz >= 2.7.4... yes
0:05.48 checking MOZ_HARFBUZZ_CFLAGS... -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
0:05.48 checking MOZ_HARFBUZZ_LIBS... -lharfbuzz
0:05.48 checking for tar... /usr/bin/gtar
0:05.48 checking for unzip... /usr/bin/unzip
0:05.48 checking for the Mozilla API key... yes
0:05.48 checking for the Google Location Service API key... yes
0:05.48 checking for the Google Safebrowsing API key... yes
0:05.48 checking for the Bing API key... no
0:05.48 checking for the Adjust SDK key... no
0:05.48 checking for the Leanplum SDK key... no
0:05.48 checking for the Pocket API key... no
0:05.49 checking for libwebp >= 1.0.2 libwebpdemux >= 1.0.2... yes
0:05.49 checking MOZ_WEBP_CFLAGS... -I/usr/include/webp
0:05.49 checking MOZ_WEBP_LIBS... -lwebp -lwebpdemux
0:05.50 checking for x11 xcb xcb-shm x11-xcb xext xrandr >= 1.4.0 xcomposite xcursor xdamage xfixes xi... yes
0:05.51 checking MOZ_X11_CFLAGS...
0:05.51 checking MOZ_X11_LIBS... -lxcb-shm -lX11-xcb -lX11 -lxcb -lXext -lXrandr -lXcomposite -lXcursor -lXdamage -lXfixes -lXi
0:05.51 checking for ice sm... yes
0:05.52 checking MOZ_X11_SM_CFLAGS... -I/usr/include/uuid
0:05.57 checking for stat64... no
0:05.62 checking for lstat64... no
0:05.66 checking for truncate64... no
0:05.71 checking for statvfs64... no
0:05.75 checking for statvfs... no
0:05.80 checking for statfs64... no
0:05.85 checking for statfs... no
0:05.89 checking for lutimes... no
0:05.94 checking for posix_fadvise... no
0:05.98 checking for posix_fallocate... no
0:06.03 checking for eventfd... no
0:06.07 checking for arc4random... no
0:06.12 checking for arc4random_buf... no
0:06.17 checking for mallinfo... no
0:06.18 checking for sys/ioccom.h... no
0:06.19 checking for vpx >= 1.10.0... yes
0:06.19 checking MOZ_LIBVPX_CFLAGS...
0:06.20 checking MOZ_LIBVPX_LIBS... -lvpx -lm
0:06.22 checking for vpx/vpx_decoder.h... yes
0:06.27 checking for vpx_codec_dec_init_ver...
0:06.27 DEBUG: Creating `/var/tmp/portage/www-client/firefox-123.0/temp/conftest.2nz7qu2k.c` with content:
0:06.27 DEBUG: | /* Override any gcc2 internal prototype to avoid an error. */
0:06.27 DEBUG: | /* We use char because int might match the return type of a gcc2
0:06.27 DEBUG: | builtin and then its argument prototype would still apply. */
0:06.27 DEBUG: | char vpx_codec_dec_init_ver();
0:06.27 DEBUG: | int
0:06.27 DEBUG: | main(void)
0:06.27 DEBUG: | {
0:06.27 DEBUG: | vpx_codec_dec_init_ver();
0:06.27 DEBUG: | ;
0:06.27 DEBUG: | return 0;
0:06.27 DEBUG: | }
0:06.27 DEBUG: Executing: `/usr/lib/llvm/17/bin/loongarch64-unknown-linux-gnu-clang-17 -std=gnu99 /var/tmp/portage/www-client/firefox-123.0/temp/conftest.2nz7qu2k.c -fuse-ld=lld -lvpx -lm`
0:06.27 DEBUG: The command returned non-zero exit status 1.
0:06.27 DEBUG: Its error output was:
0:06.27 DEBUG: | ld.lld: error: /usr/lib/gcc/loongarch64-unknown-linux-gnu/13/../../../../lib64/Scrt1.o:(.text+0x0): unknown relocation (102) against symbol .Lla-relax-align
0:06.27 DEBUG: | loongarch64-unknown-linux-gnu-clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
0:06.27 ERROR: --with-system-libvpx requested but symbol vpx_codec_dec_init_ver not found
*** Fix above errors and then restart with "./mach build"
* ERROR: www-client/firefox-123.0::loongson failed (configure phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 136: Called src_configure
* environment, line 5453: Called die
* The specific snippet of code:
* ./mach configure || die
*
* If you need support, post the output of `emerge --info '=www-client/firefox-123.0::loongson'`,
* the complete build log and the output of `emerge -pqv '=www-client/firefox-123.0::loongson'`.
* The complete build log is located at '/var/tmp/portage/www-client/firefox-123.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-client/firefox-123.0/temp/environment'.
* Working directory: '/var/tmp/portage/www-client/firefox-123.0/work/firefox-123.0'
* S: '/var/tmp/portage/www-client/firefox-123.0/work/firefox-123.0'
>>> Failed to emerge www-client/firefox-123.0, Log file:
>>> '/var/tmp/portage/www-client/firefox-123.0/temp/build.log'
* Messages for package www-client/firefox-123.0:
* ERROR: www-client/firefox-123.0::loongson failed (configure phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 136: Called src_configure
* environment, line 5453: Called die
* The specific snippet of code:
* ./mach configure || die
*
* If you need support, post the output of `emerge --info '=www-client/firefox-123.0::loongson'`,
* the complete build log and the output of `emerge -pqv '=www-client/firefox-123.0::loongson'`.
* The complete build log is located at '/var/tmp/portage/www-client/firefox-123.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-client/firefox-123.0/temp/environment'.
* Working directory: '/var/tmp/portage/www-client/firefox-123.0/work/firefox-123.0'
* S: '/var/tmp/portage/www-client/firefox-123.0/work/firefox-123.0'