rust icon indicating copy to clipboard operation
rust copied to clipboard

Check that rustc's output is writable before linking

Open brson opened this issue 14 years ago • 3 comments

If the final output file is not writable we end up failing with a cryptic linker error and a dump of the gcc command line. This could largely be avoided by doing some check before running the linker.

brson avatar Jan 09 '12 01:01 brson

Maybe it's possible from the gcc error code to determine what the error was. That would potentially be less error prone than doing the check ahead of time.

brson avatar Jan 09 '12 01:01 brson

Even if the final output file is not writable, the error message is working properly. When I make output file in /usr/bin, the error message is "Could not write output : error opening output file"

I am sure it's not still problem.

sammykim avatar Apr 05 '13 07:04 sammykim

@sammykim is correct. Closing.

catamorphism avatar Jun 10 '13 16:06 catamorphism