Failed to Compile the Source Code
Symptom
When compiling the source code that is modified using the Kunpeng Porting Advisor in the x86_64 environment, the following information is displayed:
/tmp/ccBHOwYi.o: In function `merge_bubbles_strgraph': wtlay.c:(.text+0x984d): undefined reference to `cut_biedge_strgraph2' wtlay.c:(.text+0x9861): undefined reference to `cut_biedge_strgraph2' wtlay.c:(.text+0x992d): undefined reference to `cut_biedge_strgraph2' wtlay.c:(.text+0x994a): undefined reference to `cut_biedge_strgraph2' collect2: error: ld returned 1 exit status Makefile:48: recipe for target 'wtlay' failed make: *** [wtlay] Error 1 make: *** Waiting for unfinished jobs....
Solution
Go to line 516 of the smartdenovo/wtlay.h file.
516 inline int cut_biedge_strgraph2(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx){
Delete inline or add static to the beginning of the line.
Parent topic: Troubleshooting