Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Executable not recognized by debugger

sanjayg0
Beginner
92 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
Black Belt Retired Employee
92 Views

I think you use the Xcode debugger, not gdb.

sanjayg0
Beginner
92 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 :|

Reply