Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28383 Discussions

Executable not recognized by debugger

sanjayg0
Novice
366 Views

I have an executable generated by ifort (ver 19.0.0.117). The program runs just fine (on my Mac).

file feap

recognizes the executable as: 

feap: Mach-O 64-bit executable x86_64

When I try to debug the executable, however, I run into the following error

gdb-ia ./feap

BFD: /Users/sg/Feap/ver85/main/feap: unknown load command 0x32
BFD: /Users/sg/Feap/ver85/main/feap: unknown load command 0x32
"/Users/sg/Feap/ver85/main/./feap": not in executable format: File format not recognized

The version of gdg-ia is

GNU gdb (GDB) 8.0.1.19.0748cc768c+5410f4dfd7+0000000000+820b7381b8
Copyright (C) 2017 Free Software Foundation, Inc.; (C) 2018 Intel Corp.

What have I missed?

 

 

0 Kudos
2 Replies
Steve_Lionel
Honored Contributor III
365 Views

I think you use the Xcode debugger, not gdb.

0 Kudos
sanjayg0
Novice
365 Views

Thanks for the hint.  I had tried /usr/bin/lldb but that had also failed.  However /Applications/Xcode.app/Contents/Developer/usr/bin/lldb does work.  Now I have to unlearn gdb syntax and learn lldb snytax :|

0 Kudos
Reply