Re: i386/conf/ALL link error

2019-04-11 Thread Masanobu SAITOH
On 2019/04/11 18:59, Kamil Rytarowski wrote:
> On 11.04.2019 07:32, Masanobu SAITOH wrote:
>> Hi.
>>
>> i386/conf/ALL kernel can't link. See below.
>>
> 
> This used to work.
> 
> It means that __HAVE_ATOMIC64_OPS is defined but 64-bit atomics are
> unavailable..
> 
> Someone disabled them for NetBSD/i386 them?
> 
> 
> #if defined(_KERNEL)
> /*
>  * Processors < i586 do not have cmpxchg8b, and we compile for i486
>  * by default. The kernel tsc driver uses them though, and handles < i586
>  * by patching.  E.g. rump kernels and crash(8) and a selection of
>  * other run-in-userspace code defines _KERNEL, but is careful not to
>  * build anything using 64bit atomic ops by default.
>  */
> #define __HAVE_ATOMIC64_OPS
> #endif
> 
> -- sys/arch/i386/include/types.h
> 

It seems the problem was fixed.

Thanks!

-- 
---
SAITOH Masanobu (msai...@execsw.org
 msai...@netbsd.org)


Re: i386/conf/ALL link error

2019-04-11 Thread Kamil Rytarowski
On 11.04.2019 07:32, Masanobu SAITOH wrote:
> Hi.
> 
> i386/conf/ALL kernel can't link. See below.
> 

This used to work.

It means that __HAVE_ATOMIC64_OPS is defined but 64-bit atomics are
unavailable..

Someone disabled them for NetBSD/i386 them?


#if defined(_KERNEL)
/*
 * Processors < i586 do not have cmpxchg8b, and we compile for i486
 * by default. The kernel tsc driver uses them though, and handles < i586
 * by patching.  E.g. rump kernels and crash(8) and a selection of
 * other run-in-userspace code defines _KERNEL, but is careful not to
 * build anything using 64bit atomic ops by default.
 */
#define __HAVE_ATOMIC64_OPS
#endif

-- sys/arch/i386/include/types.h



signature.asc
Description: OpenPGP digital signature


i386/conf/ALL link error

2019-04-10 Thread Masanobu SAITOH
Hi.

i386/conf/ALL kernel can't link. See below.

 Thanks in advance.


#  link  ALL/netbsd
/disk2/sources/NetBSD-current/src/obj/tooldir.NetBSD-8.99.37-amd64/bin/i486--netbsdelf-ld
 -Map netbsd.map --cref -T netbsd.ldscript -Ttext c010 -e start -X -o 
netbsd ${SYSTEM_OBJ:[@]:Nswapnetbsd.o} ${EXTRA_OBJ} vers.o swapnetbsd.o
/disk2/sources/NetBSD-current/src/obj/tooldir.NetBSD-8.99.37-amd64/bin/i486--netbsdelf-ld:
 subr_kcov.o: in function `trace_cmp':
/disk2/sources/NetBSD-current/src/sys/arch/i386/compile/ALL/../../../../kern/subr_kcov.c:424:
 undefined reference to `__atomic_load_8'
/disk2/sources/NetBSD-current/src/obj/tooldir.NetBSD-8.99.37-amd64/bin/i486--netbsdelf-ld:
 
/disk2/sources/NetBSD-current/src/sys/arch/i386/compile/ALL/../../../../kern/subr_kcov.c:426:
 undefined reference to `__atomic_store_8'
/disk2/sources/NetBSD-current/src/obj/tooldir.NetBSD-8.99.37-amd64/bin/i486--netbsdelf-ld:
 
/disk2/sources/NetBSD-current/src/sys/arch/i386/compile/ALL/../../../../kern/subr_kcov.c:427:
 undefined reference to `__atomic_store_8'
/disk2/sources/NetBSD-current/src/obj/tooldir.NetBSD-8.99.37-amd64/bin/i486--netbsdelf-ld:
 
/disk2/sources/NetBSD-current/src/sys/arch/i386/compile/ALL/../../../../kern/subr_kcov.c:428:
 undefined reference to `__atomic_store_8'
/disk2/sources/NetBSD-current/src/obj/tooldir.NetBSD-8.99.37-amd64/bin/i486--netbsdelf-ld:
 
/disk2/sources/NetBSD-current/src/sys/arch/i386/compile/ALL/../../../../kern/subr_kcov.c:429:
 undefined reference to `__atomic_store_8'
/disk2/sources/NetBSD-current/src/obj/tooldir.NetBSD-8.99.37-amd64/bin/i486--netbsdelf-ld:
 subr_kcov.o: in function `__sanitizer_cov_trace_pc':
/disk2/sources/NetBSD-current/src/sys/arch/i386/compile/ALL/../../../../kern/subr_kcov.c:383:
 undefined reference to `__atomic_load_8'
/disk2/sources/NetBSD-current/src/obj/tooldir.NetBSD-8.99.37-amd64/bin/i486--netbsdelf-ld:
 
/disk2/sources/NetBSD-current/src/sys/arch/i386/compile/ALL/../../../../kern/subr_kcov.c:385:
 undefined reference to `__atomic_store_8'
/disk2/sources/NetBSD-current/src/obj/tooldir.NetBSD-8.99.37-amd64/bin/i486--netbsdelf-ld:
 
/disk2/sources/NetBSD-current/src/sys/arch/i386/compile/ALL/../../../../kern/subr_kcov.c:387:
 undefined reference to `__atomic_store_8'
/disk2/sources/NetBSD-current/src/obj/tooldir.NetBSD-8.99.37-amd64/bin/i486--netbsdelf-ld:
 subr_kcov.o: in function `trace_cmp':
/disk2/sources/NetBSD-current/src/sys/arch/i386/compile/ALL/../../../../kern/subr_kcov.c:430:
 undefined reference to `__atomic_store_8'
*** [netbsd] Error code 1


-- 
-
 Masanobu SAITOH(masan...@iij.ad.jp
  msai...@netbsd.org)