[Flang-dev] Fortran compatible ninja; flang circular dependencies

blubee blubeeme gurenchan at gmail.com
Fri Oct 12 04:02:24 EDT 2018


On Fri, Oct 12, 2018 at 2:39 PM blubee blubeeme <gurenchan at gmail.com> wrote:

> There's a fork of ninja that supports fortran files:
> https://github.com/ninja-build/ninja
>
> When attempting to build you'll get an error:
> dupbuild=err
>
> You can change that from error to warning with
> -w dupbuild=warn
>
> but then the build still fails with circular dependencies:
> -- Build files have been written to:
> /wrkdirs/usr/ports/devel/pflang/work/.build
> ninja: warning: multiple rules generate include/iso_c_binding.mod. builds
> involving this target will not be correct; continuing anyway [-w
> dupbuild=warn]
> ninja: error: dependency cycle:
> runtime/flang/CMakeFiles/flang_shared.dir/Fortran.dd ->
> runtime/flang/CMakeFiles/flang_shared.dir/ieee_arithmetic.F95-pp.f95.ddi ->
> include/iso_c_binding.mod ->
> runtime/flang/CMakeFiles/flang_shared.dir/iso_c_bind.F95.o ->
> runtime/flang/CMakeFiles/flang_shared.dir/Fortran.dd
>
>
> It doesn't fail with Makefiles but ninja allows building a lot faster.
>
> Is this something that the flang developers are interested in taking a
> look at?
>
> Best
>
I forgot to mention but building libpgmath with kitware ninja works just
fine.

Best
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.flang-compiler.org/pipermail/flang-dev_lists.flang-compiler.org/attachments/20181012/9052591c/attachment.html>


More information about the flang-dev mailing list