# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
# swift --version
Swift version 5.1.5 (swift-5.1.5-RELEASE)
Target: x86_64-unknown-linux-gnu
# swift build -v
lsb_release -r
uname
pkg-config --variable pc_path pkg-config
/opt/swift/usr/bin/swiftc -sdk / -L/usr/lib/x86_64-linux-gnu -lssl -L/usr/lib/x86_64-linux-gnu -lcrypto -L/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -lz -L/usr/lib/x86_64-linux-gnu -lcurl -L/us
r/lib/x86_64-linux-gnu -lssl -L/usr/lib/x86_64-linux-gnu -lcrypto -g -L /home/ubuntu/Home/Multipass/.build/x86_64-unknown-linux/debug -o /home/ubuntu/Home/Multipass/.build/x8
6_64-unknown-linux/debug/antiparsing -module-name appname -emit-executable -Xlinker '-rpath=$ORIGIN' @/home/ubuntu/Home/Multipass/.build/x86_64-unknown-linux/debug/name.product/O
bjects.LinkFileList -target x86_64-unknown-linux -L /opt/swift/usr/lib
/usr/bin/ld.gold: error: cannot open /home/ubuntu/Home/Multipass/.build/x86_64-unknown-linux/debug/NIOPriorityQueue.build/PriorityQueue.swift.o: Operation not permitted
/usr/bin/ld.gold: error: cannot open /home/ubuntu/Home/Multipass/.build/x86_64-unknown-linux/debug/NIOTLS.build/ApplicationProtocolNegotiationHandler.swift.o: Operation not permitted
/usr/bin/ld.gold: error: cannot open /home/ubuntu/Home/Multipass/.build/x86_64-unknown-linux/debug/NIOTLS.build/NIOTLS.swiftmodule.o: Operation not permitted
/usr/bin/ld.gold: error: cannot open /home/ubuntu/Home/Multipass/.build/x86_64-unknown-linux/debug/NIOTLS.build/SNIHandler.swift.o: Operation not permitted
/usr/bin/ld.gold: error: cannot open /home/ubuntu/Home/Multipass/.build/x86_64-unknown-linux/debug/NIOTLS.build/TLSEvents.swift.o: Operation not permitted
Issue happens after migrating from 5.0.4 to 5.1.5