Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jan 2017 03:02:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 216514] rpcgen leaves broken output file if ${CPP} not found
Message-ID:  <bug-216514-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216514

            Bug ID: 216514
           Summary: rpcgen leaves broken output file if ${CPP} not found
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: emaste@freebsd.org

As a result of a misconfigured external toolchain I ended up with ${CPP} se=
t to
a nonexistent file. In this case rpcgen creates a broken output file before
exiting with an error, and subsequent builds do not try to rebuild it.

rpcgen should either not create the output file early (e.g., by writing to a
temporary and renaming on success), or delete it on error.

(Root cause of this issue was an old, mismatched mips64-xtoolchain-gcc.)

Reproduction steps:
% touch foo.h
% RPCGEN_CPP=3Ddoes-not-exist rpcgen -C -h foo.h -o foo.out
rpcgen: execvp does-not-exist: No such file or directory
% echo $?
1
% ls -l foo.out
-rw-r--r--  1 emaste  emaste  240 26 Jan 21:52 foo.out

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216514-8>