pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/54353: audio/audacity build fails linking on netbsd-8/i386
The following reply was made to PR pkg/54353; it has been noted by GNATS.
From: Onno van der Linden <o.vd.linden%quicknet.nl@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/54353: audio/audacity build fails linking on netbsd-8/i386
Date: Fri, 12 Jul 2019 17:13:21 +0200
Compiling
#include <atomic>
int main(void)
{
std::atomic<double> a;
a = 1.0;
}
on my i386 machine with c++ -O3 c.cc
fails with unresolved external __atomic_store_8.
Using c++ -O3 -march=i586 c.cc works fine.
Looks like
.if ${MACHINE_ARCH} == "i386"
# 64 bit atomic ops are required
CXXFLAGS+= -march=i586
.endif
might be needed in audacity/Makefile.
Even with -march=i586 clang++ 5.0 still fails with the unresolved external.
No idea if more recent versions of clang work.
Onno
Home |
Main Index |
Thread Index |
Old Index