Issues with dtraceasm, and a workaround
Henri Tremblay
henri.tremblay at gmail.com
Tue Mar 2 22:46:48 UTC 2021
Same gcc as you. But different clang
---
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
---
I tried without the explicit configure at first. Same result. I have stuff
in the build directory but the make fails when launched from there.
On Tue, 2 Mar 2021 at 12:51, Paul Sandoz <paul.sandoz at oracle.com> wrote:
>
>
> On Mar 1, 2021, at 7:41 PM, Henri Tremblay <henri.tremblay at gmail.com>
> wrote:
>
> Mysterious... I tried again to compile. Still failing.
>
> I'm not sure I understand this command:
> make BINUTILS=<D>/binutils-2.31.1 ARCH=amd64
>
>
> Above is the command I typed, below is the start of it's output.
>
> What version of GCC are you using? (Output from gcc -v)
>
>
> (cd build/macosx-amd64; CC=gcc CFLAGS=" -fPIC -O" AR="ar"
> /Users/sandoz/Projects/jdk/binutils/binutils-2.31.1/configure --disable-nls
> )
>
> So far I did the following:
> git clone git at github.com:openjdk/jdk.git
> cd jdk
> bash configure
> cd src/utils/hsdis
> wget https://ftp.gnu.org/gnu/binutils/binutils-2.31.1.tar.gz
> <https://urldefense.com/v3/__https://ftp.gnu.org/gnu/binutils/binutils-2.31.1.tar.gz__;!!GqivPVa7Brio!PKdYEb9HI5dfP1FthXpFtihSN98joZEzIdCItjakErRw8kthHlGv2XWQG6xRmkW6AA$>
> tar xvf binutils-2.31.1.tar.gz
> cd binutils-2.31.1
> ./configure
>
>
> When you make hsdis it should configure and build binutils, perhaps
> configuring differently? So perhaps clean/remove the binutils configuration
> and try again without the explicit “./configure”.
>
> Paul.
>
> cd ..
> make BINUTILS=binutils-2.31.1 ARCH=amd64
> CFLAGS="-Wno-error=logical-not-parentheses -Wno-error=string-plus-int
> -fbracket-depth=512"
>
> I also tried without the CFLAGS and with binutils-2.36. Whatever I do, I
> still get
>
> gcc -c -DHAVE_CONFIG_H -fPIC -O -I/usr/local/opt/ruby/include
> -I/../jdk/src/utils/hsdis/binutils-2.36/include
> -I/.../jdk/src/utils/hsdis/binutils-2.36/bfd -Ibuild/macosx-amd64/bfd
> -DLIBARCH_amd64 -DLIBARCH=\"amd64\" -DLIB_EXT=\".dylib\" -I.
> -I/.../heinz/jdk/src/utils/hsdis/binutils-2.36/libiberty/../include -W
> -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local
> -pedantic -D_GNU_SOURCE
> /.../jdk/src/utils/hsdis/binutils-2.36/libiberty/fibheap.c -o fibheap.o
> warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option]
> /.../jdk/src/utils/hsdis/binutils-2.36/libiberty/fibheap.c:220:30: error:
> use of undeclared identifier 'LONG_MIN'
> if (okey == key && okey != FIBHEAPKEY_MIN)
> ^
> /..../jdk/src/utils/hsdis/binutils-2.36/libiberty/fibheap.c:38:24: note:
> expanded from macro 'FIBHEAPKEY_MIN'
> #define FIBHEAPKEY_MIN LONG_MIN
> ^
> /.../jdk/src/utils/hsdis/binutils-2.36/libiberty/fibheap.c:261:36: error:
> use of undeclared identifier 'LONG_MIN'
> fibheap_replace_key (heap, node, FIBHEAPKEY_MIN);
> ^
> /.../jdk/src/utils/hsdis/binutils-2.36/libiberty/fibheap.c:38:24: note:
> expanded from macro 'FIBHEAPKEY_MIN'
> #define FIBHEAPKEY_MIN LONG_MIN
> ^
> 1 warning and 2 errors generated.
> make[2]: *** [fibheap.o] Error 1
> make[1]: *** [all-libiberty] Error 2
> make: *** [build/macosx-amd64/bfd/libbfd.a] Error 2
>
>
>
>
More information about the jmh-dev
mailing list