On 06/28/2017 08:37 AM, Fathi Boudra wrote:
> On 28 June 2017 at 17:20, Shuah Khan <[email protected]> wrote:
>> On 06/28/2017 03:18 AM, Fathi Boudra wrote:
>>> timers test fails to build due to undefined reference:
>>>
>>>  aarch64-linaro-linux-gcc --sysroot=/build/tmp-rpb-glibc/sysroots/hikey
>>>  -O2 -pipe -g -feliminate-unused-debug-types -O3 -Wl,-no-as-needed -Wall
>>>  -DKTEST  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -lrt -lpthread
>>>  posix_timers.c
>>>  -o 
>>> /build/tmp-rpb-glibc/work/hikey-linaro-linux/kselftests/4.12-r0/linux-4.12-rc7/tools/testing/selftests/timers/posix_timers
>>>  /tmp/cc1FTZzT.o: In function `check_timer_create':
>>>  
>>> /usr/src/debug/kselftests/4.12-r0/linux-4.12-rc7/tools/testing/selftests/timers/posix_timers.c:157:
>>>  undefined reference to `timer_create'
>>>  
>>> /usr/src/debug/kselftests/4.12-r0/linux-4.12-rc7/tools/testing/selftests/timers/posix_timers.c:170:
>>>  undefined reference to `timer_settime'
>>>  collect2: error: ld returned 1 exit status
>>>
>>> Use LDLIBS instead of LDFLAGS to properly link against libpthread and fix
>>> this build issue.
>>>
>>> Signed-off-by: Denys Dmytriyenko <[email protected]>
>>> Signed-off-by: Fathi Boudra <[email protected]>
>>
>> I can't reproduce this on linux-kselftest next on x86_64. Is this arm64 
>> speocific
>> problem? Please try this on linux-kselftest latest.
> 
> yes, I tried linux-kselftest next and can reproduce.
> Maybe related to native build vs cross-build?
> I don't think it's arm64 specific.
> 

Can you confirm that this change doesn't cause problems in native
build environments.

thanks,
-- Shuah

Reply via email to