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

lib/hash/ripemd160.cpp:36:39: error: invalid input constraint 'c' in asm #2

Open
dvvvsh opened this issue Jan 24, 2022 · 4 comments
Open
Assignees
Labels
bug Something isn't working good first issue Good for newcomers M1

Comments

@dvvvsh
Copy link

dvvvsh commented Jan 24, 2022

this is what i got

jonathandoe@MacBook-Air-3 wifsolvercuda % make all
mkdir -p obj
g++ -std=c++11 -m64 -mssse3 -Wno-unused-result -Wno-write-strings -O2 -I. -I/include -o obj/ripemd160.o -c lib/hash/ripemd160.cpp
clang: warning: argument unused during compilation: '-mssse3' [-Wunused-command-line-argument]
lib/hash/ripemd160.cpp:36:39: error: invalid input constraint 'c' in asm
asm("roll %1,%0" : "+r" (x) : "c" (r));
^
1 error generated.
make: *** [all] Error 1

@PawelGorny PawelGorny added bug Something isn't working good first issue Good for newcomers labels Jan 25, 2022
@PawelGorny PawelGorny self-assigned this Jan 25, 2022
@PawelGorny
Copy link
Owner

PawelGorny commented Jan 25, 2022

Indeed.
Currently I do not have any OSX with GPU to confirm everything is OK, but I tested build of C++ part and you are right, there is problem.
Later I will see how if it is possible to prepare the same code for Linux, Windows and OSX, but for now workaround for you:

  1. "implicitly declaring library functon maloc'".... in file base58.c
    add line:
    #include <stdlib.h>
    at the end of includes

  2. "use of undeclared identifier '__buildin_ia32_sbb_u64'" in Int.h
    change
    #define _subborrow_u64(a,b,c,d) __builtin_ia32_sbb_u64(a,b,c,(long long unsigned int*)d);
    to:
    #define _subborrow_u64(a,b,c,d) __builtin_ia32_subborrow_u64(a,b,c,(long long unsigned int*)d);

  3. "invalid input constraint 'c' in asm"
    I cannot reproduce...
    Which OSX / computer do you have? Is it M1?

I do not know how to solve it yet, but I will keep you posted. I am not sure if it will be very easy to port code to ARM.

@PawelGorny PawelGorny added the M1 label Jan 25, 2022
@Radar-7528
Copy link

а можно бантик для виндовс? и CUDA 11.6 обязательно.?

@PawelGorny
Copy link
Owner

The problem is that program is written for x86, not arm - he has M1 processor.
It is on my TODO list.

@Radar-7528
Copy link

Radar-7528 commented Jan 30, 2022

Переводчик криво переводит, для чего написана программа?

я вижу WifSolverCuda.exe и RTX 30 серии.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers M1
Projects
None yet
Development

No branches or pull requests

3 participants