[Bug 1836045] Re: ftbfs: gnat cross targeting powerpc

Seth Forshee seth.forshee+lp at canonical.com
Wed Jul 10 15:21:16 UTC 2019


SO_SNDTIMEO_OLD and SO_RCVTIMEO_OLD are new in 5.1, due to some
shuffling to support y2038-safe socket timeout options. They should be
defined in headers installed by linux-libc-dev, as follows:

usr/include/asm-generic/socket.h:
  #define SO_RCVTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_RCVTIMEO_OLD : SO_RCVTIMEO_NEW)
  #define SO_SNDTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_SNDTIMEO_OLD : SO_SNDTIMEO_NEW)

usr/include/powerpc64le-linux-gnu/asm/socket.h:
  #define SO_RCVTIMEO_OLD        18
  #define SO_SNDTIMEO_OLD        19

So it seems likely that the would be coming from the
SO_RCVTIMEO/SO_SNDTIMEO definitions, which should get pulled in from the
ppc asm header pulling in the asm-generic header. But I can't see how it
would end up with those definitions but not the definitions for the
corresponding *_OLD symbols.

Looking at kernel changes since 5.0, as far as I can tell nothing has
changed wrt NAME_MAX and ENOENT. The other symbols don't appear to be
from the kernel.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-9-cross in Ubuntu.
https://bugs.launchpad.net/bugs/1836045

Title:
  ftbfs: gnat cross targeting powerpc

Status in gcc-8-cross package in Ubuntu:
  Confirmed
Status in gcc-9-cross package in Ubuntu:
  Confirmed

Bug description:
  both seen with gcc-8-cross and gcc-9-cross (search the build logs for
  "unfinished":

  /<<PKGBUILDDIR>>/gcc/build/./gcc/xgcc -B/<<PKGBUILDDIR>>/gcc/build/./gcc/ -B/usr/powerpc-linux-gnu/bin/ -B/usr/powerpc-li
  nux-gnu/lib/ -isystem /usr/powerpc-linux-gnu/include -isystem /usr/powerpc-linux-gnu/sys-include -isystem /<<PKGBUILDDIR>
  >/gcc/build/sys-include    -c -g -O2   -W -Wall -gnatpg -nostdinc  -gnatn  a-direct.adb -o a-direct.o
  a-direct.adb:734:27: "NAME_MAX" is undefined
  a-direct.adb:743:28: "SIZEOF_struct_dirent_alloc" is undefined
  a-direct.adb:1210:24: "ENOENT" is undefined
  s-filatt.ads:62:18: "SIZEOF_struct_file_attributes" not declared in "OS_Constants"
  s-oscons.ads:50:26: "Target_OS" is undefined
  s-oscons.ads:54:01: (style) multiple blank lines
  s-oscons.ads:59:01: (style) multiple blank lines
  s-oscons.ads:64:01: (style) multiple blank lines
  s-oscons.ads:69:01: (style) multiple blank lines
  s-oscons.ads:74:01: (style) multiple blank lines
  s-oscons.ads:79:01: (style) multiple blank lines
  s-oscons.ads:86:01: (style) multiple blank lines
  s-oscons.ads:91:01: (style) multiple blank lines
  s-oscons.ads:96:01: (style) multiple blank lines
  s-oscons.ads:101:01: (style) multiple blank lines
  s-oscons.ads:106:01: (style) multiple blank lines
  s-oscons.ads:111:01: (style) multiple blank lines
  s-oscons.ads:116:01: (style) multiple blank lines
  s-oscons.ads:121:01: (style) multiple blank lines
  s-oscons.ads:126:01: (style) multiple blank lines
  s-oscons.ads:131:01: (style) multiple blank lines
  s-oscons.ads:136:01: (style) multiple blank lines
  s-oscons.ads:147:01: (style) multiple blank lines
  s-oscons.ads:166:01: (style) multiple blank lines
  s-oscons.ads:173:01: (style) multiple blank lines
  s-oscons.ads:176:01: (style) multiple blank lines
  s-oscons.ads:181:01: (style) multiple blank lines
  make[9]: *** [../gcc-interface/Makefile:299: a-direct.o] Error 1
  make[9]: Leaving directory '/<<PKGBUILDDIR>>/gcc/build/gcc/ada/rts'
  make[8]: *** [gcc-interface/Makefile:623: gnatlib] Error 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-8-cross/+bug/1836045/+subscriptions



More information about the foundations-bugs mailing list