Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 May 2011 07:43:32 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        Raphael Kubo da Costa <kubito@gmail.com>
Subject:   Re: Problem with running simple pthreads program under gdb-7.2 (Invalid selected thread)
Message-ID:  <201105270743.32725.jhb@freebsd.org>
In-Reply-To: <87pqn557so.fsf@gmail.com>
References:  <BANLkTikfUObTtRAaMVFdG_-0e39ibB5GLg@mail.gmail.com> <4DDE5762.8060901@FreeBSD.org> <87pqn557so.fsf@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, May 26, 2011 8:03:19 pm Raphael Kubo da Costa wrote:
> Andriy Gapon <avg@FreeBSD.org> writes:
> 
> > on 26/05/2011 16:33 John Baldwin said the following:
> >> On Thursday, May 26, 2011 3:37:13 am Andriy Gapon wrote:
> >>> on 26/05/2011 03:35 Raphael Kubo da Costa said the following:
> >>>> If I compile the port myself, I can't run any binary (PR ports/152896,
> >>>> which has been unanswered despite my efforts):
> >>>>
> >>>>   Reading symbols from /usr/local/bin/gdb72...I'm sorry, Dave, I can't
> >>>>   do that.  Symbol format `elf64-x86-64-freebsd' unknown.
> >>>>
> >>>
> >>> This is a somewhat known issue that John was going to fix a while ago.
> >> 
> >> Actually, it's not really fixable if you have libreadline installed from 
ports 
> >> and binutils installed from ports.  I'd like to just remove the hack to 
use
> >> libreadline from ports if possible.
> >
> > I referred to this option as a fix.
> 
> Thanks, removing readline from ports worked like a charm after I
> recompiled devel/gdb. Installing it from the package still doesn't work,
> though.
> 
> Shouldn't the hack in the port be reversed, ie. if readline from ports
> is installed the port is marked as BROKEN?

Well, if you have readline from ports but don't have binutils in ports it 
actually works ok.

No idea why the package built in the package cluster is busted though.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105270743.32725.jhb>