Re: gdb/head build, with GCC10, FAILs @ "error: expected constructor, destructor, or type conversion before ‘(’ token" ?

PGNet Dev pgnet.dev@gmail.com
Thu Mar 26 17:18:13 GMT 2020


On 3/26/20 1:08 AM, Tom de Vries wrote:
>> I can reproduce this by using CXXFLAGS=-std=c++17

simple enough to 'fix' by removing all the 2nd-guessing ...

bumping to latest head

	cd binutils-gdb
	git log | head -n 5
		commit a879b4d5a683f8dbebae8cf98297ee4a2db2e9e1
		Author: John Baldwin <jhb@FreeBSD.org>
		Date:   Thu Mar 26 09:48:28 2020 -0700

		    Support AT_BSDFLAGS on FreeBSD.

un-setting any env vars, avoiding non-defaults,

	unset LD CC CPP LDFLAGS CFLAGS CXXFLAGS CPPFLAGS

config for local python

	export LDFLAGS="-L/usr/local/pyenv/versions/3.8-dev/lib -Wl,-rpath,/usr/local/pyenv/versions/3.8-dev/lib"
	export LIBSS="-lpython3.8"
	./configure \
	 --prefix=/usr/local/gdb-test \
	 --with-python=/usr/local/pyenv/versions/3.8-dev

builds

	make V=1
	make install

with no errors

built bin's linked to correct python

	ldd /usr/local/gdb-test/bin/gdb | grep py
		libpython3.8.so.1.0 => /usr/local/pyenv/versions/3.8-dev/lib/libpython3.8.so.1.0 (0x00007f85ff0c5000)

and execs ok

	/usr/local/gdb-test/bin/gdb --version
		GNU gdb (GDB) 10.0.50.20200326-git


thx!


More information about the Gdb mailing list