I have no idea what phase of the linker might be creating that file. One possible way to figure it out would be build with `EMCC_DEBUG=1` and then search the log for `.tmp0`. Could you give that a try?
cheers, sam On Fri, Jun 14, 2024 at 10:45 AM Grayson Clark <gclark1...@gmail.com> wrote: > Of note, tup creates a different process environment where typical > environment variables may not be available. I tried making sure it has > access to the TEMP env variable but saw the same behavior. Does emcc rely > on any other env variables for temp directory related operations? > > On Friday, June 14, 2024 at 12:30:15 PM UTC-5 Grayson Clark wrote: > >> Here's the tup output >> >> [ tup ] [0.057s] Executing Commands... >> * 0) [build-web] CMD /c emcc -g -sUSE_WEBGL2 >> --shell-file=configs/index.html build-web/./log.o build-web/./main.o -o >> build-web/app.html >> *** tup messages *** >> tup error: File 'C:/Dev/sokol_wasm_tup_test/build-web/app.wasm.tmp0' was >> written to, but is not in .tup/db. You probably should specify it as an >> output >> -- Delete: C:/Dev/sokol_wasm_tup_test/build-web/app.wasm.tmp0 >> *** Command failed due to errors processing the output dependencies. >> >> On Friday, June 14, 2024 at 12:29:11 PM UTC-5 Grayson Clark wrote: >> >>> It's getting placed next to the .html, .js, and .wasm output files. Not >>> sure why or how.... >>> >>> On Monday, June 10, 2024 at 6:07:16 PM UTC-5 s...@google.com wrote: >>> >>>> I'm not sure what this `tmp0` file might be. I don't think we >>>> generate any files with names like that. Where are you seeing that file >>>> being created? Emscripten should only write temp files to the temp >>>> directory (e.g. `/tmp`). >>>> >>>> cheers, >>>> sam >>>> >>>> On Mon, Jun 10, 2024 at 3:00 PM Grayson Clark <gclar...@gmail.com> >>>> wrote: >>>> >>>>> I'm trying to use tup (https://gittup.org/tup/) as my build system. >>>>> Part of it's quirk is that it tracks input and output files from build >>>>> steps. Because emscripten outputs a .tmp0 file during the compilation >>>>> process and deletes it before the end of compilation, tup picks it up but >>>>> errors out because the file doesn't exist when it goes to check it's >>>>> registry. >>>>> Of course this is more of a tup error, so no need for a "fix" here, >>>>> but I'm wondering if there's a way to specify some control over where or >>>>> how emscripten outputs that .tmp0 file. >>>>> If there is, let me know! Or if anyone knows where emscripten handles >>>>> that file in code that would also be super appreciated. >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "emscripten-discuss" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to emscripten-disc...@googlegroups.com. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/emscripten-discuss/3ee610a3-ac40-47f7-85f5-e2339332950dn%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/emscripten-discuss/3ee610a3-ac40-47f7-85f5-e2339332950dn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to emscripten-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/868aef70-af0f-4e70-ad70-130971a87d09n%40googlegroups.com > <https://groups.google.com/d/msgid/emscripten-discuss/868aef70-af0f-4e70-ad70-130971a87d09n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAL_va28UymxxBm4Xf__gDWmRzOq3o9OxDHY_1UpGs-FfY-Uo4w%40mail.gmail.com.