mighty-gerbils / gerbil

Gerbil Scheme
https://cons.io
GNU Lesser General Public License v2.1
1.16k stars 112 forks source link

Partial output lines from gerbil build #316

Open lassik opened 5 years ago

lassik commented 5 years ago

This is a very minor nit, but I get partial output lines from the Gerbil build, e.g. the last line in this example with only ... c. The full output line is completed once that command completes. Is there an easy place to flush output after each ... compile foo.scm line so full lines are output?

Step 15/22 : RUN ./build.sh
 ---> Running in c804e32206a0
[*] Building Gerbil
[*] Building gerbil stage0
>>> preparing /build/gerbil/bootstrap
>>> compiling runtime
building gerbil/runtime in /build/gerbil/bootstrap/lib
... compile gx-gambc
... compile gx-gambc0
... compile gx-gambc1
... compile gx-gambc2
>>> preparing bootstrap
>>> compiling gerbil core
... [...]
... compile /build/gerbil/bootstrap/lib/gerbil/compiler/optimize-base__1.scm
... compile /build/gerbil/bootstrap/lib/gerbil/compiler/optimize__1.scm
... compile /build/gerbil/bootstrap/lib/gerbil/compiler/optimize-top__0.scm
... compile /build/gerbil/bootstrap/lib/gerbil/compiler/optimize__0.scm
... c
vyzo commented 5 years ago

this is strange, it doesn't happen for me!

vyzo commented 5 years ago

But we can probably add a force-output after each build.

lassik commented 5 years ago

It may have something to do with the inner workings of docker build. Docker containers have something funny going on with their terminal handling in general.

lassik commented 5 years ago

Though IIRC docker build doesn't actually run in a terminal. But it may be some buffering approach that's different from ordinary Linux.