Giter Site home page Giter Site logo

Comments (6)

sscalpone avatar sscalpone commented on August 18, 2024

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.

HengyueLi avatar HengyueLi commented on August 18, 2024

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.

  1. 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".
  2. I have followed the instructions 1-4 it the web.
  3. After the problem happened, I checked the folder ~/GitHub/flang/tools/flagn1/flang1exe/, in which there are many *.c and *.h .
  4. In terminal when I type "fla" and press "Tab", I can find flang but no flang1.
  5. 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.

sscalpone avatar sscalpone commented on August 18, 2024

(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.

HengyueLi avatar HengyueLi commented on August 18, 2024

(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.

AlexisPerry avatar AlexisPerry commented on August 18, 2024

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.

sscalpone avatar sscalpone commented on August 18, 2024

Hi @HengyueLi -- Please reopen this issue if you still want to discuss it. Thanks!

from flang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.