* Package: sys-power/nvram-wakeup-1.1 * Repository: gentoo * Maintainer: base-system@gentoo.org * USE: abi_x86_64 amd64 elibc_musl kernel_linux nls split-usr userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking nvram-wakup-1.1.tar.gz to /var/tmp/portage/sys-power/nvram-wakeup-1.1/work >>> Source unpacked in /var/tmp/portage/sys-power/nvram-wakeup-1.1/work >>> Preparing source in /var/tmp/portage/sys-power/nvram-wakeup-1.1/work/nvram-wakup-1.1 ... * strip-flags: CFLAGS: changed '-O2 -pipe -march=native -fno-common -falign-functions=32:25:16' to '-O2 -pipe -march=native' * strip-flags: CXXFLAGS: changed '-O2 -pipe -march=native -fno-common -falign-functions=32:25:16' to '-O2 -pipe -march=native' * strip-flags: FFLAGS: changed '-O2 -pipe -march=native -fno-common -falign-functions=32:25:16' to '-O2 -pipe -march=native' * strip-flags: FCFLAGS: changed '-O2 -pipe -march=native -fno-common -falign-functions=32:25:16' to '-O2 -pipe -march=native' >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-power/nvram-wakeup-1.1/work/nvram-wakup-1.1 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-power/nvram-wakeup-1.1/work/nvram-wakup-1.1 ... make -j1 Preparing cvs_revs.h gcc -O2 -pipe -march=native -Wall -Wstrict-prototypes -g -pedantic -D_GNU_SOURCE -c -o nvram-wakeup.o nvram-wakeup.c nvram-wakeup.c: In function ‘main’: nvram-wakeup.c:278:34: warning: overflow in conversion from ‘long unsigned int’ to ‘int’ changes value from ‘2149871624’ to ‘-2145095672’ [-Woverflow] 278 | retval = ioctl(fd_rtc, RTC_ALM_READ, &oRtc_tm); | ^~~~~~~~~~~~ gcc -O2 -pipe -march=native -Wall -Wstrict-prototypes -g -pedantic -D_GNU_SOURCE -c -o nvram-wakeup-mb.o nvram-wakeup-mb.c gcc -O2 -pipe -march=native -Wall -Wstrict-prototypes -g -pedantic -D_GNU_SOURCE -c -o gmt-test.o gmt-test.c gmt-test.c: In function ‘compare_ltm_rtc’: gmt-test.c:49:24: warning: overflow in conversion from ‘long unsigned int’ to ‘int’ changes value from ‘2149871625’ to ‘-2145095671’ [-Woverflow] 49 | if (ioctl(fd_rtc, RTC_RD_TIME, rtc_tm) == -1) { | ^~~~~~~~~~~ gcc -O2 -pipe -march=native -Wall -Wstrict-prototypes -g -pedantic -D_GNU_SOURCE -c -o byteops.o byteops.c gcc -O2 -pipe -march=native -Wall -Wstrict-prototypes -g -pedantic -D_GNU_SOURCE -c -o nvramops.o nvramops.c gcc -O2 -pipe -march=native -Wall -Wstrict-prototypes -g -pedantic -D_GNU_SOURCE -c -o bios.o bios.c bios.c:27:6: error: unknown type name ‘__uint8_t’ 27 | __uint8_t type; | ^~~~~~~~~ bios.c:28:6: error: unknown type name ‘__uint8_t’ 28 | __uint8_t size; | ^~~~~~~~~ bios.c:29:6: error: unknown type name ‘__uint16_t’ 29 | __uint16_t handle; | ^~~~~~~~~~ bios.c:44:8: error: unknown type name ‘__uint8_t’ 44 | static __uint8_t *data; | ^~~~~~~~~ bios.c: In function ‘__dmi_string’: bios.c:67:6: error: unknown type name ‘__uint8_t’; did you mean ‘u_int8_t’? 67 | __uint8_t *bp = (__uint8_t *)dmi; | ^~~~~~~~~ | u_int8_t bios.c:67:23: error: ‘__uint8_t’ undeclared (first use in this function); did you mean ‘u_int8_t’? 67 | __uint8_t *bp = (__uint8_t *)dmi; | ^~~~~~~~~ | u_int8_t bios.c:67:23: note: each undeclared identifier is reported only once for each function it appears in bios.c:67:34: error: expected expression before ‘)’ token 67 | __uint8_t *bp = (__uint8_t *)dmi; | ^ bios.c:68:15: error: expected ‘;’ before ‘s’ 68 | __uint8_t s = bp[i]; | ^ ~ | ; bios.c:70:11: error: ‘s’ undeclared (first use in this function) 70 | if (!s) return NULL; | ^ bios.c:75:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 75 | if ( (int)bp >= (int)data ) return NULL; /* broken DMI entry */ | ^ bios.c:75:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 75 | if ( (int)bp >= (int)data ) return NULL; /* broken DMI entry */ | ^ bios.c: In function ‘__dmi_probe’: bios.c:85:6: error: unknown type name ‘__uint8_t’; did you mean ‘u_int8_t’? 85 | __uint8_t buf[16]; | ^~~~~~~~~ | u_int8_t bios.c:116:16: error: unknown type name ‘__uint16_t’; did you mean ‘uint16_t’? 116 | __uint16_t count = buf[13]<<8 | buf[12]; | ^~~~~~~~~~ | uint16_t bios.c:117:16: error: unknown type name ‘__uint16_t’; did you mean ‘uint16_t’? 117 | __uint16_t size = buf[7] <<8 | buf[6]; | ^~~~~~~~~~ | uint16_t bios.c:118:16: error: unknown type name ‘__uint32_t’; did you mean ‘uint32_t’? 118 | __uint32_t base = buf[11]<<24 | buf[10]<<16 | buf[9]<<8 | buf[8]; | ^~~~~~~~~~ | uint32_t bios.c:135:24: error: ‘__uint8_t’ undeclared (first use in this function); did you mean ‘u_int8_t’? 135 | data = (__uint8_t *)entry; | ^~~~~~~~~ | u_int8_t bios.c:135:35: error: expected expression before ‘)’ token 135 | data = (__uint8_t *)entry; | ^ bios.c:139:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 139 | if ( (int)data - (int)entry >= size-4 ) break; /* broken DMI euntry */ | ^ bios.c:139:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 139 | if ( (int)data - (int)entry >= size-4 ) break; /* broken DMI euntry */ | ^ bios.c:143:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 143 | i, (int)data - (int)entry, dm->type, dm->size, dm->size ); | ^ bios.c:143:66: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 143 | i, (int)data - (int)entry, dm->type, dm->size, dm->size ); | ^ make: *** [: bios.o] Error 1 * ERROR: sys-power/nvram-wakeup-1.1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-power/nvram-wakeup-1.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-power/nvram-wakeup-1.1::gentoo'`. * The complete build log is located at '/var/log/portage/sys-power:nvram-wakeup-1.1:20200319-131952.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-power/nvram-wakeup-1.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-power/nvram-wakeup-1.1/temp/environment'. * Working directory: '/var/tmp/portage/sys-power/nvram-wakeup-1.1/work/nvram-wakup-1.1' * S: '/var/tmp/portage/sys-power/nvram-wakeup-1.1/work/nvram-wakup-1.1'