ruby-dev

Mailing list archive

[ruby-dev:50092] [Ruby trunk Bug#13489] "make test-all" fails on macOS with case-sensitive filesystem

From: watson1978@...
Date: 2017-04-20 18:44:50 UTC
List: ruby-dev #50092
Issue #13489 has been updated by watson1978 (Shizuo Fujita).


=E3=81=BE=E3=81=A0=E3=83=86=E3=82=B9=E3=83=88=E5=86=85=E5=AE=B9=E3=82=92=E8=
=AA=A4=E8=A7=A3=E3=81=97=E3=81=A6=E3=81=84=E3=82=8B=E3=82=88=E3=81=86=E3=81=
=A7

```
/System/Library/Frameworks/Ruby.framework/Headers/ruby.h
```

=E3=82=92 include =E3=81=99=E3=82=8B=E3=81=93=E3=81=A8=E3=81=AF=E6=84=8F=E5=
=9B=B3=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84=E3=81=A6=E3=80=81`#include <Ruby=
/Ruby.h>` =E3=81=A8=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=82=8B=E3=81=AE=
=E3=81=8C=E5=95=8F=E9=A1=8C=E3=81=A0=E3=81=A3=E3=81=9F=E3=81=A0=E3=81=91=E3=
=81=AA=E3=81=AE=E3=81=A7=E3=81=97=E3=82=87=E3=81=86=E3=81=8B=EF=BC=9F

```
#include <Ruby/ruby.h>
```

=E3=81=A8 conftest.c =E3=81=AB=E6=9B=B8=E3=81=8B=E3=82=8C=E3=81=A6=E3=81=84=
=E3=82=8C=E3=81=B0=E8=89=AF=E3=81=84=E3=81=A0=E3=81=91=E3=81=AE=E3=82=88=E3=
=81=86=E3=81=AA=E6=B0=97=E3=81=8C=E3=81=97=E3=81=A6=E3=81=8D=E3=81=BE=E3=81=
=97=E3=81=9F=E3=80=82

----------------------------------------
Bug #13489: "make test-all" fails on macOS with case-sensitive filesystem
https://bugs.ruby-lang.org/issues/13489#change-64412

* Author: watson1978 (Shizuo Fujita)
* Status: Feedback
* Priority: Normal
* Assignee:=20
* Target version:=20
* ruby -v:=20
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
=E6=99=AE=E6=AE=B5=E4=BD=BF=E7=94=A8=E3=81=97=E3=81=A6=E3=81=84=E3=82=8B ma=
cOS =E3=81=AF HFS+ case-sensitive =E3=81=A7=E3=83=95=E3=82=A9=E3=83=BC=E3=
=83=9E=E3=83=83=E3=83=88=E3=81=97=E3=81=A6=E3=81=84=E3=81=BE=E3=81=99=E3=80=
=82
"make test-all" =E3=82=92=E3=81=9D=E3=81=AE=E3=83=9E=E3=82=B7=E3=83=B3=E4=
=B8=8A=E3=81=A7=E5=AE=9F=E8=A1=8C=E3=81=99=E3=82=8B=E3=81=A8=E4=BB=A5=E4=B8=
=8B=E3=81=AE=E3=82=88=E3=81=86=E3=81=AA=E3=82=A8=E3=83=A9=E3=83=BC=E3=81=8C=
=E7=99=BA=E7=94=9F=E3=81=97=E3=80=81
=E3=81=A9=E3=81=86=E3=82=84=E3=82=89 conftest.c =E3=81=A7=E3=81=AE=E3=82=B3=
=E3=83=B3=E3=83=91=E3=82=A4=E3=83=AB=E3=82=A8=E3=83=A9=E3=83=BC=E3=81=8C=E5=
=8E=9F=E5=9B=A0=E3=81=AE=E3=82=88=E3=81=86=E3=81=A7=E3=81=99=E3=80=82

conftest.c =E3=81=AB=E3=81=AF

~~~
#include <Ruby/Ruby.h>
~~~

 =E3=81=A8=E3=81=84=E3=81=86=E8=A1=8C=E3=81=8C=E7=94=9F=E6=88=90=E3=81=95=
=E3=82=8C=E3=82=8B=E3=82=89=E3=81=97=E3=81=84=E3=81=AE=E3=81=A7=E3=81=99=E3=
=81=8C=E3=80=81
case-sensitive =E3=81=AA=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=82=B7=E3=82=
=B9=E3=83=86=E3=83=A0=E3=81=A7=E3=81=AF=E3=81=9D=E3=81=AE=E3=83=95=E3=82=A1=
=E3=82=A4=E3=83=AB=E3=83=91=E3=82=B9=E3=82=92=E8=A6=8B=E3=81=A4=E3=81=91=E3=
=82=8B=E3=81=93=E3=81=A8=E3=81=8C=E3=81=A7=E3=81=8D=E3=81=BE=E3=81=9B=E3=82=
=93=E3=80=82

~~~
#include <ruby/ruby.h>
~~~
=E3=81=A8=E7=94=9F=E6=88=90=E3=81=95=E3=82=8C=E3=82=8B=E3=81=B9=E3=81=8D=E3=
=81=8B=E3=81=A8=E6=80=9D=E3=81=84=E3=81=BE=E3=81=99=E3=80=82

https://github.com/ruby/ruby/blob/3e92b635fb5422207b7bbdc924e292e51e21f040/=
test/mkmf/test_framework.rb#L24-L33
=E3=81=AE have_framework("Ruby") =E3=81=A7include=E6=96=87=E3=81=8C=E7=94=
=9F=E6=88=90=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84=E3=82=8B=E3=81=AE=E3=81=8B=
=E3=81=A8=E6=80=9D=E3=82=8F=E3=82=8C=E3=81=BE=E3=81=99=E3=80=82


### =E3=82=A8=E3=83=A9=E3=83=BC=E3=83=AD=E3=82=B0

~~~
$ make test-all -j 8

... snip ...

# Running tests:


Retrying...
[  3/121] TestMkmf::TestHaveFramework#test_multi_frameworks =3D 0.10 s
  1) Failure:
