Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 727242

Summary: dev-util/android-tools-9.0.0_p3-r1 fails to compile 'typeof' was not declared
Product: Gentoo Linux Reporter: Helmut Jarausch <jarausch>
Component: Current packagesAssignee: Zac Medico <zmedico>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log xz-compressed
emerge --info output

Description Helmut Jarausch 2020-06-05 16:21:43 UTC
Created attachment 643550 [details]
build log xz-compressed

I get a strange error when trying to build android-tools
Thanks for a hint what's going on.

[82/244] x86_64-pc-linux-gnu-g++ -std=gnu++17 -march=native -O3  -maes -mavx -mavx2 -mf16c -mfma -mmmx -mpclmul -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -msse4a -mssse3 -pipe -std=c++17  -DFASTBOOT_VERSION="\"9.0.0_r3\"" -D_GNU_SOURCE -D_XOPEN_SOURCE=700 -DUSE_F2FS -Icore/base/include -Icore/include -Icore/adb -Icore/libsparse/include -Icore/mkbootimg -Iextras/ext4_utils/include -Iextras/f2fs_utils -Icore/libziparchive/include -Icore/mkbootimg/include/bootimg -c core/fastboot/protocol.cpp -o core/fastboot/protocol.cpp.o
FAILED: core/fastboot/protocol.cpp.o 
x86_64-pc-linux-gnu-g++ -std=gnu++17 -march=native -O3  -maes -mavx -mavx2 -mf16c -mfma -mmmx -mpclmul -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -msse4a -mssse3 -pipe -std=c++17  -DFASTBOOT_VERSION="\"9.0.0_r3\"" -D_GNU_SOURCE -D_XOPEN_SOURCE=700 -DUSE_F2FS -Icore/base/include -Icore/include -Icore/adb -Icore/libsparse/include -Icore/mkbootimg -Iextras/ext4_utils/include -Iextras/f2fs_utils -Icore/libziparchive/include -Icore/mkbootimg/include/bootimg -c core/fastboot/protocol.cpp -o core/fastboot/protocol.cpp.o
core/fastboot/protocol.cpp: In function 'int fb_download_data_sparse_write(void*, const void*, int)':
core/fastboot/protocol.cpp:30:8: error: 'typeof' was not declared in this scope
   30 |     ({ typeof(a) _a = (a); typeof(b) _b = (b); _a - (_a % _b); })
      |        ^~~~~~
core/fastboot/protocol.cpp:303:20: note: in expansion of macro 'round_down'
  303 |         to_write = round_down(len, TRANSPORT_BUF_SIZE);
      |                    ^~~~~~~~~~
core/fastboot/protocol.cpp:30:48: error: '_a' was not declared in this scope
   30 |     ({ typeof(a) _a = (a); typeof(b) _b = (b); _a - (_a % _b); })
      |                                                ^~
core/fastboot/protocol.cpp:303:20: note: in expansion of macro 'round_down'
  303 |         to_write = round_down(len, TRANSPORT_BUF_SIZE);
      |                    ^~~~~~~~~~
core/fastboot/protocol.cpp:30:59: error: '_b' was not declared in this scope
   30 |     ({ typeof(a) _a = (a); typeof(b) _b = (b); _a - (_a % _b); })
      |                                                           ^~
core/fastboot/protocol.cpp:303:20: note: in expansion of macro 'round_down'
  303 |         to_write = round_down(len, TRANSPORT_BUF_SIZE);
      |                    ^~~~~~~~~~
core/fastboot/protocol.cpp:30:5: error: void value not ignored as it ought to be
   30 |     ({ typeof(a) _a = (a); typeof(b) _b = (b); _a - (_a % _b); })
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
core/fastboot/protocol.cpp:303:20: note: in expansion of macro 'round_down'
  303 |         to_write = round_down(len, TRANSPORT_BUF_SIZE);
      |                    ^~~~~~~~~~
Comment 1 Helmut Jarausch 2020-06-05 16:23:57 UTC
Created attachment 643552 [details]
emerge --info output

The ebuild is in my local overlay, the only difference beeing
PYTHON_COMPAT=( python3_{7,8} )
Comment 2 Helmut Jarausch 2020-06-05 19:14:43 UTC
I've just checked that the errors occurs with kernel 5.6.16, as well