RFR: 8242244: Remove redundant ELF machine definitions
Dmitry Chuyko
dmitry.chuyko at bell-sw.com
Tue Apr 28 14:05:47 UTC 2020
Yes, our builds work after this fix.
-Dmitry
On 4/28/20 1:41 PM, John Paul Adrian Glaubitz wrote:
> Hi Dmitry!
>
> On 4/28/20 12:33 PM, Dmitry Chuyko wrote:
>> * 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?
> Ao already found a potential fix:
>
> diff -r 7205265660b2 src/hotspot/os/linux/os_linux.cpp
> --- a/src/hotspot/os/linux/os_linux.cpp Tue Apr 28 05:53:19 2020 -0400
> +++ b/src/hotspot/os/linux/os_linux.cpp Tue Apr 28 18:24:45 2020 +0800
> @@ -110,6 +110,7 @@
> # include <stdint.h>
> # include <inttypes.h>
> # include <sys/ioctl.h>
> +# include <linux/elf-em.h>
>
> #ifndef _GNU_SOURCE
> #define _GNU_SOURCE
>
> Could you try whether this addresses your problem?
>
> Thanks,
> Adrian
>
More information about the hotspot-dev
mailing list