Opened 7 years ago

Closed 7 years ago

#56189 closed defect (fixed)

harfbuzz @1.7.6: Fails to compile with 32-bit long

Reported by: sideeffect42 (Dennis Camera) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: harfbuzz

Description

Harfbuzz 1.7.6 fails to build when long is only 32-bits long.

This has already been fixed upstream, but only after 1.7.6 was released: https://github.com/harfbuzz/harfbuzz/issues/901

Change History (4)

comment:1 Changed 7 years ago by sideeffect42 (Dennis Camera)

The error is:

/bin/sh ../libtool  --tag=CXX   --mode=compile ccache /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I..  -fno-exceptions -pthread -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng16     -I./hb-ucdn  -fno-threadsafe-statics -fno-rtti  -I/opt/local/include  -pipe -Os -arch ppc -arch ppc64 -Wcast-align -fvisibility-inlines-hidden -c -o libharfbuzz_la-hb-blob.lo `test -f 'hb-blob.cc' || echo './'`hb-blob.cc
/bin/sh ../libtool  --tag=CXX   --mode=compile ccache /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I..  -fno-exceptions -pthread -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng16     -I./hb-ucdn  -fno-threadsafe-statics -fno-rtti  -I/opt/local/include  -pipe -Os -arch ppc -arch ppc64 -Wcast-align -fvisibility-inlines-hidden -c -o libharfbuzz_la-hb-buffer-serialize.lo `test -f 'hb-buffer-serialize.cc' || echo './'`hb-buffer-serialize.cc
libtool: compile:  ccache /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -fno-exceptions -pthread -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I./hb-ucdn -fno-threadsafe-statics -fno-rtti -I/opt/local/include -pipe -Os -arch ppc -arch ppc64 -Wcast-align -fvisibility-inlines-hidden -c hb-blob.cc  -fno-common -DPIC -o .libs/libharfbuzz_la-hb-blob.o
libtool: compile:  ccache /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -fno-exceptions -pthread -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I./hb-ucdn -fno-threadsafe-statics -fno-rtti -I/opt/local/include -pipe -Os -arch ppc -arch ppc64 -Wcast-align -fvisibility-inlines-hidden -c hb-buffer-serialize.cc  -fno-common -DPIC -o .libs/libharfbuzz_la-hb-buffer-serialize.o
In file included from hb-blob.cc:32:
hb-private.hh:417: error: integer constant is too large for ?long? type
hb-private.hh:493: error: integer constant is too large for ?long? type
hb-private.hh:494: error: integer constant is too large for ?long? type
hb-private.hh:495: error: integer constant is too large for ?long? type
hb-private.hh:496: error: integer constant is too large for ?long? type
hb-private.hh:497: error: integer constant is too large for ?long? type
fatal error: lipo: can't open input file: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_harfbuzz/harfbuzz/work/.tmp/cc3pBlgR.out (No such file or directory)
make[4]: *** [libharfbuzz_la-hb-blob.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from hb-buffer-private.hh:33,
                 from hb-buffer-serialize.cc:27:
hb-private.hh:417: error: integer constant is too large for ?long? type
hb-private.hh:493: error: integer constant is too large for ?long? type
hb-private.hh:494: error: integer constant is too large for ?long? type
hb-private.hh:495: error: integer constant is too large for ?long? type
hb-private.hh:496: error: integer constant is too large for ?long? type
hb-private.hh:497: error: integer constant is too large for ?long? type
fatal error: lipo: can't open input file: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_harfbuzz/harfbuzz/work/.tmp/ccWTf0Nw.out (No such file or directory)
make[4]: *** [libharfbuzz_la-hb-buffer-serialize.lo] Error 1
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_harfbuzz/harfbuzz/work/harfbuzz-1.7.6/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_harfbuzz/harfbuzz/work/harfbuzz-1.7.6/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_harfbuzz/harfbuzz/work/harfbuzz-1.7.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_harfbuzz/harfbuzz/work/harfbuzz-1.7.6'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_harfbuzz/harfbuzz/work/harfbuzz-1.7.6'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_harfbuzz/harfbuzz/work/harfbuzz-1.7.6" && /usr/bin/make -j2 -w all
Exit code: 2
Error: Failed to build harfbuzz: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_harfbuzz/harfbuzz/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

comment:2 Changed 7 years ago by mf2k (Frank Schima)

Cc: ryandesign removed
Owner: set to ryandesign
Status: newassigned

comment:3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Status: assignedaccepted

Thanks for reminding me! I saw this failure on the buildbot and then completely forgot about it...

comment:4 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 844d4b96230957c70e97303395f8a3f597dee688/macports-ports:

harfbuzz: Fix build on 32-bit systems

Closes: #56189

Note: See TracTickets for help on using tickets.