Re: [RFA/gdb-9-branch] Abort configure immediately if building GDB in tree

Sergio Durigan Junior
2020-01-30T21:06:42Z

On Friday, January 17 2020, Joel Brobecker wrote:

>> > Attached is a revised patch. I chose to use the same sequence as
>> > the one in gdb/README, just for consistency.
>>
>> LGTM, thanks!
>
> Thanks Simon (and thanks Tom also). Now pushed!

Hey, Joel!

I just found out that this commit broke the snapshot generation for the
gdb-9-branch. It's pretty easy to reproduce the problem locally:

$ ./src-release.sh -x gdb
==> Cleaning sources.
==> Making gdb-9.0.90.20200130/
==> configure --target=i386-pc-linux-gnu --disable-binutils --disable-gas --disable-gold --disable-gprof --disable-ld --enable-gdb --enable-libctf --enable-libdecnumber --enable-readline --enable-sim
configure: error: GDB must be configured and built in a directory separate from its sources.
...

I'm wondering what to do here. I think I found a hacky and ugly
solution here, but I'm trying to see if there's a better approach.
Meanwhile, I thought I'd report this problem in case you already have a
better idea.

Cheers,

--
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible