Thread overview
[Issue 24252] ci: Error: error writing file 'compilable\testcstuff3_0.obj'
Dec 21, 2023
kinke
Jan 03, 2024
RazvanN
Jan 27, 2024
kinke
Jan 27, 2024
Dlang Bot
Jan 27, 2024
Dlang Bot
Jan 28, 2024
Dlang Bot
December 21, 2023
https://issues.dlang.org/show_bug.cgi?id=24252

kinke <kinke@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke@gmx.net

--- Comment #1 from kinke <kinke@gmx.net> ---
AFAICT, the problem is that DMD generates the temporary preprocessed `.i` in
the same dir as the `.c`, just with the extension replaced:
https://github.com/dlang/dmd/blob/fa7a1b3d9f4e89d4a6b44ec57ed1f5137c303694/compiler/src/dmd/cpreprocess.d#L88

LDC creates a unique temp directory to hold the `.i`.

--
January 03, 2024
https://issues.dlang.org/show_bug.cgi?id=24252

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |DUPLICATE

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---


*** This issue has been marked as a duplicate of issue 24293 ***

--
January 27, 2024
https://issues.dlang.org/show_bug.cgi?id=24252

kinke <kinke@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |---

--- Comment #3 from kinke <kinke@gmx.net> ---
Oh, this has obviously nothing to do with a temporary .i - the test file is an .i already, so no preprocessing. The problem is simply that the object files collide for these 2 tests, as the d_do_test.d runner uses the same object file path `…\compilable\testcstuff3_0.obj`. Fix incoming.

--
January 27, 2024
https://issues.dlang.org/show_bug.cgi?id=24252

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@kinke updated dlang/dmd pull request #16100 "[stable] Fix Issue 24252 - Object files collision for tests compilable/testcstuff3.{d,i}" fixing this issue:

- Fix Bugzilla Issue 24252 - Object files collision for tests compilable/testcstuff3.{d,i}

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

--
January 27, 2024
https://issues.dlang.org/show_bug.cgi?id=24252

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #16100 "[stable] Fix Issue 24252 - Object files collision for tests compilable/testcstuff3.{d,i}" was merged into stable:

- 2c1b5390f8e0d9829aa9659593f50418246cd930 by Martin Kinkelin:
  Fix Bugzilla Issue 24252 - Object files collision for tests
compilable/testcstuff3.{d,i}

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

--
January 28, 2024
https://issues.dlang.org/show_bug.cgi?id=24252

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #16105 "merge stable" was merged into master:

- b4d851769390a195094688183f260d82cae8459b by Martin Kinkelin:
  Fix Bugzilla Issue 24252 - Object files collision for tests
compilable/testcstuff3.{d,i}

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

--