2016-08-23 2 views
1

소스에서 tensorflow를 작성하려고했지만 gcc 오류로 인해 실패했습니다.gcc 오류가있는 tensorflow 빌드 오류 'as'

오류 로그 :

gcc: error trying to exec 'as': execvp: No such file or directory 
ERROR: /home/pcy/tensorflow-r0.10/tensorflow/core/kernels/BUILD:369:1: 
output 'tensorflow/core/kernels/_objs/batch_matrix_band_part_op_gpu/tensorflow/core/kernels/batch_matrix_band_part_op_gpu.cu.pic.o' was not created. 

ERROR: /home/pcy/tensorflow-r0.10/tensorflow/core/kernels/BUILD:369:1: not all outputs were created. 
Target //tensorflow/tools/pip_package:build_pip_package failed to build 
Use --verbose_failures to see the command lines of failed build steps. 
INFO: Elapsed time: 24.255s, Critical Path: 23.90s 
[email protected]:~/tensorflow-r0.10$ whereis as 
as: /usr/bin/as /usr/share/man/man1/as.1.gz 

사람이를 설명 할 수 있습니까? 내가 왜 잘못되었는지 전혀 모르겠다. ...

답변

2

나는 바젤이 경로 변수를 설정 해제하고 필요한 도구를 내부적으로 또는 다른 것으로 복사하기 때문에 그럴 것이라고 생각한다.

해결 방법은 컴파일러를 다시 컴파일하고 경로를 as, ldnm으로 하드 코딩해야합니다.

이것은 #2806 호 관련이 있습니다.

는이 같은 컴파일러를 구성해야합니다 : 당신은 분명히 자신의 접두사 경로를 선택할 수 있습니다

./configure --prefix=/opt/gcc-5.3 --disable-nls --enable-languages=c,c++ --with-ld=/bin/ld --with-nm=/bin/nm --with-as=/usr/bin/as 

.

+0

나를 위해 일했습니다. gcc-4.9.4. 감사! 잠시 후 [이] (https://gist.github.com/taylorpaul/3e4e405ffad1be8355bf742fa24b41f0) 게시물을 발견 했으므로이 문제를 해결하기 위해 "다른 이름으로"복사하는 것이 좋습니다. 나는 나 자신을 시도하지 않았으므로 대답으로 게시하고 싶지 않습니다. – Igor