This is an archive of the discontinued LLVM Phabricator instance.

[flang][driver] Error if uuidgen is not installed
ClosedPublic

Authored by DavidSpickett on Sep 29 2021, 4:32 AM.

Details

Summary

Ubuntu Bionic installs it by default, Focal does not.

Diff Detail

Event Timeline

DavidSpickett created this revision.Sep 29 2021, 4:32 AM
Herald added a project: Restricted Project. · View Herald Transcript
DavidSpickett requested review of this revision.Sep 29 2021, 4:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 29 2021, 4:32 AM
DavidSpickett added a comment.EditedSep 29 2021, 4:34 AM

I'm testing focal bots for Linaro at the moment. Of course we'll be installing uuidgen to get this to work but let's make it obvious instead of going ahead and letting gfortran fail to find the file.

/home/tcwg-buildslave/worker/clang-aarch64-full-2stage/stage2.install/bin/flang          CMakeFiles/FM004.dir/FM004.f.o  -o FM004 
/home/tcwg-buildslave/worker/clang-aarch64-full-2stage/stage2.install/bin/flang: line 361: uuidgen: command not found
make[2]: Entering directory '/home/tcwg-buildslave/worker/clang-aarch64-full-2stage/test/sandbox/build'
/usr/bin/make -f Fortran/UnitTests/fcvs21_f95/CMakeFiles/FM819.dir/build.make Fortran/UnitTests/fcvs21_f95/CMakeFiles/FM819.dir/build
[  0%] Building Fortran object Fortran/UnitTests/fcvs21_f95/CMakeFiles/FM306.dir/FM306.f.o
gfortran: error: flang_unparsed_file__0.f90: No such file or directory
gfortran: fatal error: no input files
compilation terminated.
awarzynski accepted this revision.Sep 29 2021, 5:36 AM

Thanks for the improvement, LGTM! Added Steve as a reviewer - he's the only user of this script that I am aware of :) Shall we wait a day to see whether he's got any comments?

flang/tools/f18/flang
368–372

[nit] I would move this change above the comments (they only apply to L367 and L368). Perhaps add a quick justification explaining _why_ we need a check for this particular utility. It's already documented in the commit message, so perhaps that would be overkill?

This revision is now accepted and ready to land.Sep 29 2021, 5:36 AM

Move check above comments.

DavidSpickett marked an inline comment as done.Sep 29 2021, 6:08 AM

Shall we wait a day to see whether he's got any comments?

Sure, this isn't blocking anything else.

This revision was automatically updated to reflect the committed changes.