Skip to content

Strawberry Perl 5.42 - asm command #86

@Solathian

Description

@Solathian

When trying to install the module via cpanm Math::Prime::Util
It complains about:

pbrent63.c:48:5: warning: implicit declaration of function 'asm' [-Wimplicit-function-declaration]
   48 |     asm("mulq %2 \n\t"
      |     ^~~
pbrent63.c:58:33: error: expected ')' before ':' token
   58 |         "addq %%rdx, %%rax \n\t"
      |                                 ^
      |                                 )
   59 |         : "=a"(a)
      |         ~

Using C99 asm is not available as a command had to replace each with:
__asm__ __volatile__

After it
gmake
gmake test
gmake install

works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions