Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 22
Hi i am installing open64 tool from http://www.cs.uh.edu/~dragon . and also the dragon tool at one point of time when i give the command as openf90- dragon -ipa -O2 BT.f ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Posts
    19

    open64 and dragon tool


    Hi
    i am installing open64 tool from http://www.cs.uh.edu/~dragon.
    and also the dragon tool

    at one point of time when i give the command as
    openf90- dragon -ipa -O2 BT.f

    i get an error as /usr/bin/openf90: cannot execute binary file..!!

    could somebody help with me with this??

  2. #2
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    510
    I'm not familiar with those tools, but regardless of what they are you can investigate a little:
    Code:
    ls -l /usr/bin/openf90
    That should give you something like this:
    Code:
    -rwxr-xr-x 1 root root <size> <date> /usr/bin/openf90
    If that last x is a dash, '-', instead of an 'x', it means users don't have execution priviledge. You can fix it (as root) with this:
    Code:
    chmod +x /usr/bin/openf90
    But you may want to investigate that file and be sure it's an executable with this command:
    Code:
    file /usr/bin/openf90
    That will either probably display either ELF ... or "Borne shell script...". If it's the latter you can optionally view it with this command (press q to quit)
    Code:
    less /usr/bin/openf90
    If it's not one of those two (or some things like perl), then it's probably not an executable.

  3. #3
    Just Joined!
    Join Date
    Feb 2007
    Posts
    19

    open64 and dragon tool

    Hi
    Thank you so much for the reply.

    I followed the steps.

    But
    code :file /usr/bin/openf90
    gives

    /usr/bin/openf90 : symbolic link to //usr//lib/gcc-lib/ia64-open64-linux/0.16/driver

    as the result

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Feb 2007
    Posts
    19

    open64 and dragon tool

    hi

    after trying with file usr/bin/openf90

    i also tried with less /usr/bin/openf90

    it gives some data on the shell, starting with ELF, rest i am not able to comprehend.

  6. #5
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    510
    OK, it's a symbolic link that points to the real file, which apparently is a binary executable (ELF), not a shell script. So try this to see the protections:
    Code:
    ls -l /usr/lib/gcc-lib/ia64-open64-linux/0.16/driver
    If the the result starts with something like "-rw-r--r-- ...", then make it executable (as root):
    Code:
    chmod +x /usr/lib/gcc-lib/ia64-open64-linux/0.16/driver
    Please note that I don't know anything about that file. I'm assuming you got it from a reliable source and that it should be executable.

  7. #6
    Just Joined!
    Join Date
    Feb 2007
    Posts
    19

    open64 and dragon tool

    hi thanks

    but the file is already in executable mode with an 'x'.
    rwxr-xr-x

    yeah, it is from a reliable source

    http://www2.cs.uh.edu/~dragon/home.shtml

    i have followed the installation instructions and installed open64 and dragon
    now when i try this command as part of the installation notes :

    code : openf90 -dragon -ipa -O2 BT.f

    it says

    /usr/bin/openf90: cannot execute binary file

  8. #7
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    510
    You can try strace with one of these commands:
    Code:
    strace openf90 -dragon -ipa -O2 BT.f
    strace openf90 -dragon -ipa -O2 BT.f  2>&1 |less -S
    Strace puts out lots and lots of debug information. Most of it is uninteresting but there is probably one line that will tell you what the problem is.

    The second command pipes the output through 'less' so you can scroll through it. The -S switch makes the lines not wrap so they are a little easier to read.

  9. #8
    Just Joined!
    Join Date
    Feb 2007
    Posts
    19

    open64 and dragon tool

    hi

    i get the message as :

    execve("/usr/bin/openf90", ["openf90" "-dragon" "-ipa" "-O2", "BT.f"],[/*33 vars */] = 0
    strace : exec : Exec format error

    one doubt this -O2 is the alphabet 'O' ?

  10. #9
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    510
    one doubt this -O2 is the alphabet 'O' ?
    It doesn't look like it's getting that far. I suspect it's not even starting to execute.

    When you run 'file' on the file, what does it say?
    Code:
    file /usr/lib/gcc-lib/ia64-open64-linux/0.16/driver
    Does it say "ELF 32-bit LSB executable, Intel 80386, ..."? Or are you running a 64-bit PC? (Run the command "uname -a" if you're not sure.)

    Here's one more bit of info you can get: run this command to see what dynamically linked libraries (.so files) it's looking for.
    Code:
    ldd /usr/lib/gcc-lib/ia64-open64-linux/0.16/driver
    I'm not sure what to do here, although I did notice on the site that there is a requirement that you have vcg installed. I don't know what that is.

  11. #10
    Just Joined!
    Join Date
    Feb 2007
    Posts
    19

    open64 and dragon tool

    on
    code : file /usr/lib/gcc-lib/ia64-open64-linux/0.16/driver

    it says :
    /usr/lib/gcc-lib/ia64-open64-linux/0.16/driver: ELF 64-bit LSB executable, IA-64, version 1 (SYSV), dynamically linked (user shared bits), not stripped

    on
    code : ldd /usr/lib/gcc-lib/ia64-open64-linux/0.16/driver

    it says
    not a dynamic executable

    on
    code: uname -a

    it says
    linux local host.....i686unknown

    vcg is already installed, this is to display the various graphs of the dragon tool displaying call graphs, loop rolling of comp architecture etc...

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •