Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nativecall failures on OS X #3793

Closed
p6rt opened this issue Apr 20, 2015 · 5 comments
Closed

nativecall failures on OS X #3793

p6rt opened this issue Apr 20, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Apr 20, 2015

Migrated from rt.perl.org#124351 (status was 'resolved')

Searchable as RT124351$

@p6rt
Copy link
Author

p6rt commented Apr 20, 2015

From @coke

$ make test
...
t/04-nativecall/02-simple-args.t ..... Dubious, test returned 2 (wstat
512, 0x200)
Failed 2/12 subtests
...

$ ./perl6 t/04-nativecall/02-simple-args.t
1..12
ok 1 - passed int 42
ok 2 - passed two shorts
ok 3 - passed an int32, int16 and int8
ok 4 - passed a double
ok 5 - passed a float
ok 6 - passed a string
ok 7 - checked previously passed string
ok 8 - wrapped sub
ok 9 - passed int64 0xFFFFFFFFFF
not ok 10 - passed uint8 0xFE

# Failed test 'passed uint8 0xFE'
# at t/04-nativecall/02-simple-args.t line 50
# expected​: '10'
# got​: '0'
not ok 11 - passed uint8 0xFFFE

# Failed test 'passed uint8 0xFFFE'
# at t/04-nativecall/02-simple-args.t line 51
# expected​: '11'
# got​: '0'
ok 12 - passed uint8 0xFFFFFFFE
# Looks like you failed 2 tests of 12

$ sw_vers
ProductName​: Mac OS X
ProductVersion​: 10.10.3
BuildVersion​: 14D136

$ gcc --version
Configured with​:
--prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target​: x86_64-apple-darwin14.3.0
Thread model​: posix

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented May 21, 2015

From @Util

Also encountered as only `make test` failure on OS X Mavericks.

$ sw_vers
ProductName​: Mac OS X
ProductVersion​: 10.9.5
BuildVersion​: 13F1077

gcc --version
Configured with​: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target​: x86_64-apple-darwin13.4.0
Thread model​: posix

bg​:~/Perl/Parrot/Git/Rakudo/rakudo $ install/bin/perl6-m t/04-nativecall/02-simple-args.t
1..12
ok 1 - passed int 42
ok 2 - passed two shorts
ok 3 - passed an int32, int16 and int8
ok 4 - passed a double
ok 5 - passed a float
ok 6 - passed a string
ok 7 - checked previously passed string
ok 8 - wrapped sub
ok 9 - passed int64 0xFFFFFFFFFF
not ok 10 - passed uint8 0xFE

# Failed test 'passed uint8 0xFE'
# at t/04-nativecall/02-simple-args.t line 50
# expected​: '10'
# got​: '0'
not ok 11 - passed uint8 0xFFFE

# Failed test 'passed uint8 0xFFFE'
# at t/04-nativecall/02-simple-args.t line 51
# expected​: '11'
# got​: '0'
ok 12 - passed uint8 0xFFFFFFFE
# Looks like you failed 2 tests of 12

@p6rt
Copy link
Author

p6rt commented Sep 16, 2015

From @coke

Current failure modes​:

$ prove -v -e ./perl6 t/04-nativecall/16-rt125408.t t/04-nativecall/11-cpp.t t/04-nativecall/13-cpp-mangling.t
t/04-nativecall/16-rt125408.t ......
1..1
not ok 1 - RT#​125408 stayed fixed

# Failed test 'RT#​125408 stayed fixed'
# at t/04-nativecall/16-rt125408.t line 15
# Wrong kind of access to numeric CArray
# Looks like you failed 1 test of 1
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
t/04-nativecall/11-cpp.t ...........
1..21
Don't know how to mangle symbol 'SizeofDerived1' for library './11-cpp.dylib'
  in sub guess-name-mangler at lib/NativeCall.pm​:207
  in method CALL-ME at lib/NativeCall.pm​:222
  in block <unit> at t/04-nativecall/11-cpp.t​:50

