Issues with dtraceasm, and a workaround

Henri Tremblay henri.tremblay at gmail.com
Tue Mar 2 03:41:10 UTC 2021


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
(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
tar xvf binutils-2.31.1.tar.gz
cd binutils-2.31.1
./configure
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