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

Test failures on ARM and PowerPC #62

Open
jayvdb opened this issue Oct 20, 2019 · 2 comments
Open

Test failures on ARM and PowerPC #62

jayvdb opened this issue Oct 20, 2019 · 2 comments

Comments

@jayvdb
Copy link
Contributor

jayvdb commented Oct 20, 2019

Could be a mix of a few different bugs in here.

[   57s] ======================================================================
[   57s] ERROR: test_char (test_types_values.ConstantsTest)
[   57s] ----------------------------------------------------------------------
[   57s] Traceback (most recent call last):
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/test_types_values.py", line 123, in test_char
[   57s]     """)
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/util.py", line 168, in convert
[   57s]     self.gen(hfile, flags, debug)
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/util.py", line 153, in gen
[   57s]     exec(output, namespace)
[   57s]   File "<string>", line 12, in <module>
[   57s] NameError: name 'x' is not defined
[   57s] 
[   57s] ======================================================================
[   57s] FAIL: test_includes (test_fast_clang.CompareSizes)
[   57s] Test sizes of pod with std include.
[   57s] ----------------------------------------------------------------------
[   57s] Traceback (most recent call last):
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/test_fast_clang.py", line 54, in test_includes
[   57s]     self.assertSizes(name)
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/util.py", line 189, in assertSizes
[   57s]     name)
[   57s] AssertionError: False is not true : int8_t was not found in source
[   57s] 
[   57s] ======================================================================
[   57s] FAIL: test_array (test_types_values.ConstantsTest)
[   57s] ----------------------------------------------------------------------
[   57s] Traceback (most recent call last):
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/test_types_values.py", line 163, in test_array
[   57s]     self.assertEqual(self.namespace.c1, [])
[   57s] AssertionError: <class 'c_ubyte_Array_1'> != []
[   57s] 
[   57s] ======================================================================
[   57s] FAIL: test_char_p (test_types_values.ConstantsTest)
[   57s] ----------------------------------------------------------------------
[   57s] Traceback (most recent call last):
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/test_types_values.py", line 136, in test_char_p
[   57s]     self.assertEqual(self.namespace.x, [])
[   57s] AssertionError: <class 'c_ubyte_Array_10'> != []
[   57s] 
[   57s] ======================================================================
[   57s] FAIL: test_extern_function_pointer (test_types_values.ConstantsTest)
[   57s] ----------------------------------------------------------------------
[   57s] Traceback (most recent call last):
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/test_types_values.py", line 271, in test_extern_function_pointer
[   57s]     'LP_c_char')
[   57s] AssertionError: 'LP_c_ubyte' != 'LP_c_char'
[   57s] - LP_c_ubyte
[   57s] + LP_c_char
@jayvdb jayvdb changed the title Test failures on ppc64le Test failures on ARM and PowerPC Oct 20, 2019
@jayvdb
Copy link
Contributor Author

jayvdb commented Oct 20, 2019

int8_t was not found in source looks like a more general problem, possible older version of a header file collection

@bnavigator
Copy link
Contributor

Fixed by export CPATH=$(clang -print-resource-dir)/include

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

2 participants