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

PGNet Dev via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
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 <[email protected]>
		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!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.