clang: error: linker command failed with exit code 1

756 views
Skip to first unread message

miki...@gmail.com

unread,
Feb 9, 2018, 2:49:06 AM2/9/18
to afl-users
Hey all i am trying to instrument transmissionbt but it seem when I run make I get this error. Can anyone help me compile this binary?

==== Output in Debug Mode ====
[ 53%] Linking CXX executable transmission-qt
Reaping winning child 0x12fe0a0 PID 26328 
Live child 0x12fe0a0 (qt/transmission-qt) PID 26330 
afl-clang-fast 2.52b by <lsze...@google.com>
/usr/bin/ld: __afl_prev_loc: TLS reference in CMakeFiles/transmission-qt.dir/AboutDialog.cc.o mismatches non-TLS reference in ../libtransmission/libtransmission.a(announcer.c.o)
../libtransmission/libtransmission.a: error adding symbols: Bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Reaping losing child 0x12fe0a0 PID 26330 
qt/CMakeFiles/transmission-qt.dir/build.make:1439: recipe for target 'qt/transmission-qt' failed
make[2]: *** [qt/transmission-qt] Error 1
Removing child 0x12fe0a0 PID 26330 from chain.
Reaping losing child 0x86a458 PID 26327 
CMakeFiles/Makefile2:2350: recipe for target 'qt/CMakeFiles/transmission-qt.dir/all' failed
make[1]: *** [qt/CMakeFiles/transmission-qt.dir/all] Error 2
Removing child 0x86a458 PID 26327 from chain.
Reaping losing child 0x11aa798 PID 26115 
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
Removing child 0x11aa798 PID 26115 from chain.

Jakub Wilk

unread,
Feb 9, 2018, 10:54:17 AM2/9/18
to afl-...@googlegroups.com
* miki...@gmail.com, 2018-02-08, 23:49:
>/usr/bin/ld: __afl_prev_loc: TLS reference in CMakeFiles/transmission-qt.dir/AboutDialog.cc.o mismatches non-TLS reference in ../libtransmission/libtransmission.a(announcer.c.o)
>../libtransmission/libtransmission.a: error adding symbols: Bad value

I guess you mixed code built using afl-gcc (or afl-clang) with code
built using afl-gcc-fast. This does not work on x86. Make sure you build
everything with afl-clang-fast.

--
Jakub Wilk

Jakub Wilk

unread,
Feb 9, 2018, 10:59:56 AM2/9/18
to afl-...@googlegroups.com
* Jakub Wilk <jw...@jwilk.net>, 2018-02-09, 16:54:
>I guess you mixed code built using afl-gcc (or afl-clang) with code
>built using afl-gcc-fast.

Er, I meant afl-clang-fast, of course! afl-gcc-fast is not a thing.

--
Jakub Wilk

☣Adam

unread,
Feb 9, 2018, 11:27:55 AM2/9/18
to afl-...@googlegroups.com
If you haven't already, you might want to consider removing some of the integrity checks from the code (SHA1, if I remember correctly), otherwise you're likely to hit the "data is corrupt" code path 100% of the time.

glhf

--Adam

--
You received this message because you are subscribed to the Google Groups "afl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to afl-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

miki...@gmail.com

unread,
Feb 9, 2018, 3:48:47 PM2/9/18
to afl-users
I tried changing to afl-clang-fast with no luck, how do i disable integrity checks?


On Friday, February 9, 2018 at 11:27:55 AM UTC-5, adam wrote:
If you haven't already, you might want to consider removing some of the integrity checks from the code (SHA1, if I remember correctly), otherwise you're likely to hit the "data is corrupt" code path 100% of the time.

glhf

--Adam
On Feb 9, 2018 9:59 AM, "Jakub Wilk" <jw...@jwilk.net> wrote:
* Jakub Wilk <jw...@jwilk.net>, 2018-02-09, 16:54:
I guess you mixed code built using afl-gcc (or afl-clang) with code built using afl-gcc-fast.

Er, I meant afl-clang-fast, of course! afl-gcc-fast is not a thing.

--
Jakub Wilk

--
You received this message because you are subscribed to the Google Groups "afl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to afl-users+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages