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

2019-07-24 Thread Brad Figg
** Tags added: cscc

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

Title:
  ftbfs: gnat cross targeting powerpc

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2019-07-11 Thread Steve Langasek
If the cross-builds are working again, it sounds like this is resolved.

** Changed in: linux (Ubuntu)
   Status: Confirmed => Fix Released

** Changed in: gcc-9-cross (Ubuntu)
   Status: Confirmed => Fix Released

** Changed in: gcc-8-cross (Ubuntu)
   Status: Confirmed => Fix Released

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

Title:
  ftbfs: gnat cross targeting powerpc

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2019-07-11 Thread Matthias Klose
now built linux-libc-dev-powerpc-cross from the linux 5.2 sources, and
the cross builds are working again.  I'm currently not spending time to
investigate that further.

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

Title:
  ftbfs: gnat cross targeting powerpc

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2019-07-10 Thread Matthias Klose
gcc/ada/gsocket.h:#include 

so this is using the glibc header, no kernel header directly.

It looks like that with linux-libc-dev built using linux 5.2, I'm able
to build the cross compiler. I'll update once the build finishes.

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

Title:
  ftbfs: gnat cross targeting powerpc

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2019-07-10 Thread Matthias Klose
> /usr/include/powerpc64le-linux-gnu/asm/socket.h:

this is the wrong header, I am talking about the powerpc-linux-gnu
target.

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

Title:
  ftbfs: gnat cross targeting powerpc

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2019-07-10 Thread Seth Forshee
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 
#include 

int main(void)
{
printf("%d\n", SO_RCVTIMEO);
return 0;
}

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

Title:
  ftbfs: gnat cross targeting powerpc

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2019-07-10 Thread Matthias Klose
comparing the source trees of 5.0 and 5.2, it looks like all
architectures except powerpc were updated (fgrep -r SO_RCVTIMEO). So
this is a blocker for the powerpc cross compilers, which we need to
build some firmware.


** Also affects: linux (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: linux (Ubuntu)
   Status: New => Confirmed

** Changed in: linux (Ubuntu)
   Importance: Undecided => High

** Tags added: rls-ee-incoming

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

Title:
  ftbfs: gnat cross targeting powerpc

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2019-07-10 Thread Seth Forshee
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_OLD18
  #define SO_SNDTIMEO_OLD19

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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1836045

Title:
  ftbfs: gnat cross targeting powerpc

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2019-07-10 Thread Matthias Klose
** Summary changed:

- ftbfs: gnat cross targeting powerpc on ppc64el
+ ftbfs: gnat cross targeting powerpc

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

Title:
  ftbfs: gnat cross targeting powerpc

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2019-07-10 Thread Matthias Klose
(cd rts ; \
/<>/gcc/build/./gcc/xgcc -B/<>/gcc/build/./gcc/ 
-B/usr/powerpc-linux-gnu/bin/ -B/usr/powerp
c-linux-gnu/lib/ -isystem /usr/powerpc-linux-gnu/include -isystem 
/usr/powerpc-linux-gnu/sys-include -isystem /<>/gcc/build/sys-include-W -Wall -g -O2 -g -O2 -fexceptions -DIN_RTS 
-DHAVE_GETIPINFO   -E -C -DTARGET=\"powerpc-u
nknown-linux-gnu\" -iquote /<>/gcc/src/gcc/ada 
/<>/gcc/src/gcc/ada/s-oscons-tmplt.c > s-oscons-
tmplt.i ; \
/<>/gcc/build/./gcc/xgcc -B/<>/gcc/build/./gcc/ 
-B/usr/powerpc-linux-gnu/bin/ -B/usr/powerp
c-linux-gnu/lib/ -isystem /usr/powerpc-linux-gnu/include -isystem 
/usr/powerpc-linux-gnu/sys-include -isystem /<>/gcc/build/sys-include-W -Wall -g -O2 -g -O2 -fexceptions -DIN_RTS 
-DHAVE_GETIPINFO   -S s-oscons-tmplt.i ; \
../bldtools/oscons/xoscons s-oscons)
In file included from 
/usr/powerpc-linux-gnu/include/bits/libc-header-start.h:33,
 from /usr/powerpc-linux-gnu/include/limits.h:26,
 from /<>/gcc/build/gcc/include-fixed/limits.h:194,
 from 
/<>/gcc/build/gcc/include-fixed/syslimits.h:7,
 from /<>/gcc/build/gcc/include-fixed/limits.h:34,
 from /<>/gcc/src/gcc/ada/gsocket.h:177,
 from /<>/gcc/src/gcc/ada/s-oscons-tmplt.c:103:
/usr/powerpc-linux-gnu/include/features.h:185:3: warning: #warning "_BSD_SOURCE 
and _SVID_SOURCE are deprecated, use _DEF
AULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~
/<>/gcc/src/gcc/ada/s-oscons-tmplt.c: In function 'main':
/<>/gcc/src/gcc/ada/s-oscons-tmplt.c:1256:46: error: 
'SO_SNDTIMEO_OLD' undeclared (first use in this function)
 CND(SO_SNDTIMEO, "Emission timeout")
  ^  
/<>/gcc/src/gcc/ada/s-oscons-tmplt.c:1256:46: note: each 
undeclared identifier is reported only once for each function it appears in
/<>/gcc/src/gcc/ada/s-oscons-tmplt.c:1261:46: error: 
'SO_RCVTIMEO_OLD' undeclared (first use in this function)
 CND(SO_RCVTIMEO, "Reception timeout")
  ^  
test -f rts/s-oscons.ads || exit 1

[...]

/<>/gcc/build/./gcc/xgcc -B/<>/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 /<
>/gcc/build/sys-include-c -g -O2   -W -Wall -gnatpg -nostdinc  -gnatn  
>a-direct.adb -o a-direct.o
checking for sinl... a-direct.adb:722:27: "NAME_MAX" is undefined
a-direct.adb:731:28: "SIZEOF_struct_dirent_alloc" is undefined
a-direct.adb:1099: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:137:01: (style) multiple blank lines
s-oscons.ads:156:01: (style) multiple blank lines
s-oscons.ads:163:01: (style) multiple blank lines
s-oscons.ads:166:01: (style) multiple blank lines
s-oscons.ads:171:01: (style) multiple blank lines
make[9]: *** [../gcc-interface/Makefile:296: a-direct.o] Error 1
make[9]: Leaving directory '/<>/gcc/build/gcc/ada/rts'
make[8]: *** [gcc-interface/Makefile:2451: gnatlib] Error 2

the mid-june build didn't complain about the missing O_SNDTIMEO_OLD and
SO_RCVTIMEO_OLD identifiers.

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

Title:
  ftbfs: gnat cross targeting powerpc on ppc64el

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2019-07-10 Thread Matthias Klose
not specific on the host, ftbfs on amd64 as well

** Summary changed:

- fftbfs: gnat cross targeting powerpc on ppc64el
+ ftbfs: gnat cross targeting powerpc on ppc64el

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

Title:
  ftbfs: gnat cross targeting powerpc on ppc64el

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs