https://bugzilla.redhat.com/show_bug.cgi?id=2242022 --- Comment #8 from Davide Cavalca <davide@xxxxxxxxxxxx> --- I'm trying this to get the right flags passed %prep echo -n 'swift build -v -c %{config} %{?_smp_build_ncpus:-j %{_smp_build_ncpus}} ' > build.sh for flag in %build_cflags; do echo -n "-Xcc ${flag} " >> build.sh done for flag in %build_cxxflags; do echo -n "-Xcxx ${flag} " >> build.sh done for flag in %build_ldflags; do echo -n "-Xlinker ${flag} " >> build.sh done %build sh -x build.sh and it does "work" but the build ultimately fails with /usr/libexec/swift/5.8.1/bin/swiftc -g -L /builddir/build/BUILD/SwiftLint-0.53.0/.build/aarch64-unknown-linux-gnu/release -o /builddir/build/BUILD/SwiftLint-0.53.0/.build/aarch64-unknown-linux-gnu/release/swiftlint -module-name swiftlint -emit-executable -Xlinker --gc-sections -Xlinker --defsym -Xlinker main=swiftlint_main -Xlinker '-rpath=$ORIGIN' @/builddir/build/BUILD/SwiftLint-0.53.0/.build/aarch64-unknown-linux-gnu/release/swiftlint.product/Objects.LinkFileList -target aarch64-unknown-linux-gnu -Xlinker -Wl,-z,relro -Xlinker -Wl,--as-needed -Xlinker -Wl,-z,now -Xlinker -flto=thin -Xlinker -Wl,--build-id=sha1 -Xcc -O2 -Xcc -flto=thin -Xcc -fexceptions -Xcc -g -Xcc -grecord-gcc-switches -Xcc -pipe -Xcc -Wall -Xcc -Werror=format-security -Xcc -Werror=implicit-function-declaration -Xcc -Werror=implicit-int -Xcc -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Xcc -Wp,-D_GLIBCXX_ASSERTIONS -Xcc --config -Xcc /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -Xcc -fstack-protector-strong -Xcc -mbranch-protection=standard -Xcc -fasynchronous-unwind-tables -Xcc -fno-omit-frame-pointer -Xcc -mno-omit-leaf-frame-pointer -v -L /usr/libexec/swift/5.8.1/lib Swift version 5.8.1 (swift-5.8.1-RELEASE) Target: aarch64-unknown-linux-gnu /usr/libexec/swift/5.8.1/bin/swift-autolink-extract @/tmp/TemporaryDirectory.1jtY4M/arguments-4662626656583931728.resp error: autolink-extract command failed with exit code 1 (use -v to see invocation) <unknown>:0: error: error opening input file '/builddir/build/BUILD/SwiftLint-0.53.0/.build/aarch64-unknown-linux-gnu/release/CYaml.build/src/api.c.o' (The file was not recognized as a valid object file ) error: Bad exit status from /var/tmp/rpm-tmp.55d6Iz (%build) Bad exit status from /var/tmp/rpm-tmp.55d6Iz (%build) -- You are receiving this mail because: You are always notified about changes to this product and component You are on the CC list for the bug. https://bugzilla.redhat.com/show_bug.cgi?id=2242022 Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202242022%23c8 _______________________________________________ package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue