From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by sourceware.org (Postfix) with ESMTPS id D4D39385E003 for ; Wed, 25 Mar 2020 22:56:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D4D39385E003 Received: by mail-qk1-x72a.google.com with SMTP id k13so4575376qki.2 for ; Wed, 25 Mar 2020 15:56:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fLuDngJcj1wAaZ0gP4LEio27/UKNQwhenH41rsZ2beo=; b=LMEELRUYE+IOub7fZBHhMGlVF/jtF15JC0mwgaUe9WUDx38Me0yi04LROszIsnMbcg D4GNxyQi132gjXobDV6UEmP0wn4jv4/KhjL5x1ADYs/0qHHhOMYeUBm5CaceMwAP7IuC C3jM4mRuQgbxQzn/mY06wgn7uvr0x2uv637QkmyKYwqUEVb89VVqLlU1CftJwVHFiL8r OVbJfwoYGH48kkYNDXVoSOUU4wIMsopAbw+FPRZrlcAMM7n8TYStUTM++9lpcFTR84Lp gHCiydOsFRiZPHUA0CnUgIhujHGDvw6YdqQG79Te0b91+ykGWw9TLXR1yjETqTuGyTh4 NCdA== X-Gm-Message-State: ANhLgQ0sMJcWk4McK9lZWb4SppLWOC5xAVm66sRceTmj4tOHdAw8+Ddn 5flKUE1rMH3exDEFQbru+miM1tfZ/qk8QyB/zEUTE51sJro= X-Google-Smtp-Source: ADFU+vuL+lGmWp/Nb8c0XpNVzUqyF4hlbyvwVpSAyZQQ3AlBsnCPkq9TbJznovt2RcL79vQ3niTtY0gmNKAZ/Qpnf4w= X-Received: by 2002:a05:620a:1256:: with SMTP id a22mr5203833qkl.439.1585176967484; Wed, 25 Mar 2020 15:56:07 -0700 (PDT) MIME-Version: 1.0 References: <03e669b7-9db7-cbbf-abb3-2c4869c526e9@gmail.com> <63388801-ba43-ecab-7384-c396515a32bc@gmail.com> In-Reply-To: From: Christian Biesinger Date: Wed, 25 Mar 2020 17:55:29 -0500 Message-ID: Subject: Re: gdb/head build, --with-python= FAILs @ "no usable python found " ? To: pgnet.dev@gmail.com Cc: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-22.3 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2020 22:56:10 -0000 On Wed, Mar 25, 2020 at 5:51 PM PGNet Dev wrote: > > On 3/25/20 3:24 PM, Christian Biesinger wrote: > > GDB uses basically this commandline to find the linker flags: > > python3.8 ./gdb/python-config.py --ldflags > > just checking, that's just a typo right? not expected in config/source at= that path? > > this > > ./gdb/python-config.py > > does not exist. > > rather > > find . | Grep python-config > ./gdb/python/python-config.py > > that, from shell in the env that the build occurs, > > cd src/binutils-gdb > python3.8 ./gdb/python/python-config.py --ldflags > > correctly returns > > -lpython3.8 -lcrypt -lpthread -ldl -lutil -lm -lm -Xlinker -expor= t-dynamic > > which should be fine for LDFLAGS Sorry, yes, that one. Well it's not fine because it still needs an -L/usr/local/pyenv/versions/3.8-dev/lib option too... > > > or pass LDFLAGS=3D/usr/local/pyenv/versions/3.8-dev/lib/ to configure. > > using usual '-L/path' var Sorry, yes, forgot the -L. > > export LDFLAGS=3D"-L/usr/local/pyenv/versions/3.8-dev/lib" > (does this^ need to be rpath'd? need to poke around in here ...) If you can run python3.8, you probably already set things up correctly for = that? > > ./configure \ > --prefix=3D/usr/local/gdb-test \ > --with-python=3D/usr/local/pyenv/versions/3.8-dev > make V=3D1 > > _does_ seem to get past the 'python unfound' problem, dropping me into th= e next issue ... which seems unrelated Yeah. Unfortunately I have no idea about that error, hopefully someone else can comment. > > ... > /usr/bin/g++-10 -O3 -Wall -fstack-protector-strong -funwind-tabl= es -fasynchronous-unwind-tables -fmessage-length=3D0 -grecord-gcc-switches = -march=3Dnative -mtune=3Dnative -std=3Dc++17 -I. -I. -I./../gdb/regforma= ts -I./.. -I./../include -I./../gdb -I./../gnulib/import -I../gnulib/import= -I./.. -I.. -O3 -Wall -fstack-protector-strong -funwind-tables -fasynchro= nous-unwind-tables -fmessage-length=3D0 -grecord-gcc-switches -march=3Dnati= ve -mtune=3Dnative -D_FORTIFY_SOURCE=3D2 -pthread -Wall -Wpointer-arith -Wn= o-unused -Wunused-value -Wunused-variable -Wunused-function -Wno-switch -Wn= o-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-= variable -Wno-sign-compare -Wno-error=3Dmaybe-uninitialized -Wno-mismatched= -tags -Wsuggest-override -Wimplicit-fallthrough=3D3 -Wduplicated-cond -Wsha= dow=3Dlocal -Wdeprecated-copy -Wdeprecated-copy-dtor -Wredundant-move -Wmis= sing-declarations -Wstrict-null-sentinel -Wformat -Wformat-nonliteral -Werr= or -DGDBSERVER -c -o linux-low.o -MT linux-low.o -MMD -MP -MF ./.deps/linux= -low.Tpo linux-low.cc > In file included from gdb_proc_service.h:22, > from linux-low.h:27, > from linux-low.cc:20: > ./../gdbsupport/gdb_proc_service.h:177:50: error: expected constr= uctor, destructor, or type conversion before =E2=80=98(=E2=80=99 token > 177 | __attribute__((visibility ("default"))) typeof (SYM) SY= M > | ^ > ./../gdbsupport/gdb_proc_service.h:179:1: note: in expansion of m= acro =E2=80=98PS_EXPORT=E2=80=99 > 179 | PS_EXPORT (ps_get_thread_area); > | ^~~~~~~~~ > ./../gdbsupport/gdb_proc_service.h:177:50: error: expected constr= uctor, destructor, or type conversion before =E2=80=98(=E2=80=99 token > 177 | __attribute__((visibility ("default"))) typeof (SYM) SY= M > | ^ > ./../gdbsupport/gdb_proc_service.h:180:1: note: in expansion of m= acro =E2=80=98PS_EXPORT=E2=80=99 > 180 | PS_EXPORT (ps_getpid); > | ^~~~~~~~~ > ./../gdbsupport/gdb_proc_service.h:177:50: error: expected constr= uctor, destructor, or type conversion before =E2=80=98(=E2=80=99 token > 177 | __attribute__((visibility ("default"))) typeof (SYM) SY= M > | ^ > ./../gdbsupport/gdb_proc_service.h:181:1: note: in expansion of m= acro =E2=80=98PS_EXPORT=E2=80=99 > 181 | PS_EXPORT (ps_lcontinue); > | ^~~~~~~~~ > ./../gdbsupport/gdb_proc_service.h:177:50: error: expected constr= uctor, destructor, or type conversion before =E2=80=98(=E2=80=99 token > 177 | __attribute__((visibility ("default"))) typeof (SYM) SY= M > | ^ > ./../gdbsupport/gdb_proc_service.h:182:1: note: in expansion of m= acro =E2=80=98PS_EXPORT=E2=80=99 > 182 | PS_EXPORT (ps_lgetfpregs); > | ^~~~~~~~~ > ./../gdbsupport/gdb_proc_service.h:177:50: error: expected constr= uctor, destructor, or type conversion before =E2=80=98(=E2=80=99 token > 177 | __attribute__((visibility ("default"))) typeof (SYM) SY= M > | ^ > ./../gdbsupport/gdb_proc_service.h:183:1: note: in expansion of m= acro =E2=80=98PS_EXPORT=E2=80=99 > 183 | PS_EXPORT (ps_lgetregs); > | ^~~~~~~~~ > ./../gdbsupport/gdb_proc_service.h:177:50: error: expected constr= uctor, destructor, or type conversion before =E2=80=98(=E2=80=99 token > 177 | __attribute__((visibility ("default"))) typeof (SYM) SY= M > | ^ > ./../gdbsupport/gdb_proc_service.h:184:1: note: in expansion of m= acro =E2=80=98PS_EXPORT=E2=80=99 > 184 | PS_EXPORT (ps_lsetfpregs); > | ^~~~~~~~~ > ./../gdbsupport/gdb_proc_service.h:177:50: error: expected constr= uctor, destructor, or type conversion before =E2=80=98(=E2=80=99 token > 177 | __attribute__((visibility ("default"))) typeof (SYM) SY= M > | ^ > ./../gdbsupport/gdb_proc_service.h:185:1: note: in expansion of m= acro =E2=80=98PS_EXPORT=E2=80=99 > 185 | PS_EXPORT (ps_lsetregs); > | ^~~~~~~~~ > ./../gdbsupport/gdb_proc_service.h:177:50: error: expected constr= uctor, destructor, or type conversion before =E2=80=98(=E2=80=99 token > 177 | __attribute__((visibility ("default"))) typeof (SYM) SY= M > | ^ > ./../gdbsupport/gdb_proc_service.h:186:1: note: in expansion of m= acro =E2=80=98PS_EXPORT=E2=80=99 > 186 | PS_EXPORT (ps_lstop); > | ^~~~~~~~~ > ./../gdbsupport/gdb_proc_service.h:177:50: error: expected constr= uctor, destructor, or type conversion before =E2=80=98(=E2=80=99 token > 177 | __attribute__((visibility ("default"))) typeof (SYM) SY= M > | ^ > ./../gdbsupport/gdb_proc_service.h:187:1: note: in expansion of m= acro =E2=80=98PS_EXPORT=E2=80=99 > 187 | PS_EXPORT (ps_pcontinue); > | ^~~~~~~~~ > ./../gdbsupport/gdb_proc_service.h:177:50: error: expected constr= uctor, destructor, or type conversion before =E2=80=98(=E2=80=99 token > 177 | __attribute__((visibility ("default"))) typeof (SYM) SY= M > | ^ > ./../gdbsupport/gdb_proc_service.h:188:1: note: in expansion of m= acro =E2=80=98PS_EXPORT=E2=80=99 > 188 | PS_EXPORT (ps_pdread); > | ^~~~~~~~~ > ./../gdbsupport/gdb_proc_service.h:177:50: error: expected constr= uctor, destructor, or type conversion before =E2=80=98(=E2=80=99 token > 177 | __attribute__((visibility ("default"))) typeof (SYM) SY= M > | ^ > ./../gdbsupport/gdb_proc_service.h:189:1: note: in expansion of m= acro =E2=80=98PS_EXPORT=E2=80=99 > 189 | PS_EXPORT (ps_pdwrite); > | ^~~~~~~~~ > ./../gdbsupport/gdb_proc_service.h:177:50: error: expected constr= uctor, destructor, or type conversion before =E2=80=98(=E2=80=99 token > 177 | __attribute__((visibility ("default"))) typeof (SYM) SY= M > | ^ > ./../gdbsupport/gdb_proc_service.h:190:1: note: in expansion of m= acro =E2=80=98PS_EXPORT=E2=80=99 > 190 | PS_EXPORT (ps_pglobal_lookup); > | ^~~~~~~~~ > ./../gdbsupport/gdb_proc_service.h:177:50: error: expected constr= uctor, destructor, or type conversion before =E2=80=98(=E2=80=99 token > 177 | __attribute__((visibility ("default"))) typeof (SYM) SY= M > | ^ > ./../gdbsupport/gdb_proc_service.h:191:1: note: in expansion of m= acro =E2=80=98PS_EXPORT=E2=80=99 > 191 | PS_EXPORT (ps_pstop); > | ^~~~~~~~~ > ./../gdbsupport/gdb_proc_service.h:177:50: error: expected constr= uctor, destructor, or type conversion before =E2=80=98(=E2=80=99 token > 177 | __attribute__((visibility ("default"))) typeof (SYM) SY= M > | ^ > ./../gdbsupport/gdb_proc_service.h:192:1: note: in expansion of m= acro =E2=80=98PS_EXPORT=E2=80=99 > 192 | PS_EXPORT (ps_ptread); > | ^~~~~~~~~ > ./../gdbsupport/gdb_proc_service.h:177:50: error: expected constr= uctor, destructor, or type conversion before =E2=80=98(=E2=80=99 token > 177 | __attribute__((visibility ("default"))) typeof (SYM) SY= M > | ^ > ./../gdbsupport/gdb_proc_service.h:193:1: note: in expansion of m= acro =E2=80=98PS_EXPORT=E2=80=99 > 193 | PS_EXPORT (ps_ptwrite); > | ^~~~~~~~~ > make[2]: *** [Makefile:545: linux-low.o] Error 1 > make[2]: Leaving directory '/usr/local/src/binutils-gdb/gdbserver= ' > make[1]: *** [Makefile:11295: all-gdbserver] Error 2 > make[1]: Leaving directory '/usr/local/src/binutils-gdb' > make: *** [Makefile:854: all] Error 2