Comments (7)
Is that on i386 or amd64?
from libsodium.
I assume this is amd64.
Can you try lowering the optimization level?
env CFLAGS='-O' ./configure && make
from libsodium.
Yes its on x86_64, still crashes, but with a shorter error
> CC libsodium_la-smult_curve25519_donna_c64.lo
> crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c: In function ‘crypto_scalarmult_curve25519’:
> crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c:424: error: unrecognizable insn:
> (insn 10460 6929 10461 20 (parallel [
> (set (reg:CC 17 flags)
> (unspec:CC [
> (reg:DI 4 si [orig:377 t$0.750 ] [377])
> (const_int 2251799813685229 [0x7ffffffffffed])
> ] 24))
> (set (reg:DI 4 si [orig:376 t$0.751 ] [376])
> (plus:DI (reg:DI 4 si [orig:377 t$0.750 ] [377])
> (const_int 2251799813685229 [0x7ffffffffffed])))
> ]) -1 (nil)
> (nil))
On 06.09.2013, at 04:04, Frank Denis [email protected] wrote:
I assume this is amd64.
Can you try lowering the optimization level?env CFLAGS='-O' ./configure && make
—
Reply to this email directly or view it on GitHub.
from libsodium.
How about -O0
?
from libsodium.
Compiled \o/
thanks for the Help
On 06.09.2013, at 05:28, Hendrik Beskow [email protected] wrote:
Yes its on x86_64, still crashes, but with a shorter error
> CC libsodium_la-smult_curve25519_donna_c64.lo > crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c: In function ‘crypto_scalarmult_curve25519’: > crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c:424: error: unrecognizable insn: > (insn 10460 6929 10461 20 (parallel [ > (set (reg:CC 17 flags) > (unspec:CC [ > (reg:DI 4 si [orig:377 t$0.750 ] [377]) > (const_int 2251799813685229 [0x7ffffffffffed]) > ] 24)) > (set (reg:DI 4 si [orig:376 t$0.751 ] [376]) > (plus:DI (reg:DI 4 si [orig:377 t$0.750 ] [377]) > (const_int 2251799813685229 [0x7ffffffffffed]))) > ]) -1 (nil) > (nil))
On 06.09.2013, at 04:04, Frank Denis [email protected] wrote:
I assume this is amd64.
Can you try lowering the optimization level?env CFLAGS='-O' ./configure && make
—
Reply to this email directly or view it on GitHub.
from libsodium.
So, that's a nasty compiler bug. gcc 4.1.2 is dead old (it was released in February 2007) and this bug has been fixed since, but I'll try to add some code to detect and work around this.
Thanks for your report!
from libsodium.
Ok, this has been done in 7544cba
Thanks!
from libsodium.
Related Issues (20)
- Chacha/box tests segfault when compiling with LLVM Polly HOT 1
- support for veilid crypto HOT 4
- aarch64 build fails after updating from 1.0.18 to 1.0.19 HOT 2
- android-ndk-r26-rc1 build error for stable HOT 6
- Why soname change from 23 to 26 HOT 1
- [UB] memcpy could be called on null dst pointer in function escrypt_r HOT 2
- Shouldn't crypto_pwdhash_PRIMITIVE be 'argon2id' ? HOT 1
- LATEST.tar.gz.sig is missing HOT 1
- Request to add amalgamation build HOT 2
- Compilation issues
- Build tries to use AVX on i386 when no support for them available HOT 9
- 64 bytes for the hash in `crypto_box_curve25519xsalsa20poly1305_seed_keypair(..)`? HOT 1
- Sodium.Core Nuget package version 1.3.4 is not getting installed in .Net 4.8 project HOT 1
- Support for Windows Arm64
- Zig build for windows platform issue HOT 1
- FreeBSD: aarch64 build fails HOT 6
- 1.0.19 mistagged? HOT 4
- `crypto_kdf_hkdf_sha{256,512}_extract_final` use `sizeof` on a pointer (in code which currently is actually not buggy)
- Several calls to `fe25519_abs` trigger `memcpy` undefined behavior
- is hashtocurve (rfc9380) implemented (especially for ristretto255?)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libsodium.