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

Makefile doesn't work for multithreaded builds #36

Open
xfbs opened this issue Nov 8, 2020 · 1 comment
Open

Makefile doesn't work for multithreaded builds #36

xfbs opened this issue Nov 8, 2020 · 1 comment

Comments

@xfbs
Copy link

xfbs commented Nov 8, 2020

With the current Makefile, it's not possible to do a multithreaded build. This is the error I get:

patrick@titus:~/Projects/PQCrypto-SIDH$ make -j16
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P434/AMD64/fp_x64.c -o objs434/fp_x64.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P434/AMD64/fp_x64_asm.S -o objs434/fp_x64_asm.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P434/P434.c -o objs434/P434.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/sha3/fips202.c -o objs/fips202.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/random/random.c -o objs/random.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P503/AMD64/fp_x64.c -o objs503/fp_x64.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P503/AMD64/fp_x64_asm.S -o objs503/fp_x64_asm.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P503/P503.c -o objs503/P503.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P610/AMD64/fp_x64.c -o objs610/fp_x64.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P610/AMD64/fp_x64_asm.S -o objs610/fp_x64_asm.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P610/P610.c -o objs610/P610.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P751/AMD64/fp_x64.c -o objs751/fp_x64.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P751/AMD64/fp_x64_asm.S -o objs751/fp_x64_asm.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P751/P751.c -o objs751/P751.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P434/P434_compressed.c -o objs434comp/P434_compressed.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P503/P503_compressed.c -o objs503comp/P503_compressed.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P610/P610_compressed.c -o objs610comp/P610_compressed.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ src/P751/P751_compressed.c -o objs751comp/P751_compressed.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ tests/aes/aes.c -o objs/aes.o
clang -c -O3      -std=gnu11 -march=native -D _AMD64_ -D __NIX__ -D _FAST_ -D _MULX_ -D _ADX_ tests/aes/aes_c.c -o objs/aes_c.o
rm -rf lib503 sike503 sidh503
ar rcs lib503/libsidh_for_testing.a objs503/P503.o objs503/fp_x64.o objs503/fp_x64_asm.o objs/random.o objs/fips202.o objs/aes.o objs/aes_c.o
mkdir lib503 sike503 sidh503
ar rcs lib503/libsidh.a objs503/P503.o objs503/fp_x64.o objs503/fp_x64_asm.o objs/random.o objs/fips202.o
ranlib lib503/libsidh.a
ranlib lib503/libsidh_for_testing.a
rm -rf lib610 sike610 sidh610
ar rcs lib610/libsidh_for_testing.a objs610/P610.o objs610/fp_x64.o objs610/fp_x64_asm.o objs/random.o objs/fips202.o objs/aes.o objs/aes_c.o
mkdir lib610 sike610 sidh610
ar: lib610/libsidh_for_testing.a: No such file or directory
make: *** [Makefile:288: lib610_for_KATs] Error 1
make: *** Waiting for unfinished jobs....
ar rcs lib610/libsidh.a objs610/P610.o objs610/fp_x64.o objs610/fp_x64_asm.o objs/random.o objs/fips202.o
ranlib lib610/libsidh.a
@thomwiggers
Copy link

This is probably fixed by #40

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