fortran-compiler-tests icon indicating copy to clipboard operation
fortran-compiler-tests copied to clipboard

undefined reference to `MAIN_' for flang

Open Sameeranjoshi opened this issue 6 years ago • 0 comments

running with flang FC=flang cmake ../ make : /usr/bin/ld: /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libflangmain.a(flangmain.c.o): in function main': (.text.startup.main+0x42): undefined reference to MAIN_' flang-7: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [CMakeFiles/flang-20170924b.dir/build.make:84: flang-20170924b] Error 1 make[1]: *** [CMakeFiles/Makefile2:201: CMakeFiles/flang-20170924b.dir/all] Error 2 make: *** [Makefile:95: all] Error 2

Sameeranjoshi avatar Aug 02 '19 08:08 Sameeranjoshi