Bug#1041202: flang-16: flang fails to compile: missing libraries

Gianfranco Costamagna locutusofborg at debian.org
Wed Aug 2 08:31:58 BST 2023


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 <mckinstry at debian.org> wrote:
> Package: flang-16
> Version: 16.0.6-4
> Severity: normal
> 
> flang-new fails to compile a hello world program:
> 
> alastair at 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
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20230802/a9390a59/attachment.sig>


More information about the Pkg-llvm-team mailing list