DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 8th December 2020
Prevet Prevet is offline
Package Pilot
 
Join Date: Oct 2017
Posts: 163
Default gdb Dwarf Error

I'm having a go at using OpenBSD's gdb and clang, but it is printing this message when I tell gdb to run:

Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/libexec/ld.so]

In the OpenBSD Makefile I first added this and got the error message:
DEBUG= -g

Then I changed it to this and still get the same error message:
DEDBUG= -dwarf-2

Is there something else the Makefile needs when creating a debug build?
Reply With Quote
  #2   (View Single Post)  
Old 8th December 2020
ibara ibara is offline
QEX author
 
Join Date: Jan 2014
Posts: 756
Default

Code:
$ doas pkg_add gdb
The new gdb is egdb.
Reply With Quote
  #3   (View Single Post)  
Old 8th December 2020
Prevet Prevet is offline
Package Pilot
 
Join Date: Oct 2017
Posts: 163
Default

Thanks ibara it works.

I was using egdb a while ago with gcc. I thought it was strange you can't use OpenBSD's gdb with OpenBSD's compiler, and thought I was doing something wrong.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
An error? bsdun OpenBSD General 1 16th July 2020 08:50 PM
error: [drm:pid60567:intel_uncore_check_errors] *ERROR* Unclaimed register before int livestradamus OpenBSD Installation and Upgrading 11 4th November 2017 12:35 PM
shc unistd.h:239: error: syntax error before '&' token laraaj OpenBSD General 3 11th September 2010 07:21 AM
VLC run error mfaridi OpenBSD Packages and Ports 14 29th May 2008 05:38 PM
error kde darken FreeBSD General 1 5th May 2008 08:45 PM


All times are GMT. The time now is 05:30 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick