-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Labels
Description
Upgrading the build system to harfbuz 8.4.0, the latest supported by MSYS2, is hitting the issues below despite cairo being disabled.
Full configure and build logs are attached.
If anyone has ideas then please let me know.
Points to note:
- I have added
-Wa,-mbig-objto the CFLAGS and CXXFLAGS to get past a size issue. - The build is still using autotools. Harfbuz has moved to meson as its supported build system.
- freetype is at version 2.13.2 (also latest MSYS2, poss not relevant to this error).
- The gcc is 13.2 UCRT with MCF threads from winlibs. https://github.com/brechtsanders/winlibs_mingw/releases/download/13.2.0mcf-11.0.1-ucrt-r3/winlibs-x86_64-mcf-seh-gcc-13.2.0-mingw-w64ucrt-11.0.1-r3.7z
./configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/z/extlib/_bharf__ --disable-dependency-tracking --enable-static=no --enable-shared=yes --with-graphite2=auto --with-freetype=auto --with-cairo=no --with-chafa=no CFLAGS="-O2 -I/z/extlib/_bharf__/include -mms-bitfields -pthread -Wa,-mbig-obj" CXXFLAGS="-pthread -Wa,-mbig-obj" LDFLAGS="-L/z/extlib/_bharf__/lib"Extract from the build log:
GEN harfbuzz-subset.def
GEN libharfbuzz-subset.la
CXX libharfbuzz_cairo_la-hb-cairo.lo
CXX libharfbuzz_cairo_la-hb-cairo-utils.lo
CXX libharfbuzz_cairo_la-hb-static.lo
GEN harfbuzz-cairo.def
GEN libharfbuzz-cairo.la
C:/spbuild/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export hb_
cairo_font_face_create_for_face: symbol not defined
C:/spbuild/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export hb_
cairo_font_face_create_for_font: symbol not defined
C:/spbuild/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export hb_
cairo_font_face_get_face: symbol not defined
C:/spbuild/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export hb_
cairo_font_face_get_font: symbol not defined
C:/spbuild/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export hb_
cairo_font_face_get_scale_factor: symbol not defined
C:/spbuild/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export hb_
cairo_font_face_set_font_init_func: symbol not defined
C:/spbuild/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export hb_
cairo_font_face_set_scale_factor: symbol not defined
C:/spbuild/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export hb_
cairo_glyphs_from_buffer: symbol not defined
C:/spbuild/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export hb_
cairo_scaled_font_get_font: symbol not defined
collect2.exe: error: ld returned 1 exit status
make[4]: *** [Makefile:2206: libharfbuzz-cairo.la] Error 1
make[4]: Leaving directory '/z/extlib/_bharf__.src/harfbuzz-8.4.0/src'
make[3]: *** [Makefile:3953: all-recursive] Error 1
make[3]: Leaving directory '/z/extlib/_bharf__.src/harfbuzz-8.4.0/src'
make[2]: *** [Makefile:2050: all] Error 2
make[2]: Leaving directory '/z/extlib/_bharf__.src/harfbuzz-8.4.0/src'
make[1]: *** [Makefile:530: all-recursive] Error 1
make[1]: Leaving directory '/z/extlib/_bharf__.src/harfbuzz-8.4.0'