[oi-dev] Building openjdk-8-162 with gcc-6 on SPARC
Gary Mills
gary_mills at fastmail.fm
Sun Jan 12 23:31:20 UTC 2020
On Sun, Jan 12, 2020 at 05:00:10PM +0100, Michal Nowak via oi-dev wrote:
>
> Does building with lesser optimization level than the present one make the
> problem go away? Look for 'gcc_OPT' in make-rules/shared-macros.mk and use
> it in the component's Makefile.
That was one of the things I want to do to investigate further, but I
want to be more selective, perhaps compiling only that file without
optimization. I'm still looking for a way to accomplish that.
I did get a warning from that file. This is from the build log:
Compiling /.../build/sparcv9/hotspot/src/os_cpu/solaris_sparc/vm/os_solaris_sparc.cpp
cc1plus: warning: command line option '-std=gnu90' is valid for C/ObjC but not for C++
...
/.../build/sparcv9/hotspot/src/os_cpu/solaris_sparc/vm/os_solaris_sparc.cpp:
In static member function 'static u_char*
os::current_stack_pointer()':
/.../build/sparcv9/hotspot/src/os_cpu/solaris_sparc/vm/os_solaris_sparc.cpp:258:10:
warning: function returns address of local variable
[-Wreturn-local-addr]
return sp;
^~
/.../build/sparcv9/hotspot/src/os_cpu/solaris_sparc/vm/os_solaris_sparc.cpp:256:16:
note: declared here
volatile int dummy;
^~~~~
Of course, the warning may not mean that the compiler misinterpreted
the code. The real problem may even be someplace else.
--
-Gary Mills- -refurb- -Winnipeg, Manitoba, Canada-
More information about the oi-dev
mailing list