Search Criteria
Package Details: flang 18.1.8-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/flang.git (read-only, click to copy) |
---|---|
Package Base: | flang |
Description: | ground-up implementation of a Fortran front end written in modern C++ |
Upstream URL: | http://llvm.org/ |
Licenses: | custom:Apache 2.0 with LLVM Exception |
Submitter: | xantares |
Maintainer: | xantares |
Last Packager: | xantares |
Votes: | 2 |
Popularity: | 0.39 |
First Submitted: | 2023-08-25 22:06 (UTC) |
Last Updated: | 2024-07-06 20:05 (UTC) |
Dependencies (4)
Required by (0)
Sources (6)
- https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/clang-18.1.8.src.tar.xz
- https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/clang-18.1.8.src.tar.xz.sig
- https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/cmake-18.1.8.src.tar.xz
- https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/cmake-18.1.8.src.tar.xz.sig
- https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/flang-18.1.8.src.tar.xz
- https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/flang-18.1.8.src.tar.xz.sig
Latest Comments
xantares commented on 2023-11-08 17:07 (UTC)
could you update and retry ?
Logrus commented on 2023-11-05 15:23 (UTC) (edited on 2023-11-05 15:33 (UTC) by Logrus)
Here are makepkg.conf https://drive.google.com/file/d/1KIK487enTswoyN4ljk2tKUxMbDGJAjCj/view?usp=sharing Here are log.txt of makepkg command https://drive.google.com/file/d/1t7_dOZ59dnK67PS6YNZVrbEj97OGfCCB/view
Logrus commented on 2023-11-05 15:18 (UTC) (edited on 2023-11-05 15:34 (UTC) by Logrus)
Sorry for Wall of Text
#Console output
makepkg -si > log.txt flang-16.0.6.src.tar.xz ... Passed flang-16.0.6.src.tar.xz.sig ... Skipped cmake-16.0.6.src.tar.xz ... Passed cmake-16.0.6.src.tar.xz.sig ... Skipped clang-16.0.6.src.tar.xz ... Passed clang-16.0.6.src.tar.xz.sig ... Skipped flang-16.0.6.src.tar.xz ... Passed cmake-16.0.6.src.tar.xz ... Passed clang-16.0.6.src.tar.xz ... Passed CMake Deprecation Warning at /home/user/flang/src/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy): The OLD behavior for policy CMP0114 will be removed from a future version of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. Call Stack (most recent call first): CMakeLists.txt:6 (include)
Building Flang as a standalone project. /home/user/flang/src/flang-16.0.6.src/lib/Lower/ConvertCall.cpp: In member function ‘bool {anonymous}::ElementalUserCallBuilder::canLoadActualArgumentBeforeLoop(unsigned int) const’: /home/user/flang/src/flang-16.0.6.src/lib/Lower/ConvertCall.cpp:902:17: warning: possibly dangling reference to a temporary [-Wdangling-reference] 902 | const auto &arg = caller.getPassedArguments()[argIdx]; | ^~~ /home/user/flang/src/flang-16.0.6.src/lib/Lower/ConvertCall.cpp:902:57: note: the temporary was destroyed at the end of the full expression ‘(&((const {anonymous}::ElementalUserCallBuilder*)this)->{anonymous}::ElementalUserCallBuilder::caller)->Fortran::lower::CallerInterface::<anonymous>.Fortran::lower::CallInterface<Fortran::lower::CallerInterface>::getPassedArguments().llvm::ArrayRef<Fortran::lower::CallInterface\<Fortran::lower::CallerInterface>::PassedEntity>::operator’ 902 | const auto &arg = caller.getPassedArguments()[argIdx]; | ^ /home/user/flang/src/flang-16.0.6.src/lib/Semantics/runtime-type-info.cpp: In function ‘Fortran::semantics::SomeExpr Fortran::semantics::SaveDerivedPointerTarget(Scope&, SourceName, std::vector<Fortran::evaluate::StructureConstructor>&&, Fortran::evaluate::ConstantSubscripts&&)’: /home/user/flang/src/flang-16.0.6.src/lib/Semantics/runtime-type-info.cpp:298:17: warning: possibly dangling reference to a temporary [-Wdangling-reference] 298 | const auto &derivedType{x.front().GetType().GetDerivedTypeSpec()}; | ^~~~~~~~~~~ /home/user/flang/src/flang-16.0.6.src/lib/Semantics/runtime-type-info.cpp:298:67: note: the temporary was destroyed at the end of the full expression ‘(&(& x)->std::vector<Fortran::evaluate::StructureConstructor>::front())->Fortran::evaluate::StructureConstructor::GetType().Fortran::evaluate::DynamicType::GetDerivedTypeSpec()’ 298 | const auto &derivedType{x.front().GetType().GetDerivedTypeSpec()}; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/user/flang/src/flang-16.0.6.src/include/flang/Tools/CLOptions.inc:16, from /home/user/flang/src/flang-16.0.6.src/lib/Frontend/FrontendActions.cpp:508: /home/user/flang/src/flang-16.0.6.src/include/flang/Optimizer/CodeGen/CodeGen.h:27:10: fatal error: flang/Optimizer/CodeGen/CGPasses.h.inc: No such file or directory 27 | #include "flang/Optimizer/CodeGen/CGPasses.h.inc" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [lib/Frontend/CMakeFiles/obj.flangFrontend.dir/build.make:132: lib/Frontend/CMakeFiles/obj.flangFrontend.dir/FrontendActions.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:2084: lib/Frontend/CMakeFiles/obj.flangFrontend.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...
#Console output
xantares commented on 2023-11-05 08:07 (UTC)
seems like an upstream issue:
https://github.com/llvm/llvm-project/issues/61543
maybe a missing dependency
please provide full log and makepkg.conf
Logrus commented on 2023-11-05 06:26 (UTC) (edited on 2023-11-05 06:26 (UTC) by Logrus)
I have this error on build: /home/user/flang/src/flang-16.0.6.src/include/flang/Optimizer/CodeGen/CodeGen.h:27:10: fatal error: flang/Optimizer/CodeGen/CGPasses.h.inc: No such file or directory 27 | #include "flang/Optimizer/CodeGen/CGPasses.h.inc" Somehow this file is not created during build. Before build i installed mlir16.
weipeng1999 commented on 2023-09-10 09:24 (UTC) (edited on 2023-09-10 09:26 (UTC) by weipeng1999)
i just stick in the compiling processing, and after reboot can not continue do makepkg any more. but when i clear my old cache, the package just work. i think it may because i force the pc to poweroff make some filesystem mistake, after reboot the mistake repaired automatically and the package is builded and working well in my system now.
xantares commented on 2023-09-09 08:35 (UTC)
what error did you get ?
weipeng1999 commented on 2023-09-09 03:21 (UTC)
sorry but this pkgbuild using makefile failed, so i switch to ninja according https://github.com/llvm/llvm-project/blob/main/flang/docs/GettingStarted.md and successfully build. could you please fix the problem? and what can i do for fixing this pkg?