[Bug 1836045] Re: ftbfs: gnat cross targeting powerpc
Seth Forshee
seth.forshee+lp at canonical.com
Wed Jul 10 20:01:41 UTC 2019
That's not true; most architectures don't have a match for SO_RCVTIMEO,
as they're using the definition from asm-generic, just as powerpc should
be. The others were updated differently because they do not include asm-
generic/socket.h. And powerpc clearly does have a definition for it,
since the build complains that SO_RCVTIMEO_OLD is not defined and not
SO_RCVTIMEO. The question is why isn't SO_RCVTIMEO_OLD defined.
I tried cross-compiling the following for ppc64el and did not receive
any errors about SO_RCVTIMEO or SO_RCVTIMEO_OLD being undefined, nor did
it complain when I used SO_RCVTIMEO_OLD, so it seems like it's working
as intended. That leaves me wondering whether something isn't including
asm-generic/socket.h when it should be including asm/socket.h, or
something like that. I don't see any such mistakes in linux-libc-dev
though.
#include <stdio.h>
#include <sys/socket.h>
int main(void)
{
printf("%d\n", SO_RCVTIMEO);
return 0;
}
--
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
Status in linux 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