Opened 6 years ago

Closed 6 years ago

#57804 closed defect (fixed)

exiv2: error: use of undeclared identifier '__builtin_sadd_overflow'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: lion Cc:
Port: exiv2

Description

exiv2 doesn't build on Lion:

/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:229:46: error: use of undeclared identifier '__builtin_sadd_overflow'; did you mean 'builtin_add_overflow'?
        SPECIALIZE_builtin_add_overflow(int, __builtin_sadd_overflow);
                                             ^~~~~~~~~~~~~~~~~~~~~~~
                                             builtin_add_overflow
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:226:16: note: expanded from macro 'SPECIALIZE_builtin_add_overflow'
        return builtin_name(summand_1, summand_2, &result);                               \
               ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:202:14: note: 'builtin_add_overflow' declared here
        bool builtin_add_overflow(T summand_1, T summand_2, T& result)
             ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:229:46: error: no matching function for call to 'builtin_add_overflow'
        SPECIALIZE_builtin_add_overflow(int, __builtin_sadd_overflow);
                                             ^~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:226:16: note: expanded from macro 'SPECIALIZE_builtin_add_overflow'
        return builtin_name(summand_1, summand_2, &result);                               \
               ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:202:14: note: candidate template ignored: deduced conflicting types for parameter 'T' ('int' vs. 'int *')
        bool builtin_add_overflow(T summand_1, T summand_2, T& result)
             ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:230:47: error: use of undeclared identifier '__builtin_saddl_overflow'; did you mean 'builtin_add_overflow'?
        SPECIALIZE_builtin_add_overflow(long, __builtin_saddl_overflow);
                                              ^~~~~~~~~~~~~~~~~~~~~~~~
                                              builtin_add_overflow
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:226:16: note: expanded from macro 'SPECIALIZE_builtin_add_overflow'
        return builtin_name(summand_1, summand_2, &result);                               \
               ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:202:14: note: 'builtin_add_overflow' declared here
        bool builtin_add_overflow(T summand_1, T summand_2, T& result)
             ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:230:47: error: no matching function for call to 'builtin_add_overflow'
        SPECIALIZE_builtin_add_overflow(long, __builtin_saddl_overflow);
                                              ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:226:16: note: expanded from macro 'SPECIALIZE_builtin_add_overflow'
        return builtin_name(summand_1, summand_2, &result);                               \
               ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:202:14: note: candidate template ignored: deduced conflicting types for parameter 'T' ('long' vs. 'long *')
        bool builtin_add_overflow(T summand_1, T summand_2, T& result)
             ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:231:52: error: use of undeclared identifier '__builtin_saddll_overflow'; did you mean 'builtin_add_overflow'?
        SPECIALIZE_builtin_add_overflow(long long, __builtin_saddll_overflow);
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
                                                   builtin_add_overflow
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:226:16: note: expanded from macro 'SPECIALIZE_builtin_add_overflow'
        return builtin_name(summand_1, summand_2, &result);                               \
               ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:202:14: note: 'builtin_add_overflow' declared here
        bool builtin_add_overflow(T summand_1, T summand_2, T& result)
             ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:231:52: error: no matching function for call to 'builtin_add_overflow'
        SPECIALIZE_builtin_add_overflow(long long, __builtin_saddll_overflow);
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:226:16: note: expanded from macro 'SPECIALIZE_builtin_add_overflow'
        return builtin_name(summand_1, summand_2, &result);                               \
               ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:202:14: note: candidate template ignored: deduced conflicting types for parameter 'T' ('long long' vs. 'long long *')
        bool builtin_add_overflow(T summand_1, T summand_2, T& result)
             ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:233:55: error: use of undeclared identifier '__builtin_uadd_overflow'; did you mean 'builtin_add_overflow'?
        SPECIALIZE_builtin_add_overflow(unsigned int, __builtin_uadd_overflow);
                                                      ^~~~~~~~~~~~~~~~~~~~~~~
                                                      builtin_add_overflow
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:226:16: note: expanded from macro 'SPECIALIZE_builtin_add_overflow'
        return builtin_name(summand_1, summand_2, &result);                               \
               ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:202:14: note: 'builtin_add_overflow' declared here
        bool builtin_add_overflow(T summand_1, T summand_2, T& result)
             ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:233:55: error: no matching function for call to 'builtin_add_overflow'
        SPECIALIZE_builtin_add_overflow(unsigned int, __builtin_uadd_overflow);
                                                      ^~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:226:16: note: expanded from macro 'SPECIALIZE_builtin_add_overflow'
        return builtin_name(summand_1, summand_2, &result);                               \
               ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:202:14: note: candidate template ignored: deduced conflicting types for parameter 'T' ('unsigned int' vs. 'unsigned int *')
        bool builtin_add_overflow(T summand_1, T summand_2, T& result)
             ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:234:56: error: use of undeclared identifier '__builtin_uaddl_overflow'; did you mean 'builtin_add_overflow'?
        SPECIALIZE_builtin_add_overflow(unsigned long, __builtin_uaddl_overflow);
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
                                                       builtin_add_overflow
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:226:16: note: expanded from macro 'SPECIALIZE_builtin_add_overflow'
        return builtin_name(summand_1, summand_2, &result);                               \
               ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:202:14: note: 'builtin_add_overflow' declared here
        bool builtin_add_overflow(T summand_1, T summand_2, T& result)
             ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:234:56: error: no matching function for call to 'builtin_add_overflow'
        SPECIALIZE_builtin_add_overflow(unsigned long, __builtin_uaddl_overflow);
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:226:16: note: expanded from macro 'SPECIALIZE_builtin_add_overflow'
        return builtin_name(summand_1, summand_2, &result);                               \
               ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:202:14: note: candidate template ignored: deduced conflicting types for parameter 'T' ('unsigned long' vs. 'unsigned long *')
        bool builtin_add_overflow(T summand_1, T summand_2, T& result)
             ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:235:61: error: use of undeclared identifier '__builtin_uaddll_overflow'; did you mean 'builtin_add_overflow'?
        SPECIALIZE_builtin_add_overflow(unsigned long long, __builtin_uaddll_overflow);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
                                                            builtin_add_overflow
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:226:16: note: expanded from macro 'SPECIALIZE_builtin_add_overflow'
        return builtin_name(summand_1, summand_2, &result);                               \
               ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:202:14: note: 'builtin_add_overflow' declared here
        bool builtin_add_overflow(T summand_1, T summand_2, T& result)
             ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:235:61: error: no matching function for call to 'builtin_add_overflow'
        SPECIALIZE_builtin_add_overflow(unsigned long long, __builtin_uaddll_overflow);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:226:16: note: expanded from macro 'SPECIALIZE_builtin_add_overflow'
        return builtin_name(summand_1, summand_2, &result);                               \
               ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_graphics_exiv2/exiv2/work/exiv2-0.27/src/safe_op.hpp:202:14: note: candidate template ignored: deduced conflicting types for parameter 'T' ('unsigned long long' vs. 'unsigned long long *')
        bool builtin_add_overflow(T summand_1, T summand_2, T& result)
             ^
12 errors generated.

Maybe this needs a newer version of clang.

Change History (1)

comment:1 Changed 6 years ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.