NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/55418: NetBSD 9.0_STABLE i386 lacks __atomic_{load,store}_8

>Number:         55418
>Category:       toolchain
>Synopsis:       NetBSD 9.0_STABLE i386 lacks __atomic_{load,store}_8
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 25 18:35:00 +0000 2020
>Originator:     Frank Kardel
>Release:        NetBSD 9.0_STABLE
System: NetBSD router 9.0_STABLE NetBSD 9.0_STABLE (ROUTER) #0: Thu Mar 26 15:05:05 UTC 2020 kardel@emptyShell:/usr/obj/sys/arch/i386/compile/ROUTER i386
Architecture: i386
Machine: i386
	When building pkgsrc/wip/bareos-clientonly linking fails to
	resolve __atomic_store_8, __atomic_load_8.

	Primitives used in work/bareos-Release-19.2.7/core/src/lib/
	static std::atomic<std::time_t> calendar_time_on_last_timer_run(time(nullptr));
	static std::atomic<TimerThreadState> timer_thread_state(...);
	static std::atomic<bool> quit_timer_thread(false);

	The compiler gcc (nb3 20190319) 7.4.0 happily compiles the code but generates
	calls to __atomic_{load,store}_8 which I do not find in the libraries.

	Any hints?

	BTW, on amd64 this works flawlessly and an 8-Bit atomic quantity should be
	available in i386 ISA.

	Build pkgsrc/wip/bareos-clientonly on an i386 environment.

Home | Main Index | Thread Index | Old Index