Re: RFR (S) 8208665: Amend cross-compilation docs with qemu-debootstrap recipe

2018-08-14 Thread John Paul Adrian Glaubitz
Hi Aleksey!

On 08/13/2018 12:26 PM, Aleksey Shipilev wrote:
> This is the recipe I have been using for creating artifacts on my personal CI 
> server [1], and it
> seems to work reliably starting from jdk11. It is partially applicable for 
> building jdk{8,9,10}, but
> freetype and friends still need to be pointed out explicitly there. 
> Nevertheless, this seems to be
> the most straightforward way to cross-compile to foreign architectures if 
> there are no devkit
> bundles available.

Thanks for this. This is actually a clever idea and should also work with
Debian Ports, i.e. the non-release architectures in Debian such as sparc64,
m68k and sh4.

For Debian Ports, there is only sid/unstable though and the FTP server is
a different one. Also, you need to include the package 
debian-ports-archive-keyring:

+  sudo qemu-debootstrap --arch=m68k --verbose \
+
--include=fakeroot,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype6-dev,libpng12-dev,debian-ports-archive-keyring
\
+   --resolve-deps sid /chroots/m68k 
http://ftp.ports.debian.org/debian-ports/

I should give this a shot and if it works, it might be a good idea to add
the instructions for Debian Ports as well. Since I have some more patches
for m68k and co in the pipeline, I can actually test it for that ;-).

With current versions of qemu (either from git or Debian unstable), you should
even be able to build OpenJDK natively inside the emulated chroot. In Debian
Ports, we're heavily making use of qemu-user and qemu-system (for riscv64) to
build packages which hashelped finding and fixing tons of bugs in qemu (I have
alone reported countless bugs ;-)).

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Re: [8] RFR (S) 8033251: Use DWARF debug symbols for Linux 32-bit as default

2018-08-14 Thread Tim Bell

Buck:


May I please get a review of this simple backport to replace stabs with
DWARF for 32-bit Linux builds. This is needed as newer toolchains no
longer support stabs.

bug report:
https://bugs.openjdk.java.net/browse/JDK-8033251

JDK 9 changeset:
http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/2750fb4ad9ac

JDK 8 webrev for review:
http://cr.openjdk.java.net/~dbuck/8033251.0/


Looks good.  Your changes are in line with what JDK 9 did, only a bit 
more specific to the ARCH that is building.


In JDK 9 I see a check for $(FASTDEBUG_CFLAGS/$(BUILDARCH) but setting:
   FASTDEBUG_CFLAGS += -g

In JDK 8 you check $(FASTDEBUG_CFLAGS/$(BUILDARCH)) and set:
   FASTDEBUG_CFLAGS/$(BUILDARCH) = -g

and the same for $(OPT_CFLAGS/$(BUILDARCH)

Tim



[8] RFR (S) 8033251: Use DWARF debug symbols for Linux 32-bit as default

2018-08-14 Thread David Buck

Hi!

May I please get a review of this simple backport to replace stabs with 
DWARF for 32-bit Linux builds. This is needed as newer toolchains no 
longer support stabs.


bug report:
https://bugs.openjdk.java.net/browse/JDK-8033251

JDK 9 changeset:
http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/2750fb4ad9ac

JDK 8 webrev for review:
http://cr.openjdk.java.net/~dbuck/8033251.0/

Cheers,
-Buck