I uploaded a partial fix, now you can do it with
flang-new-16 hello.f90 -o hello -L /usr/lib/llvm-16/lib/

We need probably newer llvm-defaults to symlink them into a more common 
directory to avoid -L switch.
G.

On Sat, 15 Jul 2023 16:50:15 +0100 Alastair McKinstry <mckins...@debian.org> 
wrote:
Package: flang-16
Version: 16.0.6-4
Severity: normal

flang-new fails to compile a hello world program:

alastair@debian:/tmp$ flang-new-16 -o foo hello.f90
/usr/bin/ld: cannot find -lFortran_main: No such file or directory
/usr/bin/ld: cannot find -lFortranRuntime: No such file or directory
/usr/bin/ld: cannot find -lFortranDecimal: No such file or directory
flang-new: error: linker command failed with exit code 1 (use -v to see 
invocation)

regards
Alastair



-- System Information:
Debian Release: 12.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_IE.UTF-8), LANGUAGE=en_IE:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled


Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to