Skip to content

Hopper compiler error : undefined reference to `__hopper_trace_cmp' #27

@redcrabs

Description

@redcrabs

I'm building libpng via Docker (To make sure that the install process of hopper is right) .

To build libpng with Hopper clang compiler :

CC=/hopper/install/hopper-clang CXX=/hopper/install/hopper-clang++ ./configure
and
make

But here's part of the error I'm getting :

/fuzz/contrib/tools/pngfix.c:652: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: contrib/tools/pngfix.o: in function `make_random_bytes':
/fuzz/contrib/tools/pngfix.c:439: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: contrib/tools/pngfix.o:/fuzz/contrib/tools/pngfix.c:1295: more undefined references to `__hopper_trace_cmp' follow
/usr/bin/ld: contrib/tools/pngfix.o: in function `calc_image_size':
/fuzz/contrib/tools/pngfix.c:1436: undefined reference to `__hopper_trace_switch'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:1429: undefined reference to `__hopper_trace_switch'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:1424: undefined reference to `__hopper_trace_switch'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:1443: undefined reference to `__hopper_trace_switch'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:1462: undefined reference to `__hopper_trace_switch'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:1473: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: contrib/tools/pngfix.o: in function `uarb_mult_digit':
/fuzz/contrib/tools/pngfix.c:270: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: contrib/tools/pngfix.o: in function `uarb_shift':
/fuzz/contrib/tools/pngfix.c:336: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: contrib/tools/pngfix.o: in function `uarb_inc':
/fuzz/contrib/tools/pngfix.c:205: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: contrib/tools/pngfix.o: in function `calc_image_size':
/fuzz/contrib/tools/pngfix.c:1491: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: contrib/tools/pngfix.o:/fuzz/contrib/tools/pngfix.c:272: more undefined references to `__hopper_trace_cmp' follow
/usr/bin/ld: contrib/tools/pngfix.o: in function `zlib_check':
/fuzz/contrib/tools/pngfix.c:2625: undefined reference to `__hopper_trace_switch'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2636: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: contrib/tools/pngfix.o: in function `max_window_bits':
/fuzz/contrib/tools/pngfix.c:2240: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2246: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2247: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2248: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: contrib/tools/pngfix.o:/fuzz/contrib/tools/pngfix.c:2249: more undefined references to `__hopper_trace_cmp' follow
/usr/bin/ld: contrib/tools/pngfix.o: in function `zlib_check':
/fuzz/contrib/tools/pngfix.c:2688: undefined reference to `__hopper_trace_switch'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2692: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2679: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2679: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2732: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2698: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: contrib/tools/pngfix.o:/fuzz/contrib/tools/pngfix.c:2510: more undefined references to `__hopper_trace_cmp' follow
/usr/bin/ld: contrib/tools/pngfix.o: in function `zlib_run':
/fuzz/contrib/tools/pngfix.c:2521: undefined reference to `__hopper_trace_switch'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2538: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2538: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2582: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: contrib/tools/pngfix.o: in function `zlib_end':
/fuzz/contrib/tools/pngfix.c:2090: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2097: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: contrib/tools/pngfix.o:/fuzz/contrib/tools/pngfix.c:(.text+0x131b6): more undefined references to `__hopper_trace_cmp' follow
/usr/bin/ld: contrib/tools/pngfix.o: in function `zlib_advance':
/fuzz/contrib/tools/pngfix.c:2286: undefined reference to `__hopper_trace_switch'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2303: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2368: undefined reference to `__hopper_trace_switch'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2319: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2324: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2301: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2279: undefined reference to `__hopper_trace_cmp'
/usr/bin/ld: /fuzz/contrib/tools/pngfix.c:2435: undefined reference to `__hopper_trace_cmp'

Any ideas on how to resolve the issue? Is this a known bug in Hopper?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions