doris core 설치 오류 보고Makefile:158:recipe for target'processor.o' failed make: *** [processor.o] Error 1
문제 설명
doris core는 make 과정에서 다음과 같은 오류를 보고합니다.
g++ -O -Wno-deprecated -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__USE_FFTW_LIBRARY__ -I/StaMPS/fftw-3.2.1/include -c -o processor.o processor.cc
In file included from constants.hh:52:0,
from matrixbk.hh:59,
from processor.cc:44:
bk_messages.hh: In member function ‘void bk_messages::setidentifyer(const char*)’:
bk_messages.hh:214:26: error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
strcat(name_,'\0');// terminate id
^
In file included from /usr/include/features.h:424:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533,
from /usr/include/c++/7/iostream:38,
from bk_messages.hh:42,
from constants.hh:52,
from matrixbk.hh:59,
from processor.cc:44:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:126:1: note: initializing argument 2 of ‘char* strcat(char*, const char*)’
__NTH (strcat (char *__restrict __dest, const char *__restrict __src))
^
In file included from constants.hh:52:0,
from matrixbk.hh:59,
from processor.cc:44:
bk_messages.hh:214:26: warning: null argument where non-null required (argument 2) [-Wnonnull]
strcat(name_,'\0');// terminate id
^
processor.cc: In function ‘int main(int, char**)’:
processor.cc:363:15: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system(cmd);// this does the work
~~~~~~^~~~~
processor.cc:1198:15: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system(cmd);// This does the actual work
~~~~~~^~~~~
processor.cc:2132:41: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
if (input_i_fine.plotoffsets) system(cmd);
~~~~~~^~~~~
processor.cc:2323:37: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
if (input_i_coregpm.plot) system(cmd);
~~~~~~^~~~~
processor.cc: In function ‘void handleinput(int, char**, input_gen&)’:
processor.cc:3546:17: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("helpdoris");
~~~~~~^~~~~~~~~~~~~
processor.cc:3555:17: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system(cmd);
~~~~~~^~~~~
processor.cc: In function ‘void preview(int32, int32, int32, const char*, const string&, const string&)’:
processor.cc:4074:11: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system(DEBUG.get_str());
~~~~~~^~~~~~~~~~~~~~~~~
processor.cc:4079:11: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system(INFO.get_str());
~~~~~~^~~~~~~~~~~~~~~~
Makefile:158: recipe for target 'processor.o' failed
make: *** [processor.o] Error 1
cnu@cnu-ThinkStation-P920:/StaMPS/doris_v4.0
해결 방법:
src 폴더 아래의 bk_ 찾기messages.hh 파일, 214행
strcat(name_,'\0');// terminate id
을 name_[9] = '\0';// terminate id
로 변경
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.