소스에서 빌드 실패

소스에서 빌드 실패

Slackware64 14.2 전체 설치 시 처음부터 일부 소프트웨어를 구축하려고 합니다. Readme 파일의 지침을 따랐습니다.

 ./autogen.sh # only needed if building from git repo
 CFLAGS="-march=native" ./configure
# Use -march=native if building for a single machine
make

git에서 복제한 다음 autogen을 실행하면 다음과 같이 출력됩니다.

configure.ac:16: installing './compile'
configure.ac:4: installing './config.guess'
configure.ac:4: installing './config.sub'
configure.ac:6: installing './install-sh'
configure.ac:6: installing './missing'
Makefile.am: installing './depcomp'

그런 다음 머신에서 빌드할 때 다음 명령을 실행했지만 오류가 발생했습니다.

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/xtd8865/data/builds/mine/cpuminer-multi/cpuminer-multi':
configure: error: C compiler cannot create executables
See `config.log' for more details

내가 말했듯이 이것은 완전한 슬랙웨어 버전입니다.

gcc -v
Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/5.3.0/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/5.3.0/lto-wrapper
Target: x86_64-slackware-linux
Configured with: ../gcc-5.3.0/configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ada,c,c++,fortran,go,java,lto,objc --enable-threads=posix --enable-checking=release --enable-objc-gc --with-system-zlib --with-python-dir=/lib64/python2.7/site-packages --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=gcc4-compatible --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --disable-install-libiberty --with-gnu-ld --verbose --enable-java-home --with-java-home=/usr/lib64/jvm/jre --with-jvm-root-dir=/usr/lib64/jvm --with-jvm-jar-dir=/usr/lib64/jvm/jvm-exports --with-arch-directory=amd64 --with-antlr-jar=/root/slackware64-current/source/d/gcc/antlr-runtime-3.4.jar --enable-java-awt=gtk --disable-gtktest --disable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
gcc version 5.3.0 (GCC) 

그래서 왜 실행 파일을 생성하지 못하는지 잘 모르겠습니다. 나는 표준 사용자로 이 명령을 실행했습니다(루트로도 시도했지만 운이 좋지 않았습니다). 왜 실패했나요?

config.log의 출력은 여기에 있습니다. http://pastebin.com/QUqHW6zQ

감사해요

답변1

오류는 다음 줄에 있습니다.

ac_cv_env_CFLAGS_value='*-march-native*'

어떤 이유로든 와일드카드 문자가 포함됩니다. gcc에서 사용하기 전에는 로그에 사용법이 표시되지 않습니다.

  • 다운로드에 스크립트 오류가 있습니다.
  • 환경 변수 설정으로 인해 스크립트가 혼동됩니다.

스크립트 오류를 ​​보려면 쉘 추적을 켜고( set -x첫 번째 줄 뒤에 추가) 출력을 캡처하고 읽어야 합니다(stderr로 이동).많은더 긴 로그...

관련 정보