[patterns] Pattern matching
Remi Forax
forax at univ-mlv.fr
Fri Jun 30 20:58:50 UTC 2017
Hi Mark,
Hi Mark,
recent version of gcc (6 ?) has deprecated the use of readdir_r,
but given that it's just a warning, you can use:
bash configure --disable-warnings-as-errors
to build the repository.
regards,
Rémi
----- Mail original -----
> De: "org openjdk" <org.openjdk at io7m.com>
> À: amber-dev at openjdk.java.net
> Envoyé: Vendredi 30 Juin 2017 22:44:46
> Objet: Re: [patterns] Pattern matching
> On 2017-06-30T17:07:50 +0100
> Gavin Bierman <gavin.bierman at oracle.com> wrote:
>
>> Hi all,
>>
>> The initial support for pattern matching, as proposed in JEP 305 [1],
>> has been pushed to the Amber repo. A longer discussion of this feature
>> can be found here [2].
>
> Hello!
>
> I'm unable to get the repos to build. The error encountered:
>
> /home/someone/hg/amber/hotspot/src/os/linux/vm/os_linux.inline.hpp:109:42:
> error: ‘int readdir_r(DIR*, dirent*, dirent**)’ is deprecated
> [-Werror=deprecated-declarations] if((status = ::readdir_r(dirp, dbuf,
> &p)) != 0) { ^ In file included
> from /home/someone/hg/amber/hotspot/src/os/linux/vm/jvm_linux.h:44:0,
> from /home/someone/hg/amber/hotspot/src/share/vm/prims/jvm.h:31,
> from /home/someone/hg/amber/hotspot/src/share/vm/utilities/debug.hpp:29,
> from /home/someone/hg/amber/hotspot/src/share/vm/runtime/globals.hpp:28,
> from /home/someone/hg/amber/hotspot/src/share/vm/memory/allocation.hpp:28,
> from /home/someone/hg/amber/hotspot/src/share/vm/memory/iterator.hpp:28,
> from /home/someone/hg/amber/hotspot/src/share/vm/oops/oop.hpp:29,
> from /home/someone/hg/amber/hotspot/src/share/vm/runtime/handles.hpp:28,
> from /home/someone/hg/amber/hotspot/src/share/vm/memory/universe.hpp:28,
> from /home/someone/hg/amber/hotspot/src/share/vm/code/oopRecorder.hpp:28,
> from /home/someone/hg/amber/hotspot/src/share/vm/asm/codeBuffer.hpp:28,
> from /home/someone/hg/amber/hotspot/src/share/vm/asm/assembler.hpp:28,
> from /home/someone/hg/amber/hotspot/src/share/vm/precompiled/precompiled.hpp:29:
> /usr/include/dirent.h:183:12:
> note: declared here extern int readdir_r (DIR *__restrict __dirp,
> ^~~~~~~~~
>
> $ hg log -l 1
> changeset: 2831:fdecf272d639
> branch: patterns
> tag: tip
> parent: 2823:1fd5901544ac
> user: gbierman
> date: Fri Jun 30 16:35:59 2017 +0100
> summary: Initial changes for patterns branch
>
> $ uname -a
> Linux copperhead 4.10.13-1-ARCH #1 SMP PREEMPT Thu Apr 27 12:15:09 CEST
> 2017 x86_64 GNU/Linux
>
> $ java -version
> openjdk version "1.8.0_121"
> OpenJDK Runtime Environment (build 1.8.0_121-b13)
> OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
>
> $ gcc --version
> gcc (GCC) 6.3.1 20170306
> Copyright (C) 2016 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is
> NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> Please let me know if there's any more information I can give. This is
> actually the first time I've compiled OpenJDK from a repos.
>
> M
More information about the amber-dev
mailing list