This is an archive of the discontinued LLVM Phabricator instance.

[flang] fix errors in link*-main tests in D134821
AbandonedPublic

Authored by sunshaoce on Apr 27 2023, 11:55 PM.

Details

Summary

I tried to use %itanium_abi_triple, but it can only be used with -fc1 -triple.

Error info:

+ /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/bin/flang-new -fc1 -emit-obj /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang/test/Driver/link-f90-main.f90 -o /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/tools/flang/test/Driver/Output/link-f90-main.f90.tmp.o
+ : 'RUN: at line 10'
+ /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/bin/flang-new -target x86_64-unknown-linux-gnu /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/tools/flang/test/Driver/Output/link-f90-main.f90.tmp.o -o /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/tools/flang/test/Driver/Output/link-f90-main.f90.tmp.out -flang-experimental-exec
/usr/bin/ld: unrecognised emulation mode: elf_x86_64
Supported emulations: aarch64linux aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb aarch64linuxb aarch64linux32 aarch64linux32b armelfb_linux_eabi armelf_linux_eabi
flang-new: error: linker command failed with exit code 1 (use -v to see invocation)

Diff Detail

Event Timeline

sunshaoce created this revision.Apr 27 2023, 11:55 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
sunshaoce requested review of this revision.Apr 27 2023, 11:55 PM
sunshaoce edited the summary of this revision. (Show Details)Apr 27 2023, 11:59 PM
sunshaoce edited the summary of this revision. (Show Details)Apr 28 2023, 12:03 AM

@sunshaoce I don't really understand what the issue with these tests is and the commit message does not explain that. IIUC, https://reviews.llvm.org/D134821 has caused the Flang buildbots to fail and that's what this patch is trying to address? It's impossible to verify ATM as the web UI is effectively frozen. I reverted that patch so that we can discuss the right solution without feeling under pressure of failing Ci jobs.

sunshaoce abandoned this revision.Apr 28 2023, 4:04 AM