• Building a functioning flang-new

    From Steven G. Kargl@sgk@REMOVEtroutmask.apl.washington.edu to comp.lang.fortran on Tue Jan 9 19:17:33 2024
    From Newsgroup: comp.lang.fortran

    Anyone have a pointer on building a functioning flang-new?

    The instructions at

    https://github.com/llvm/llvm-project/blob/main/flang/docs/GettingStarted.md

    appear to be insufficient. For example, what does one set
    LD_LIBRARY_PATH to?

    Of particular note, flang-new cannot find its module or
    it does not support ISO_FORTRAN_ENV.

    % make
    /usr/home/sgk/tmp/root/install/bin/flang-new -g \
    -I/usr/home/sgk/tmp/root/install/include/flang \
    -L/usr/home/sgk/tmp/root/install/lib -I. -o mk_m90types \
    mk_m90types.f90
    /usr/local/bin/ld: /tmp/mk_m90types-26024d.o: in function `_QQmain': /usr/home/sgk/tmp/trunk/m90/mk_m90types.f90:35: undefined reference
    to `_QMiso_fortran_envECreal_kinds'
    yada yada
    --
    steve
    --- Synchronet 3.20a-Linux NewsLink 1.114