tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

c++ undefined symbols in lang/openjdk11



While rebuilding packages on the new stable branch (2019Q4, pkg_comp1,
8.1/amd64, with these settings to use gcc 7

PKGSRC_COMPILER=        gcc
GCC_REQD+=              7
USE_PKGSRC_GCC=         yes
USE_PKGSRC_GCC_RUNTIME= yes

), I got this failure:


ERROR: Build failed for target 'default (product-images)' in configuration 'bsd-x86_64-normal-server-release' (exit code 2) 

=== Output from failing command(s) repeated here ===
* For target support_native_java.desktop_libfontmanager_hb-blob.o:
In file included from /usr/pkg/gcc7/include/c++/math.h:36:0,
                 from /pkg_comp/obj/pkgsrc/lang/openjdk11/default/openjdk-jdk11u-jdk-11.0.5-10-1/src/java.desktop/share/native/libfontmanager/harfbuzz/hb.hh:171,
                 from /pkg_comp/obj/pkgsrc/lang/openjdk11/default/openjdk-jdk11u-jdk-11.0.5-10-1/src/java.desktop/share/native/libfontmanager/harfbuzz/hb-blob.cc:40:
/usr/pkg/gcc7/include/c++/cmath:1084:11: error: '::acosh' has not been declared
   using ::acosh;
           ^~~~~
/usr/pkg/gcc7/include/c++/cmath:1088:11: error: '::asinh' has not been declared
   using ::asinh;
           ^~~~~
/usr/pkg/gcc7/include/c++/cmath:1092:11: error: '::atanh' has not been declared
   using ::atanh;
           ^~~~~
/usr/pkg/gcc7/include/c++/cmath:1096:11: error: '::cbrt' has not been declared
   using ::cbrt;
           ^~~~
   ... (rest of output omitted)
(( they are similar anyway ))

* All command lines available in /pkg_comp/obj/pkgsrc/lang/openjdk11/default/openjdk-jdk11u-jdk-11.0.5-10-1/build/bsd-x86_64-normal-server-release/make-support/failure-logs.
=== End of repeated output ===

No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.

gmake[1]: *** [/pkg_comp/obj/pkgsrc/lang/openjdk11/default/openjdk-jdk11u-jdk-11.0.5-10-1/make/Init.gmk:305: main] Error 2
gmake: *** [/pkg_comp/obj/pkgsrc/lang/openjdk11/default/openjdk-jdk11u-jdk-11.0.5-10-1/make/Init.gmk:186: default] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/lang/openjdk11
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/openjdk11


I just wanted to report the problem quickly, but I'm looking into it
right now.

Seeing the name harfbuzz, shouldn't it be using the pkgsrc package for
that?
Seeing references to asinh etc, that are math symbols, I think it's
weird that a math header refers to math names that it doesn't seem to
declare...

-Olaf.
-- 
Olaf 'Rhialto' Seibert -- rhialto at falu dot nl
___  Anyone who is capable of getting themselves made President should on
\X/  no account be allowed to do the job.       --Douglas Adams, "THGTTG"

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index