[gentoo-user] haven't been able to build android-tools for months

2021-09-06 Thread n952162

On any of my 7 gentoo machines:

FAILED: ^[[0mvendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++  -Ivendor
-I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/include
-I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/core/include
-I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/logging/liblog/include
-O2 -pipe -std=gnu++2a -Wno-attributes -D_FILE_OFFSET_BITS=64 -MD -MT
vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o -MF
vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o.d -o
vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o -c
/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp
during RTL pass: expand
/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp:
In member function â~@~Xvoid
android::base::LogdLogger::operator()(android::base::LogId,
android::base::LogSeverity, const char*, const char*, unsigned int,
const char*)â~@~Y:
/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp:330:6:
internal compiler error: in expand_expr_real_1, at expr.c:10012
  330 | void LogdLogger::operator()(LogId id, LogSeverity severity,
const char* tag, const char* file,
  |  ^~
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.
[107/659] /usr/bin/x86_64-pc-linux-gnu-g++  -Ivendor
-I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/include
-I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/core/include
-I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/logging/liblog/include
-O2 -pipe -std=gnu++2a -Wno-attributes -D_FILE_OFFSET_BITS=64 -MD -MT
vendor/CMakeFiles/libbase.dir/libbase/mapped_file.cpp.o -MF
vendor/CMakeFiles/libbase.dir/libbase/mapped_file.cpp.o.d -o
vendor/CMakeFiles/libbase.dir/libbase/mapped_file.cpp.o -c
/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/mapped_file.cpp
ninja: build stopped: subcommand failed.
 * ERROR: dev-util/android-tools-31.0.0_p1::gentoo failed (compile phase):
 *   ninja -v -j2 -l0 failed
 *
 * Call stack:
 * ebuild.sh, line  127:  Called src_compile
 *   environment, line 3186:  Called cmake_src_compile
 *   environment, line 1231:  Called cmake_build
 *   environment, line 1200:  Called eninja
 *   environment, line 1707:  Called die
 * The specific snippet of code:
 *   "$@" || die "${nonfatal_args[@]}" "${*} failed"

I find no mention of this problem here, in the mailing list. There was
one hit in an internet search, but the conclusion was a bug in go, which
I don't have as described.

Anybody seen this?

Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1, gcc-9.3.0, 
glibc-2.33-r1, 5.4.92-gentoo-x86_64 x86_64)
=
 System Settings
=
System uname: Linux-5.4.92-gentoo-x86_64-x86_64-with-glibc2.33
KiB Mem: 7602652 total,303252 free
KiB Swap:8388604 total,   8387824 free
Timestamp of repository gentoo: Sun, 05 Sep 2021 08:30:01 +
Head commit of repository gentoo: 63c88537385d5a874c4b0acf2b1b8c3bac423af6
sh bash 5.1_p8
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:  5.1_p8::gentoo
dev-lang/perl:5.34.0::gentoo
dev-lang/python:  2.7.18-r4::gentoo, 3.6.14::gentoo, 3.7.11::gentoo, 
3.8.11::gentoo, 3.9.6_p1::gentoo
dev-lang/rust:1.53.0::gentoo
dev-util/cmake:   3.20.5::gentoo
sys-apps/baselayout:  2.7::gentoo
sys-apps/openrc:  0.43.5::gentoo
sys-apps/sandbox: 2.24::gentoo
sys-devel/autoconf:   2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:   1.16.3-r1::gentoo
sys-devel/binutils:   2.34-r2::gentoo, 2.35.2::gentoo, 2.36.1-r2::gentoo
sys-devel/gcc:9.3.0-r2::gentoo, 10.3.0-r2::gentoo
sys-devel/gcc-config: 2.4::gentoo
sys-devel/libtool:2.4.6-r6::gentoo
sys-devel/make:   4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:   2.33-r1::gentoo
Repositories:

gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts: 
sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/boot/cmdline.txt /boot/config.txt /etc 
/usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /e

Re: [gentoo-user] haven't been able to build android-tools for months

2021-09-06 Thread cal
On 9/6/21 11:14 AM, n952162 wrote:
> On any of my 7 gentoo machines:
> 
> FAILED: ^[[0mvendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o
> /usr/bin/x86_64-pc-linux-gnu-g++  -Ivendor
> -I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/include
> 
> -I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/core/include
> 
> -I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/logging/liblog/include
> 
> -O2 -pipe -std=gnu++2a -Wno-attributes -D_FILE_OFFSET_BITS=64 -MD -MT
> vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o -MF
> vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o.d -o
> vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o -c
> /var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp
> 
> during RTL pass: expand
> /var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp:
> 
> In member function â~@~Xvoid
> android::base::LogdLogger::operator()(android::base::LogId,
> android::base::LogSeverity, const char*, const char*, unsigned int,
> const char*)â~@~Y:
> /var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp:330:6:
> 
> internal compiler error: in expand_expr_real_1, at expr.c:10012
>   330 | void LogdLogger::operator()(LogId id, LogSeverity severity,
> const char* tag, const char* file,
>   |  ^~
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See  for instructions.
> [107/659] /usr/bin/x86_64-pc-linux-gnu-g++  -Ivendor
> -I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/include
> 
> -I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/core/include
> 
> -I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/logging/liblog/include
> 
> -O2 -pipe -std=gnu++2a -Wno-attributes -D_FILE_OFFSET_BITS=64 -MD -MT
> vendor/CMakeFiles/libbase.dir/libbase/mapped_file.cpp.o -MF
> vendor/CMakeFiles/libbase.dir/libbase/mapped_file.cpp.o.d -o
> vendor/CMakeFiles/libbase.dir/libbase/mapped_file.cpp.o -c
> /var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/mapped_file.cpp
> 
> ninja: build stopped: subcommand failed.
>  * ERROR: dev-util/android-tools-31.0.0_p1::gentoo failed (compile phase):
>  *   ninja -v -j2 -l0 failed
>  *
>  * Call stack:
>  * ebuild.sh, line  127:  Called src_compile
>  *   environment, line 3186:  Called cmake_src_compile
>  *   environment, line 1231:  Called cmake_build
>  *   environment, line 1200:  Called eninja
>  *   environment, line 1707:  Called die
>  * The specific snippet of code:
>  *   "$@" || die "${nonfatal_args[@]}" "${*} failed"
> 
> I find no mention of this problem here, in the mailing list. There was
> one hit in an internet search, but the conclusion was a bug in go, which
> I don't have as described.
> 
> Anybody seen this?
> 
I have not experienced this issue; android-tools has emerged
successfully (most recently in August) for me.

Per your build.log, you're still using GCC 9.3.0, which isn't even
listed on https://packages.gentoo.org/packages/sys-devel/gcc anymore
(9.4.0 and 10.3.0 are stable on amd64; I'm on 10.3.0 myself).

Given the error message implies a compiler error, perhaps try upgrading
sys-devel/gcc first?



Re: [gentoo-user] haven't been able to build android-tools for months

2021-09-06 Thread n952162

On 9/6/21 8:19 PM, cal wrote:

On 9/6/21 11:14 AM, n952162 wrote:

On any of my 7 gentoo machines:

FAILED: ^[[0mvendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++  -Ivendor
-I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/include

-I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/core/include

-I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/logging/liblog/include

-O2 -pipe -std=gnu++2a -Wno-attributes -D_FILE_OFFSET_BITS=64 -MD -MT
vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o -MF
vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o.d -o
vendor/CMakeFiles/libbase.dir/libbase/logging.cpp.o -c
/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp

during RTL pass: expand
/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp:

In member function â~@~Xvoid
android::base::LogdLogger::operator()(android::base::LogId,
android::base::LogSeverity, const char*, const char*, unsigned int,
const char*)â~@~Y:
/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/logging.cpp:330:6:

internal compiler error: in expand_expr_real_1, at expr.c:10012
   330 | void LogdLogger::operator()(LogId id, LogSeverity severity,
const char* tag, const char* file,
   |  ^~
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.
[107/659] /usr/bin/x86_64-pc-linux-gnu-g++  -Ivendor
-I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/include

-I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/core/include

-I/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/logging/liblog/include

-O2 -pipe -std=gnu++2a -Wno-attributes -D_FILE_OFFSET_BITS=64 -MD -MT
vendor/CMakeFiles/libbase.dir/libbase/mapped_file.cpp.o -MF
vendor/CMakeFiles/libbase.dir/libbase/mapped_file.cpp.o.d -o
vendor/CMakeFiles/libbase.dir/libbase/mapped_file.cpp.o -c
/var/tmp/portage/dev-util/android-tools-31.0.0_p1/work/android-tools-31.0.0p1/vendor/libbase/mapped_file.cpp

ninja: build stopped: subcommand failed.
  * ERROR: dev-util/android-tools-31.0.0_p1::gentoo failed (compile phase):
  *   ninja -v -j2 -l0 failed
  *
  * Call stack:
  * ebuild.sh, line  127:  Called src_compile
  *   environment, line 3186:  Called cmake_src_compile
  *   environment, line 1231:  Called cmake_build
  *   environment, line 1200:  Called eninja
  *   environment, line 1707:  Called die
  * The specific snippet of code:
  *   "$@" || die "${nonfatal_args[@]}" "${*} failed"

I find no mention of this problem here, in the mailing list. There was
one hit in an internet search, but the conclusion was a bug in go, which
I don't have as described.

Anybody seen this?


I have not experienced this issue; android-tools has emerged
successfully (most recently in August) for me.

Per your build.log, you're still using GCC 9.3.0, which isn't even
listed on https://packages.gentoo.org/packages/sys-devel/gcc anymore
(9.4.0 and 10.3.0 are stable on amd64; I'm on 10.3.0 myself).

Given the error message implies a compiler error, perhaps try upgrading
sys-devel/gcc first?



Aggh!

00~/adm/gentoo/emerged>eselect gcc list
 [1] x86_64-pc-linux-gnu-9.3.0 *
 [2] x86_64-pc-linux-gnu-10.3.0


$ eselect news list | grep gcc

doesn't turn up anything.  When should/may one upgrade?

Thank you for the tip!   That's surely what's going on.





Re: [gentoo-user] haven't been able to build android-tools for months

2021-09-06 Thread antlists

On 06/09/2021 20:23, n952162 wrote:

Aggh!

00~/adm/gentoo/emerged>eselect gcc list
  [1] x86_64-pc-linux-gnu-9.3.0 *
  [2] x86_64-pc-linux-gnu-10.3.0


$ eselect news list | grep gcc

doesn't turn up anything.  When should/may one upgrade?

Thank you for the tip!   That's surely what's going on.


Others may chime in and say I'm wrong, but my immediate reaction would 
be an "eselect gcc set 2" to upgrade the active gcc. An "emerge 
--depclean" without that could easily leave you with a broken system - 
probably easy enough to fix but still a nightmare until you realise 
what's happened ...


If there's no news, then the change *should* not be a problem.

And if you're at all worried, follow that with an "emerge -e @system". 
Provide it runs successfully ... you will have a working system, even if 
bits of it break. Only downside, it will probably take quite a while to 
run ...


Cheers,
Wol



Re: [gentoo-user] haven't been able to build android-tools for months

2021-09-06 Thread cal
On 9/6/21 12:23 PM, n952162 wrote:

>>
>> Given the error message implies a compiler error, perhaps try upgrading
>> sys-devel/gcc first?
>>
> 
> Aggh!
> 
> 00~/adm/gentoo/emerged>eselect gcc list
>  [1] x86_64-pc-linux-gnu-9.3.0 *
>  [2] x86_64-pc-linux-gnu-10.3.0
> 
> 
> $ eselect news list | grep gcc
> 
> doesn't turn up anything.  When should/may one upgrade?
> 
> Thank you for the tip!   That's surely what's going on.

https://wiki.gentoo.org/wiki/Upgrading_GCC (note: most of the content
here appears to be related to upgrading to GCC 5.x).

Like the kernel, new versions of GCC are automatically pulled in, but
you have to eselect the new one manually (I don't know the reason; I
assume it is to avoid leaving the user with a broken compiler).
Personally, I just check the emerge output to see if a new version of
GCC was merged, and if so, I eselect it and rebuild libtool as described
on the wiki.

cal



Re: [gentoo-user] haven't been able to build android-tools for months [ RESOLVED ]

2021-09-07 Thread n952162



On 9/6/21 11:04 PM, cal wrote:

On 9/6/21 12:23 PM, n952162 wrote:


Given the error message implies a compiler error, perhaps try upgrading
sys-devel/gcc first?


Aggh!

00~/adm/gentoo/emerged>eselect gcc list
  [1] x86_64-pc-linux-gnu-9.3.0 *
  [2] x86_64-pc-linux-gnu-10.3.0


$ eselect news list | grep gcc

doesn't turn up anything.  When should/may one upgrade?

Thank you for the tip!   That's surely what's going on.

https://wiki.gentoo.org/wiki/Upgrading_GCC (note: most of the content
here appears to be related to upgrading to GCC 5.x).

Like the kernel, new versions of GCC are automatically pulled in, but
you have to eselect the new one manually (I don't know the reason; I
assume it is to avoid leaving the user with a broken compiler).
Personally, I just check the emerge output to see if a new version of
GCC was merged, and if so, I eselect it and rebuild libtool as described
on the wiki.

cal



Yes, that fixed it, thank you.  I have to read about libtool now, though.