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.
- 02-06-2007 #1Just 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??
- 02-06-2007 #2
I'm not familiar with those tools, but regardless of what they are you can investigate a little:
That should give you something like this:Code:ls -l /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:-rwxr-xr-x 1 root root <size> <date> /usr/bin/openf90
But you may want to investigate that file and be sure it's an executable with this command:Code:chmod +x /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:file /usr/bin/openf90
If it's not one of those two (or some things like perl), then it's probably not an executable.Code:less /usr/bin/openf90
- 02-07-2007 #3Just 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
- 02-07-2007 #4Just 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.
- 02-07-2007 #5
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:
If the the result starts with something like "-rw-r--r-- ...", then make it executable (as root):Code:ls -l /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.Code:chmod +x /usr/lib/gcc-lib/ia64-open64-linux/0.16/driver
- 02-07-2007 #6Just 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
- 02-07-2007 #7
You can try strace with one of these commands:
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.Code:strace openf90 -dragon -ipa -O2 BT.f strace openf90 -dragon -ipa -O2 BT.f 2>&1 |less -S
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.
- 02-07-2007 #8Just 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' ?
- 02-07-2007 #9It doesn't look like it's getting that far. I suspect it's not even starting to execute.one doubt this -O2 is the alphabet 'O' ?
When you run 'file' on the file, what does it say?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.)Code:file /usr/lib/gcc-lib/ia64-open64-linux/0.16/driver
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.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.Code:ldd /usr/lib/gcc-lib/ia64-open64-linux/0.16/driver
- 02-07-2007 #10Just 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...