TestMkmf::TestHaveFramework#test_multi_frameworks [/Users/watson/src/ruby/t=
est/mkmf/test_framework.rb:29]:
have_framework: checking for Ruby... -------------------- no

"clang -o conftest -I. -I/Users/watson/src/ruby/.ext/include/x86_64-darwin1=
6 -I/Users/watson/src/ruby/include -I./test  -I/usr/local/opt/openssl/inclu=
de -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRA=
NT   -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-par=
entheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-c=
ompare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-as=
sign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdec=
laration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration=
 -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens  -pipe conftes=
t.c  -L. -L/Users/watson/src/ruby -L/usr/local/opt/openssl/lib -L. -fstack-=
protector -L/usr/local/lib -L/usr/local/opt/openssl/lib     -lruby.2.5.0-st=
atic -framework CoreFoundation  -framework Ruby -lpthread -lgmp -ldl -lobjc=
 "
conftest.c:3:10: fatal error: 'Ruby/Ruby.h' file not found
#include <Ruby/Ruby.h>
         ^
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <Ruby/Ruby.h>
4:
5: int main(void){return 0;}
/* end */

"clang -o conftest -I. -I/Users/watson/src/ruby/.ext/include/x86_64-darwin1=
6 -I/Users/watson/src/ruby/include -I./test  -I/usr/local/opt/openssl/inclu=
de -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRA=
NT   -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-par=
entheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-c=
ompare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-as=
sign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdec=
laration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration=
 -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens  -pipe conftes=
t.c  -L. -L/Users/watson/src/ruby -L/usr/local/opt/openssl/lib -L. -fstack-=
protector -L/usr/local/lib -L/usr/local/opt/openssl/lib     -lruby.2.5.0-st=
atic -framework CoreFoundation -ObjC -framework Ruby -lpthread -lgmp -ldl -=
lobjc "
conftest.c:3:10: fatal error: 'Ruby/Ruby.h' file not found
#include <Ruby/Ruby.h>
         ^
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <Ruby/Ruby.h>
4:
5: int main(void){return 0;}
/* end */

--------------------

try as Objective-C

[  4/121] TestMkmf::TestHaveFramework#test_single_framework =3D 0.10 s
  2) Failure:
TestMkmf::TestHaveFramework#test_single_framework [/Users/watson/src/ruby/t=
est/mkmf/test_framework.rb:25]:
have_framework: checking for Ruby... -------------------- no

"clang -o conftest -I. -I/Users/watson/src/ruby/.ext/include/x86_64-darwin1=
6 -I/Users/watson/src/ruby/include -I./test  -I/usr/local/opt/openssl/inclu=
de -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRA=
NT   -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-par=
entheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-c=
ompare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-as=
sign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdec=
laration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration=
 -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens  -pipe conftes=
t.c  -L. -L/Users/watson/src/ruby -L/usr/local/opt/openssl/lib -L. -fstack-=
protector -L/usr/local/lib -L/usr/local/opt/openssl/lib     -lruby.2.5.0-st=
atic -framework CoreFoundation  -framework Ruby -lpthread -lgmp -ldl -lobjc=
 "
conftest.c:3:10: fatal error: 'Ruby/Ruby.h' file not found
#include <Ruby/Ruby.h>
         ^
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <Ruby/Ruby.h>
4:
5: int main(void){return 0;}
/* end */

"clang -o conftest -I. -I/Users/watson/src/ruby/.ext/include/x86_64-darwin1=
6 -I/Users/watson/src/ruby/include -I./test  -I/usr/local/opt/openssl/inclu=
de -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRA=
NT   -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-par=
entheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-c=
ompare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-as=
sign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdec=
laration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration=
 -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens  -pipe conftes=
t.c  -L. -L/Users/watson/src/ruby -L/usr/local/opt/openssl/lib -L. -fstack-=
protector -L/usr/local/lib -L/usr/local/opt/openssl/lib     -lruby.2.5.0-st=
atic -framework CoreFoundation -ObjC -framework Ruby -lpthread -lgmp -ldl -=
lobjc "
conftest.c:3:10: fatal error: 'Ruby/Ruby.h' file not found
#include <Ruby/Ruby.h>
         ^
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <Ruby/Ruby.h>
4:
5: int main(void){return 0;}
/* end */

--------------------

try as Objective-C

[ 20/121] TestFileExhaustive#test_expand_path =3D 0.00 s
  3) Failure:
TestFileExhaustive#test_expand_path [/Users/watson/src/ruby/test/ruby/test_=
file_exhaustive.rb:750]:
"\uFEFF".
<"/var/folders/fs/gltv6wcd3m70hcgqcp2njt_80000gn/T/rubytest-file20170420-79=
876-gvlo69/file.test"> expected but was
<"/var/folders/fs/gltv6wcd3m70hcgqcp2njt_80000gn/T/rubytest-file20170420-79=
876-gvlo69/file.test">.

Finished tests in 223.305106s, 75.8290 tests/s, 9835.1132 assertions/s.
16933 tests, 2196231 assertions, 3 failures, 0 errors, 80 skips

ruby -v: ruby 2.5.0dev (2017-04-20 trunk 58401) [x86_64-darwin16]
make: *** [yes-test-all] Error 3
[trunk][~/src/ruby]$                                                       =
                                                    rbenv:2.4.1
~~~




--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next