botan icon indicating copy to clipboard operation
botan copied to clipboard

Error compiling on Ubuntu 14.04, x86

Open aberba opened this issue 8 years ago • 5 comments

I get warning:

Running pre-generate commands for botan:base...
Notice: Botan uses many symbols. Look into switching from ld (bfd) to ld (Gold) linker to reduce link times from >15s to <2s
Performing "debug" build using dmd for x86.
botan-math 1.0.3: target for configuration "regular" is up to date.

and finally exit with error:

Enhanced memory security is enabled.
Memory debugger enabled
../../../../.dub/packages/vibe-d-0.7.30/vibe-d/source/vibe/stream/botan.d(775,16): Error: undefined identifier 'BigInt'
dmd failed with exit code 1.

aberba avatar Jan 12 '17 00:01 aberba

Hello

Could you try adding import botan.math.bigint.bigint: BigInt; at the top of the file at ../../../../.dub/packages/vibe-d-0.7.30/vibe-d/source/vibe/stream/botan.d ?

etcimon avatar Jan 12 '17 00:01 etcimon

It worked!!

Was it a problem with vibe.d?

aberba avatar Jan 12 '17 17:01 aberba

Will this be fixed in vibe 0.7? I'm still getting it on arch linux.

KrzaQ avatar Mar 12 '17 11:03 KrzaQ

I later found out botan was not well tested on x86. Some algorithms assumed x64 architecture. Bcrypt password in particular

aberba avatar Mar 12 '17 21:03 aberba

I'm getting it on x86_64, so this probably isn't it.

>  uname -a
Linux ArchVM 4.9.11-1-ARCH #1 SMP PREEMPT Sun Feb 19 13:45:52 UTC 2017 x86_64 GNU/Linux

I dunno if this deserves its own issue in this case...

KrzaQ avatar Mar 12 '17 21:03 KrzaQ