build failure in riscV64

Bug #1891396 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
squid (Ubuntu)
New
Undecided
Unassigned

Bug Description

https://launchpad.net/ubuntu/+source/squid/4.12-1ubuntu1/+build/19819774

DiskIO/.libs/libdiskio.a(IpcIoFile.o): in function `std::__atomic_base<bool>::exchange(bool, std::memory_order)':
/usr/include/c++/10/bits/atomic_base.h:443: undefined reference to `__atomic_exchange_1'

Just a wild guess, maybe we should list riscv64 in d/rules here:
ifneq (,$(filter $(DEB_HOST_ARCH), armel m68k mips mipsel powerpc powerpcspe sh4))
    DEB_LDFLAGS_MAINT_APPEND += -latomic
endif

Tags: ftbfs riscv64
tags: added: ftbfs riscv64
Revision history for this message
Amos Jeffries (yadi) wrote :

The upstream patch http://www.squid-cache.org/Versions/v4/changesets/squid-4-f187e5cf415604d4fe839ba57120d846bfa1e672.patch which in includes in Squid-4.12 and later should resolve linking issues with libatomic.

Revision history for this message
Amos Jeffries (yadi) wrote :

Oops, missed the build version number.

From the build log I see:

> checking whether linking without -latomic works... yes

A patch adjusting the configure.ac test logic to also check the exchange operator which is missing on riscv64 is the correct way to go. Please submit upstream PR if anyone wants to create and test such a patch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.