This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix build error caused by missing llvm-readelf
ClosedPublic

Authored by sunshaoce on Mar 16 2023, 2:27 AM.

Diff Detail

Event Timeline

sunshaoce created this revision.Mar 16 2023, 2:27 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 16 2023, 2:27 AM
sunshaoce requested review of this revision.Mar 16 2023, 2:27 AM

Thanks! Would replacing llvm-readelf -h with llvm-objdump -f also work? I'd rather avoid new dependencies if possible.

Thanks! Would replacing llvm-readelf -h with llvm-objdump -f also work? I'd rather avoid new dependencies if possible.

I tried, but it didn't print information about Flags.

$ bin/flang-new --target=riscv64-unknown-linux-gnu -c hello.f90 ; bin/llvm-objdump -f hello.o

hello.o:        file format elf64-littleriscv
architecture: riscv64
start address: 0x0000000000000000
awarzynski accepted this revision.Mar 16 2023, 2:45 AM

Thanks for checking - something for a TODO list!

This revision is now accepted and ready to land.Mar 16 2023, 2:45 AM
This revision was landed with ongoing or failed builds.Mar 16 2023, 2:47 AM
This revision was automatically updated to reflect the committed changes.

Likely the symlink isn't present, somehow. I did worry that this might happen.

I will change the tests to use readobj instead, for want of a proper cmake fix to copy the symlink over.