RFR: 8242244: Remove redundant ELF machine definitions

Ao Qi aoqi at loongson.cn
Tue Apr 28 10:44:30 UTC 2020


I filed a bug: https://bugs.openjdk.java.net/browse/JDK-8243997

On Tue, Apr 28, 2020 at 6:33 PM Dmitry Chuyko <dmitry.chuyko at bell-sw.com> wrote:
>
> Hello,
>
> Sorry for being late.
>
> I have following error during the build of 15 tip:
>
> * For target hotspot_variant-server_libjvm_objs_os_linux.o:
> jdk/src/hotspot/os/linux/os_linux.cpp: In static member function 'static
> void* os::dll_load(const char*, char*, int)':
> jdk/src/hotspot/os/linux/os_linux.cpp:1854:6: error: 'EM_486' was not
> declared in this scope
>       {EM_486,         EM_386,     ELFCLASS32, ELFDATA2LSB, (char*)"IA 32"},
>        ^~~~~~
> jdk/src/hotspot/os/linux/os_linux.cpp:1854:6: note: suggested
> alternative: 'EM_386'
>       {EM_486,         EM_386,     ELFCLASS32, ELFDATA2LSB, (char*)"IA 32"},
>        ^~~~~~
>        EM_386
>
> It happens on CenOS 8 and Ubuntu 20.04 (kernel headers installed),
> aarch64 and amd64.
>
> Is any additional configuration expected?
>
> -Dmitry
>
> On 4/28/20 2:48 AM, John Paul Adrian Glaubitz wrote:
> > Hi David!
> >
> > On 4/28/20 12:53 AM, David Holmes wrote:
> >> Apologies as I just spotted this in my mail backlog.
> > No worries ;).
> >
> >> This seems fine and trivial.
> > Thanks. I post a rebased version tomorrow - necessary because I added
> > the definition for EM_RISCV to make sure we don't run into build issues
> > with slightly older kernels has EM_RISCV hasn't been defined in the
> > kernel for too long yet.
> >
> > Adrian
> >



More information about the hotspot-dev mailing list