[flang-commits] [clang] [flang] [flang][nfc] Refactor linker invocation logic (PR #75534)

Andrzej WarzyƄski via flang-commits flang-commits at lists.llvm.org
Fri Dec 15 11:47:44 PST 2023


banach-space wrote:

> After this change, I can no longer use flang-new to create an executable program. When I try, I get the following output:
> 
> ```
> [psteinfeld at ice4 build]$ flang-new hello.f90 
> /opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/../../../../bin/ld: /local/home/psteinfeld/up/build/lib/libFortran_main.a(Fortran_main.c.o): in function `main':
> Fortran_main.c:(.text.startup.main+0xf): undefined reference to `_FortranAProgramStart'
> /opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/../../../../bin/ld: Fortran_main.c:(.text.startup.main+0x19): undefined reference to `_FortranAProgramEndStatement'
> flang-new: error: linker command failed with exit code 1 (use -v to see invocation)
> ```

Sorry about that Pete :( This has already been reverted, so things should work just fine if you pull and rebuild.

https://github.com/llvm/llvm-project/pull/75534


More information about the flang-commits mailing list