undefined reference to `__builtin_bswap16'
strasharo opened this issue · 1 comments
strasharo commented
Currently the compilation fails in CentOS 6.9 64bit with the following error:
[user@CUDA src]$ make
rm -f ../bin/*
rm -f *.bin *.exe
cc -Wall -W -pipe -O2 -std=c99 -o cap2hccapx.bin cap2hccapx.c
cap2hccapx.c: In function ‘handle_auth’:
cap2hccapx.c:430: warning: implicit declaration of function ‘__builtin_bswap16’
/tmp/ccmTwrAB.o: In function `main':
cap2hccapx.c:(.text+0x325): undefined reference to `__builtin_bswap16'
cap2hccapx.c:(.text+0x33c): undefined reference to `__builtin_bswap16'
cap2hccapx.c:(.text+0x89c): undefined reference to `__builtin_bswap16'
cap2hccapx.c:(.text+0x8b4): undefined reference to `__builtin_bswap16'
cap2hccapx.c:(.text+0x8cb): undefined reference to `__builtin_bswap16'
collect2: ld returned 1 exit status
make: *** [native] Error 1
[user@CUDA src]$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[user@CUDA src]$
jsteube commented
Looks like this is because the GCC is too old. Is that the latest
version of CentOS?
…On 06.04.2017 01:10, strasharo wrote:
Currently the compilation fails in CentOS 6.9 64bit with the following
error:
***@***.*** src]$ make rm -f ../bin/* rm -f *.bin *.exe cc -Wall -W
-pipe -O2 -std=c99 -o cap2hccapx.bin cap2hccapx.c cap2hccapx.c: In
function ‘handle_auth’: cap2hccapx.c:430: warning: implicit
declaration of function ‘__builtin_bswap16’ /tmp/ccmTwrAB.o: In
function `main': cap2hccapx.c:(.text+0x325): undefined reference to
`__builtin_bswap16' cap2hccapx.c:(.text+0x33c): undefined reference to
`__builtin_bswap16' cap2hccapx.c:(.text+0x89c): undefined reference to
`__builtin_bswap16' cap2hccapx.c:(.text+0x8b4): undefined reference to
`__builtin_bswap16' cap2hccapx.c:(.text+0x8cb): undefined reference to
`__builtin_bswap16' collect2: ld returned 1 exit status make: ***
[native] Error 1 ***@***.*** src]$ gcc --version gcc (GCC) 4.4.7
20120313 (Red Hat 4.4.7-18) Copyright (C) 2010 Free Software
Foundation, Inc. This is free software; see the source for copying
conditions. There is NO warranty; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. ***@***.*** src]$ |
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#22>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AJ83OQhXLyX28jaX_xwrlB9K8wR17NQQks5rtB97gaJpZM4M07Ot>.