[MacPorts] #74379: graphite2 @1.3.14 does nor build on PPC Mac OS X 10.5.8, Leopard, because of not #including <cstdint>?
MacPorts
noreply at macports.org
Sat Aug 29 16:45:12 UTC 2026
#74379: graphite2 @1.3.14 does nor build on PPC Mac OS X 10.5.8, Leopard, because
of not #including <cstdint>?
-------------------------+-----------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.12.5
Keywords: ppc leopard | Port: graphite2
-------------------------+-----------------------
{{{
/usr/bin/make -f
tests/featuremap/CMakeFiles/featuremaptest.dir/build.make
tests/featuremap/CMakeFiles/featuremaptest.dir/build
make[2]: Entering directory
`/opt/local/var/macports/build/graphite2-6c8ae19b/work/build'
[ 75%] Building CXX object
tests/featuremap/CMakeFiles/featuremaptest.dir/featuremaptest.cpp.o
cd
/opt/local/var/macports/build/graphite2-6c8ae19b/work/build/tests/featuremap
&& /opt/local/bin/g++-mp-15
-I/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/include
-I/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/src
-pipe -Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0
-std=gnu++11 -arch ppc -mmacosx-version-min=10.5 -MD -MT
tests/featuremap/CMakeFiles/featuremaptest.dir/featuremaptest.cpp.o -MF
CMakeFiles/featuremaptest.dir/featuremaptest.cpp.o.d -o
CMakeFiles/featuremaptest.dir/featuremaptest.cpp.o -c
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:49:15:
error: 'uint8_t' was not declared in this scope
49 | std::vector<uint8_t> _ttf;
| ^~~~~~~
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:35:1:
note: 'uint8_t' is defined in header '<cstdint>'; this is probably fixable
by adding '#include <cstdint>'
34 | #include "inc/Face.h"
+++ |+#include <cstdint>
35 | #include "inc/FeatureMap.h"
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:49:22:
error: template argument 1 is invalid
49 | std::vector<uint8_t> _ttf;
| ^
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:49:22:
error: template argument 2 is invalid
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:
In static member function 'static int face_handle::buffer_from_file(const
std::string&)':
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:60:12:
error: request for member 'assign' in 'result', which is of non-class type
'int'
60 | result.assign(std::istreambuf_iterator<char>(f),
| ^~~~~~
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:
In constructor 'face_handle::face_handle(const std::string&)':
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:80:27:
error: request for member 'size' in
'((face_handle*)this)->face_handle::_ttf', which is of non-class type
'int'
80 | || tbl_len > _ttf.size()
| ^~~~
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:81:30:
error: request for member 'size' in
'((face_handle*)this)->face_handle::_ttf', which is of non-class type
'int'
81 | || tbl_offset > _ttf.size() - tbl_len
| ^~~~
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:82:53:
error: request for member 'data' in
'((face_handle*)this)->face_handle::_ttf', which is of non-class type
'int'
82 | || !TtfUtil::CheckHeader(_header_tbl = _ttf.data() +
tbl_offset))
| ^~~~
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:87:27:
error: request for member 'size' in
'((face_handle*)this)->face_handle::_ttf', which is of non-class type
'int'
87 | || tbl_len > _ttf.size()
| ^~~~
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:88:30:
error: request for member 'size' in
'((face_handle*)this)->face_handle::_ttf', which is of non-class type
'int'
88 | || tbl_offset > _ttf.size() - tbl_len)
| ^~~~
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:90:23:
error: request for member 'data' in
'((face_handle*)this)->face_handle::_ttf', which is of non-class type
'int'
90 | _table_dir = _ttf.data() + tbl_offset;
| ^~~~
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:
In member function 'const face_handle::table_t&
face_handle::operator[](graphite2::TtfUtil::Tag) const':
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:110:25:
error: request for member 'data' in '((const
face_handle*)this)->face_handle::_ttf', which is of non-class type 'const
int'
110 | table = {_ttf.data() + tbl_offset, tbl_len};
| ^~~~
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:110:53:
error: no match for 'operator=' (operand types are 'std::pair<const void*,
long unsigned int>' and '<brace-enclosed initializer list>')
110 | table = {_ttf.data() + tbl_offset, tbl_len};
| ^
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:110:53:
note: there are 4 candidates
In file included from /opt/local/include/gcc15/c++/bits/stl_algobase.h:64,
from /opt/local/include/gcc15/c++/string:53,
from
/opt/local/include/gcc15/c++/bits/locale_classes.h:42,
from /opt/local/include/gcc15/c++/bits/ios_base.h:43,
from /opt/local/include/gcc15/c++/ios:46,
from /opt/local/include/gcc15/c++/istream:42,
from /opt/local/include/gcc15/c++/fstream:42,
from
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:24:
/opt/local/include/gcc15/c++/bits/stl_pair.h:966:9: note: candidate 1:
'template<class _U1, class _U2> typename
std::enable_if<std::__and_<std::is_assignable<_T1&, const _U1&>,
std::is_assignable<_T2&, const _U2&> >::value, std::pair<_T1, _T2>&>::type
std::pair<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U2 =
_U1; _T1 = const void*; _T2 = long unsigned int]'
966 | operator=(const pair<_U1, _U2>& __p)
| ^~~~~~~~
/opt/local/include/gcc15/c++/bits/stl_pair.h:966:9: note: template
argument deduction/substitution failed:
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:110:53:
note: couldn't deduce template parameter '_U1'
110 | table = {_ttf.data() + tbl_offset, tbl_len};
| ^
/opt/local/include/gcc15/c++/bits/stl_pair.h:977:9: note: candidate 2:
'template<class _U1, class _U2> typename
std::enable_if<std::__and_<std::is_assignable<_T1&, _U1&&>,
std::is_assignable<_T2&, _U2&&> >::value, std::pair<_T1, _T2>&>::type
std::pair<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U2 = _U1; _T1
= const void*; _T2 = long unsigned int]'
977 | operator=(pair<_U1, _U2>&& __p)
| ^~~~~~~~
/opt/local/include/gcc15/c++/bits/stl_pair.h:977:9: note: template
argument deduction/substitution failed:
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:110:53:
note: couldn't deduce template parameter '_U1'
110 | table = {_ttf.data() + tbl_offset, tbl_len};
| ^
/opt/local/include/gcc15/c++/bits/stl_pair.h:941:7: note: candidate 3:
'std::pair<_T1, _T2>& std::pair<_T1,
_T2>::operator=(std::__conditional_t<((bool)std::__and_<std::is_copy_assignable<_T1>,
std::is_copy_assignable<_T2> >::value), const std::pair<_T1, _T2>&, const
std::__nonesuch&>) [with _T1 = const void*; _T2 = long unsigned int;
std::__conditional_t<((bool)std::__and_<std::is_copy_assignable<_T1>,
std::is_copy_assignable<_T2> >::value), const std::pair<_T1, _T2>&, const
std::__nonesuch&> = const std::pair<const void*, long unsigned int>&]'
941 | operator=(__conditional_t<__and_<is_copy_assignable<_T1>,
| ^~~~~~~~
/opt/local/include/gcc15/c++/bits/stl_pair.h:943:65: note: no known
conversion for argument 1 from '<brace-enclosed initializer list>' to
'std::__conditional_t<true, const std::pair<const void*, long unsigned
int>&, const std::__nonesuch&>' {aka 'const std::pair<const void*, long
unsigned int>&'}
941 | operator=(__conditional_t<__and_<is_copy_assignable<_T1>,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
942 |
is_copy_assignable<_T2>>::value,
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
943 | const pair&, const __nonesuch&>
__p)
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/opt/local/include/gcc15/c++/bits/stl_pair.h:951:7: note: candidate 4:
'std::pair<_T1, _T2>& std::pair<_T1,
_T2>::operator=(std::__conditional_t<((bool)std::__and_<std::is_move_assignable<_Tp>,
std::is_move_assignable<_T2> >::value), std::pair<_T1, _T2>&&,
std::__nonesuch&&>) [with _T1 = const void*; _T2 = long unsigned int;
std::__conditional_t<((bool)std::__and_<std::is_move_assignable<_Tp>,
std::is_move_assignable<_T2> >::value), std::pair<_T1, _T2>&&,
std::__nonesuch&&> = std::pair<const void*, long unsigned int>&&]'
951 | operator=(__conditional_t<__and_<is_move_assignable<_T1>,
| ^~~~~~~~
/opt/local/include/gcc15/c++/bits/stl_pair.h:953:55: note: no known
conversion for argument 1 from '<brace-enclosed initializer list>' to
'std::__conditional_t<true, std::pair<const void*, long unsigned int>&&,
std::__nonesuch&&>' {aka 'std::pair<const void*, long unsigned int>&&'}
951 | operator=(__conditional_t<__and_<is_move_assignable<_T1>,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
952 |
is_move_assignable<_T2>>::value,
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
953 | pair&&, __nonesuch&&> __p)
| ~~~~~~~~~~~~~~~~~~~~~~^~~
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:
In function 'void testFeatTable(const T&, const std::string&)':
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:310:14:
error: 'uint16_t' was not declared in this scope [-Wtemplate-body]
310 | for (uint16_t j = 0; j <
table.m_defs[i].m_numFeatSettings; j++)
| ^~~~~~~~
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:310:14:
note: 'uint16_t' is defined in header '<cstdint>'; this is probably
fixable by adding '#include <cstdint>'
/opt/local/var/macports/build/graphite2-6c8ae19b/work/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:310:30:
error: 'j' was not declared in this scope [-Wtemplate-body]
310 | for (uint16_t j = 0; j <
table.m_defs[i].m_numFeatSettings; j++)
| ^
make[2]: ***
[tests/featuremap/CMakeFiles/featuremaptest.dir/featuremaptest.cpp.o]
Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/graphite2-6c8ae19b/work/build'
make[1]: *** [tests/featuremap/CMakeFiles/featuremaptest.dir/all] Error 2
make[1]: Leaving directory
`/opt/local/var/macports/build/graphite2-6c8ae19b/work/build'
make: *** [all] Error 2
make: Leaving directory
`/opt/local/var/macports/build/graphite2-6c8ae19b/work/build'
}}}
--
Ticket URL: <https://trac.macports.org/ticket/74379>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list