# Looks like you planned 21 tests, but ran 0
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 21/21 subtests
t/04-nativecall/13-cpp-mangling.t ..
1..20
Don't know how to mangle symbol 'Foo​::new' for library './13-cpp-mangling.dylib'
  in sub guess-name-mangler at lib/NativeCall.pm​:200
  in method CALL-ME at lib/NativeCall.pm​:222
  in block <unit> at t/04-nativecall/13-cpp-mangling.t​:49

# Looks like you planned 20 tests, but ran 0
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 20/20 subtests

Test Summary Report


t/04-nativecall/16-rt125408.t (Wstat​: 256 Tests​: 1 Failed​: 1)
  Failed test​: 1
  Non-zero exit status​: 1
t/04-nativecall/11-cpp.t (Wstat​: 65280 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 255
  Parse errors​: Bad plan. You planned 21 tests but ran 0.
t/04-nativecall/13-cpp-mangling.t (Wstat​: 65280 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 255
  Parse errors​: Bad plan. You planned 20 tests but ran 0.
Files=3, Tests=1, 4 wallclock secs ( 0.02 usr 0.01 sys + 4.27 cusr 0.33 csys = 4.63 CPU)
Result​: FAIL

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Sep 17, 2015

From @coke

On Wed Sep 16 10​:47​:50 2015, coke wrote​:

Current failure modes​:

$ prove -v -e ./perl6 t/04-nativecall/16-rt125408.t t/04-
nativecall/11-cpp.t t/04-nativecall/13-cpp-mangling.t
t/04-nativecall/16-rt125408.t ......
1..1
not ok 1 - RT#​125408 stayed fixed

# Failed test 'RT#​125408 stayed fixed'
# at t/04-nativecall/16-rt125408.t line 15
# Wrong kind of access to numeric CArray
# Looks like you failed 1 test of 1
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
t/04-nativecall/11-cpp.t ...........
1..21
Don't know how to mangle symbol 'SizeofDerived1' for library './11-
cpp.dylib'
in sub guess-name-mangler at lib/NativeCall.pm​:207
in method CALL-ME at lib/NativeCall.pm​:222
in block <unit> at t/04-nativecall/11-cpp.t​:50

# Looks like you planned 21 tests, but ran 0
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 21/21 subtests
t/04-nativecall/13-cpp-mangling.t ..
1..20
Don't know how to mangle symbol 'Foo​::new' for library './13-cpp-
mangling.dylib'
in sub guess-name-mangler at lib/NativeCall.pm​:200
in method CALL-ME at lib/NativeCall.pm​:222
in block <unit> at t/04-nativecall/13-cpp-mangling.t​:49

# Looks like you planned 20 tests, but ran 0
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 20/20 subtests

Test Summary Report
-------------------
t/04-nativecall/16-rt125408.t (Wstat​: 256 Tests​: 1 Failed​: 1)
Failed test​: 1
Non-zero exit status​: 1
t/04-nativecall/11-cpp.t (Wstat​: 65280 Tests​: 0 Failed​: 0)
Non-zero exit status​: 255
Parse errors​: Bad plan. You planned 21 tests but ran 0.
t/04-nativecall/13-cpp-mangling.t (Wstat​: 65280 Tests​: 0 Failed​: 0)
Non-zero exit status​: 255
Parse errors​: Bad plan. You planned 20 tests but ran 0.
Files=3, Tests=1, 4 wallclock secs ( 0.02 usr 0.01 sys + 4.27 cusr
0.33 csys = 4.63 CPU)
Result​: FAIL

Double checked after a chat with FROGGS++

The only test still failing now is 16-rt125408.t, which has its own ticket.

Resolving.
--
Will "Coke" Coleda

@p6rt p6rt closed this as completed Sep 17, 2015
@p6rt
Copy link
Author

p6rt commented Sep 17, 2015

@coke - Status changed from 'new' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant