Comments (6)
Hi. Does flang1 exist in your install/bin directory? Did you build with cmake -DCMAKE_INSTALL_PREFIX? Can you include the output of flang -v test.f90?
from flang.
Sorry, this is the first time to use GitHub, and also I am not an expert of Linux. Thus I am not so sure if I have your questions clearly understood.
- I mkdir GitHub at "~/GitHub" and download everything from this web into that folder. Thus I have "~/GitHub/clang","~/GitHub/flang","~/GitHub/llvm" and "~/GitHub/openmp".
- I have followed the instructions 1-4 it the web.
- After the problem happened, I checked the folder ~/GitHub/flang/tools/flagn1/flang1exe/, in which there are many *.c and *.h .
- In terminal when I type "fla" and press "Tab", I can find flang but no flang1.
- I do not know if there is any influence, but I have installed Gfortran, ifort and a stuff called pgi on my PC.
!--------------
(1). Do you mean that in each step in 1-4 when we cmake, we need to use the command "cmake -DCMAKE_INSTALL_PREFIX" ?
(2). When I excute "flang -v test.f90", before the title to be gotten again, we have the iformation below:
clang version 3.9.1 (https://github.com/flang-compiler/clang.git 600c2759c7d9fe9e1c3321bedbb701403f907142) (https://github.com/llvm-mirror/llvm.git a093ef43dd592b729da46db4ff3057fef9a46023)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/6.3.1
Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/6.3.1
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
"flang1" test.f90 -opt 0 -terse 1 -inform warn -nohpf -nostatic -y 129 2 -inform warn -x 19 0x400000 -quad -x 59 4 -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124 0x1000 -tp px -x 57 0xfb0000 -x 58 0x78031040 -x 47 0x08 -x 48 4608 -x 49 0x100 -stdinc /usr/local/bin/../include:/usr/local/include:/usr/local/bin/../lib/clang/3.9.1/include:/include:/usr/include -def unix -def __unix -def unix -def linux -def __linux -def linux -def __NO_MATH_INLINES -def LP64 -def __x86_64 -def x86_64 -def LONG_MAX=9223372036854775807L -def SIZE_TYPE=unsigned long int -def PTRDIFF_TYPE=long int -def __THROW= -def extension= -def amd_64__amd64 -def __k8 -def k8 -def PGLLVM -freeform -vect 48 -y 54 1 -x 70 0x40000000 -y 163 0xc0000000 -x 189 0x10 -stbfile /tmp/test-f116db.stb -modexport /tmp/test-f116db.cmod -modindex /tmp/test-f116db.cmdx -output /tmp/test-f116db.ilm
from flang.
(1). Do you mean that in each step in 1-4 when we cmake, we need to use the command "cmake -DCMAKE_INSTALL_PREFIX" ? YES
(2) Do you see InstallDir is /usr/local/bin. Do you see flang1 in that directory? When you type "make install" for flang, to where are the files copied?
from flang.
(1). For example, the 1/4 step (install LLVM), when I tap "cmake -DCMAKE_INSTALL_PREFIX .." instead of "cmake ..", error feedback is :
Parse error in command line argument: -DCMAKE_INSTALL_PREFIX
Should be: VAR:type=value
CMake Error: No cmake script provided.
CMake Error: Problem processing arguments. Aborting.
(2)When I do the step 4 again, flang1 have been found. And when I run the executable file after compling, I get "error while loading shared libraries: libflang.so: cannot open shared object file: No such file or directory"
from flang.
Regarding (1)... the command should read cmake -DCMAKE_INSTALL_PREFIX=/full/path/to/where/you/want/to/install ..
. The parsing error is the result of not setting the value of CMAKE_INSTALL_PREFIX to anything.
from flang.
Hi @HengyueLi -- Please reopen this issue if you still want to discuss it. Thanks!
from flang.
Related Issues (20)
- [OMP_OFFLOAD_LLVM] Crash due to gbl.ompaccfile is NULL HOT 4
- [OMP_OFFLOAD_LLVM] Undefined references to .omp_offloading symbols HOT 3
- Regression caused by #PR1076 HOT 3
- Fix 'dllimport' code generation for opaque type
- Error while build classic flang with llvm 16.04 HOT 2
- SPEC2017 521_r run error HOT 14
- error: expected '(' HOT 2
- Incorrect information when the type-spec for the dimension of the function result contains the UBOUND intrinsic. HOT 2
- flang bug about cbind HOT 2
- Flang about its LLVM IR HOT 3
- The 'contiguous' attribute does not enforce an array passed to a subroutine to be contiguous
- flang-new version 17 and 18 compiler crash HOT 2
- 521.wrf_r segfaults when built with -flto=full -O2 HOT 17
- flang always produces debuginfo HOT 2
- [from discourse] Wrong understanding of the rules for lbound and ubound for non-pointer dummy arguments HOT 6
- Uninitialized stack variable during string initialization in a function that returns a string of the parametrized length
- `malloc(): corrupted top size` after allocating array of polymorphic data type elements
- [regression] An ICE while building libmbd after PR #1422 HOT 3
- ICE while building libmbd HOT 1
- Port Classic Flang to RISC-V HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flang.