[#103241] [Ruby master Bug#17777] 2.6.7 fails to build on macOS: implicit declaration of function 'rb_native_mutex_destroy' is invalid in C99 — eregontp@...
Issue #17777 has been reported by Eregon (Benoit Daloze).
17 messages
2021/04/05
[#103305] [Ruby master Feature#17785] Allow named parameters to be keywords — marcandre-ruby-core@...
Issue #17785 has been reported by marcandre (Marc-Andre Lafortune).
21 messages
2021/04/08
[#103342] [Ruby master Feature#17790] Have a way to clear a String without resetting its capacity — jean.boussier@...
Issue #17790 has been reported by byroot (Jean Boussier).
14 messages
2021/04/09
[#103388] [ANN] Multi-factor Authentication of bugs.ruby-lang.org — SHIBATA Hiroshi <hsbt@...>
Hello,
5 messages
2021/04/12
[#103414] Re: [ANN] Multi-factor Authentication of bugs.ruby-lang.org
— Martin J. Dürst <duerst@...>
2021/04/13
Is there a way to use this multi-factor authentication for (like me)
[#103547] List of CI sites to check — Martin J. Dürst <duerst@...>
Hello everybody,
4 messages
2021/04/22
[#103596] [Ruby master Feature#17830] Add Integer#previous and Integer#prev — rafasoaresms@...
Issue #17830 has been reported by rafasoares (Rafael Soares).
9 messages
2021/04/26
[ruby-core:103540] [Ruby master Bug#17817] --jit outputs ./tmp/_ruby_mjit_*.h: No such file or directory on with TMP_DIR
From:
jaruga@...
Date:
2021-04-21 14:52:43 UTC
List:
ruby-core #103540
Issue #17817 has been updated by jaruga (Jun Aruga).
I created the `tmp` directory in advance.
```
$ mkdir tmp
```
I see the following files are created after the above commands.
```
$ ls tmp/
_ruby_mjit_hp1287695u0.h.gch _ruby_mjit_p1287695u0.c
```
----------------------------------------
Bug #17817: --jit outputs ./tmp/_ruby_mjit_*.h: No such file or directory on with TMP_DIR
https://bugs.ruby-lang.org/issues/17817#change-91641
* Author: jaruga (Jun Aruga)
* Status: Open
* Priority: Normal
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
On the master branch: `3c8a67e8a5f51f337cf95b4038ed97bf8ca8b696`, I see the `ruby --jit` prints `fatal error: ./tmp/_ruby_mjit_hp1287695u0.h: No such file or directory` only if `TMP` is set. Is it a bug?
The ruby is built from the source code by `./configure --prefix=... --enable-shared`. I would attach the full log file.
The issue is like #14457 . Thank you.
```
$ ~/local/ruby-master-3c8a67e/bin/ruby -v
ruby 3.1.0dev (2021-04-21T11:45:23Z master 3c8a67e8a5) [x86_64-linux]
```
```
$ ~/local/ruby-master-3c8a67e/bin/ruby --disable-gems --jit-verbose=2 --jit-save-temps --jit-min-calls=1 --jit-wait -e '1.times { puts "Hello" }'
MJIT: CC defaults to /usr/bin/gcc
MJIT: tmp_dir is /tmp
Creating precompiled header
Starting process: /usr/bin/gcc /usr/bin/gcc -w -Wfatal-errors -fPIC -shared -w -pipe -O3 -fno-fast-math -nodefaultlibs -nostdlib -o /tmp/_ruby_mjit_hp1287652u0.h.gch /home/jaruga/local/ruby-master-3c8a67e/include/ruby-3.1.0/x86_64-linux/rb_mjit_min_header-3.1.0.h
start compilation: block in <main>@-e:1 -> /tmp/_ruby_mjit_p1287652u0.c
Starting process: /usr/bin/gcc /usr/bin/gcc -w -Wfatal-errors -fPIC -shared -w -pipe -O3 -fno-fast-math -o /tmp/_ruby_mjit_p1287652u0.o /tmp/_ruby_mjit_p1287652u0.c -c -nostartfiles -nodefaultlibs -nostdlib
Starting process: /usr/bin/gcc /usr/bin/gcc -shared -Wfatal-errors -fPIC -shared -w -pipe -O3 -fno-fast-math -o /tmp/_ruby_mjit_p1287652u0.so /tmp/_ruby_mjit_p1287652u0.o -lgcc -Wl,--compress-debug-sections=zlib -nostartfiles -nodefaultlibs -nostdlib
JIT success (63.2ms): block in <main>@-e:1 -> /tmp/_ruby_mjit_p1287652u0.c
Hello
Stopping worker thread
Successful MJIT finish
```
```
$ TMP=./tmp ~/local/ruby-master-3c8a67e/bin/ruby --disable-gems --jit-verbose=2 --jit-save-temps --jit-min-calls=1 --jit-wait -e '1.times { puts "Hello" }'
MJIT: CC defaults to /usr/bin/gcc
MJIT: tmp_dir is ./tmp
Creating precompiled header
Starting process: /usr/bin/gcc /usr/bin/gcc -w -Wfatal-errors -fPIC -shared -w -pipe -O3 -fno-fast-math -nodefaultlibs -nostdlib -o ./tmp/_ruby_mjit_hp1287695u0.h.gch /home/jaruga/local/ruby-master-3c8a67e/include/ruby-3.1.0/x86_64-linux/rb_mjit_min_header-3.1.0.h
start compilation: block in <main>@-e:1 -> ./tmp/_ruby_mjit_p1287695u0.c
Starting process: /usr/bin/gcc /usr/bin/gcc -w -Wfatal-errors -fPIC -shared -w -pipe -O3 -fno-fast-math -o ./tmp/_ruby_mjit_p1287695u0.o ./tmp/_ruby_mjit_p1287695u0.c -c -nostartfiles -nodefaultlibs -nostdlib
./tmp/_ruby_mjit_p1287695u0.c:1:10: fatal error: ./tmp/_ruby_mjit_hp1287695u0.h: No such file or directory
1 | #include "./tmp/_ruby_mjit_hp1287695u0.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
compile_c_to_so: failed to compile .c to .o: 1
Failed to generate so: ./tmp/_ruby_mjit_p1287695u0.so
Hello
Stopping worker thread
Successful MJIT finish
```
---Files--------------------------------
ruby-3-jit-tmp-no-such-file-or-directory.log (31.2 KB)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>