D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 23225 - OpenBSD: cpp invocation cannot find files
Summary: OpenBSD: cpp invocation cannot find files
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All Other
: P1 major
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2022-06-30 20:51 UTC by Brian Callahan
Modified: 2022-07-04 13:26 UTC (History)
1 user (show)

See Also:


Attachments
Build failure with cpp invocation (24.51 KB, text/plain)
2022-06-30 20:51 UTC, Brian Callahan
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Brian Callahan 2022-06-30 20:51:43 UTC
Created attachment 1857 [details]
Build failure with cpp invocation

Hello --

Trying to build the tip of the tree (DMD/DRuntime/Phobos all at tip of tree) results in the attached build error. Even if I put in the full path to the file, I get the same error. Cluebats appreciated.

Thanks.
Comment 1 mhh 2022-07-01 01:29:33 UTC
Walter just changed the makefile to build the .c files using dmd, so maybe this doesn't play nice with an llvm toolchain underneath
Comment 2 Brian Callahan 2022-07-01 02:12:10 UTC
(In reply to mhh from comment #1)
> Walter just changed the makefile to build the .c files using dmd, so maybe
> this doesn't play nice with an llvm toolchain underneath

I tried to replicate this on FreeBSD just now. Everything built fine on FreeBSD. That also has an llvm toolchain underneath.
Comment 3 Dlang Bot 2022-07-04 02:54:49 UTC
@ibara created dlang/dmd pull request #14267 "Fix Issue 23225 - OpenBSD: cpp invocation cannot find files" fixing this issue:

- Fix Issue 23225 - OpenBSD: cpp invocation cannot find files
  
  A bug in the shell script that lives in /usr/bin/cpp eats the -o
  flag in the CPP invocation, which breaks ImportC. This workaround
  is to use /usr/libexec/cpp instead, which is the actual CPP binary.

https://github.com/dlang/dmd/pull/14267
Comment 4 Dlang Bot 2022-07-04 13:26:47 UTC
dlang/dmd pull request #14267 "Fix Issue 23225 - OpenBSD: cpp invocation cannot find files" was merged into master:

- 8e873ea24729805168d42f0bb560b5bb60404dff by Brian Callahan:
  Fix Issue 23225 - OpenBSD: cpp invocation cannot find files
  
  A bug in the shell script that lives in /usr/bin/cpp eats the -o
  flag in the CPP invocation, which breaks ImportC. This workaround
  is to use /usr/libexec/cpp instead, which is the actual CPP binary.

https://github.com/dlang/dmd/pull/14267