[Intel-gfx] [intelddx][strlcpy | strlcat | clock_gettime] clang-3.8: error: linker command failed with exit code 1

Sedat Dilek sedat.dilek at gmail.com
Thu Mar 24 11:11:33 UTC 2016


On Thu, Mar 24, 2016 at 12:01 PM, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> On Thu, Mar 24, 2016 at 11:44:45AM +0100, Sedat Dilek wrote:
>> [ Please see attached files (build-script, full logs etc.) ]
>>
>> With my selfmade llvm-toolchain v3.8.0 I see these errors/warnings...
>
>> conftest.c:(.text+0x12): undefined reference to `strlcpy'
>> clang-3.8: error: linker command failed with exit code 1 (use -v to
>> see invocation)
>
> We don't even use strlcat!  Try:
>
> diff --git a/configure.ac b/configure.ac
> index c18ad96..b121515 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -62,9 +62,6 @@ AC_DISABLE_STATIC
>  AC_PROG_LIBTOOL
>  AC_SYS_LARGEFILE
>
> -# Check for common libc routines redefined by os.h
> -AC_CHECK_FUNCS([strlcpy strlcat strndup], [], [])
> -
>  # Platform specific settings
>  case $host_os in
>    *linux*)
>
>

So I collected all three "issues" here and sent you the generated logs.

Hope this helps.

Feel free to add my credits.

- Sedat -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-configure-Remove-ACLOCAL_FLAGS-to-fix-libtool-vs-aut.patch
Type: text/x-patch
Size: 722 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20160324/098f153a/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-configure-TearFree-Remove-Experimental-support-statu.patch
Type: text/x-patch
Size: 637 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20160324/098f153a/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-configure-Remove-unused-common-libc-routines-check.patch
Type: text/x-patch
Size: 652 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20160324/098f153a/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.gz
Type: application/x-gzip
Size: 18635 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20160324/098f153a/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure-log_intelddx-2-99-917-580-gf656f6afa288_tearfree-enabled_configure-fixes_llvm-3-8-0.txt.gz
Type: application/x-gzip
Size: 4090 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20160324/098f153a/attachment-0009.bin>


More information about the Intel-gfx mailing list