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

Tests fail to build on the powerpc64, powerpc64le architectures: error: invalid operand for instruction #74

Open
yurivict opened this issue Jan 13, 2024 · 0 comments

Comments

@yurivict
Copy link
Contributor

yurivict commented Jan 13, 2024

In file included from /wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/test_assignment.cpp:4:
/wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/doctest.h:4985:9: error: invalid operand for instruction
        DOCTEST_ASSERT_IN_TESTS(result.m_decomp);
        ^
/wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/doctest.h:1761:9: note: expanded from macro 'DOCTEST_ASSERT_IN_TESTS'
        DOCTEST_BREAK_INTO_DEBUGGER();                                                             \
        ^
/wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/doctest.h:462:47: note: expanded from macro 'DOCTEST_BREAK_INTO_DEBUGGER'
#define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("li r0, 20\nsc\nnop\nli r0, 37\nli r4, 2\nsc\nnop\n" : : : "memory","r0","r3","r4" ) /* NOLINT */
                                              ^
<inline asm>:1:5: note: instantiated into assembly here
        li r0, 20
           ^
In file included from /wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/test_assignment.cpp:4:
/wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/doctest.h:4985:9: error: invalid operand for instruction
        DOCTEST_ASSERT_IN_TESTS(result.m_decomp);
        ^
/wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/doctest.h:1761:9: note: expanded from macro 'DOCTEST_ASSERT_IN_TESTS'
        DOCTEST_BREAK_INTO_DEBUGGER();                                                             \
        ^
/wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/doctest.h:462:68: note: expanded from macro 'DOCTEST_BREAK_INTO_DEBUGGER'
#define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("li r0, 20\nsc\nnop\nli r0, 37\nli r4, 2\nsc\nnop\n" : : : "memory","r0","r3","r4" ) /* NOLINT */
                                                                   ^
<inline asm>:4:4: note: instantiated into assembly here
li r0, 37
   ^
In file included from /wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/test_assignment.cpp:4:
/wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/doctest.h:4985:9: error: invalid operand for instruction
        DOCTEST_ASSERT_IN_TESTS(result.m_decomp);
        ^
/wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/doctest.h:1761:9: note: expanded from macro 'DOCTEST_ASSERT_IN_TESTS'
        DOCTEST_BREAK_INTO_DEBUGGER();                                                             \
        ^
/wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/doctest.h:462:79: note: expanded from macro 'DOCTEST_BREAK_INTO_DEBUGGER'
#define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("li r0, 20\nsc\nnop\nli r0, 37\nli r4, 2\nsc\nnop\n" : : : "memory","r0","r3","r4" ) /* NOLINT */
                                                                              ^
<inline asm>:5:4: note: instantiated into assembly here
li r4, 2
   ^
In file included from /wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/test_assignment.cpp:4:
/wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/doctest.h:4984:9: error: invalid operand for instruction
        DOCTEST_ASSERT_OUT_OF_TESTS(result.m_decomp);
        ^
/wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/doctest.h:1747:21: note: expanded from macro 'DOCTEST_ASSERT_OUT_OF_TESTS'
                    DOCTEST_BREAK_INTO_DEBUGGER();                                                 \
                    ^
/wrkdirs/usr/ports/math/libpoly/work/libpoly-0.1.13/test/polyxx/doctest.h:462:47: note: expanded from macro 'DOCTEST_BREAK_INTO_DEBUGGER'
#define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("li r0, 20\nsc\nnop\nli r0, 37\nli r4, 2\nsc\nnop\n" : : : "memory","r0","r3","r4" ) /* NOLINT */
                                              ^
<inline asm>:1:5: note: instantiated into assembly here
        li r0, 20
           ^

Here is the log for powerpc64.
Here is the log for powerpc64le.

FreeBSD 14.0

@yurivict yurivict changed the title Tests fail to build on the powerpc64 architecture: error: invalid operand for instruction Tests fail to build on the powerpc64, powerpc64le architectures: error: invalid operand for instruction Jan 13, 2024
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