JHUISI / charm

Charm: A Framework for Rapidly Prototyping Cryptosystems
http://charm-crypto.io
GNU Lesser General Public License v3.0
552 stars 167 forks source link

error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 on Raspberry Pi 3 (Debian) #207

Open VIkash2601 opened 5 years ago

VIkash2601 commented 5 years ago

While running sudo make on Raspberry Pi 3, I'm getting the below error

error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
Makefile:28: recipe for target 'all' failed
make: *** [all] Error 1

at

charm/core/math/integer/integermodule.c:130:6: error: dereferencing pointer to incomplete type ‘BIGNUM {aka struct bignum_st}’
  if(p->neg != 0) {
      ^~

I've followed the complete instructions and installed all the required packages shown in INSTALL file.

Here is my ./configure.sh report;

sudo ./configure.sh
Install prefix    /usr/local
data directory    /usr/local/share/charm
binary directory  /usr/local/bin
library directory /usr/local/lib
config directory  /usr/local/etc
Source path       /home/pi/charm
CFLAGS            -O2 -g 
CHARM_CFLAGS       -Wall -Wundef -Wwrite-strings -Wmissing-prototypes  -fstack-protector-all -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits
LDFLAGS           
make              make
python            /usr/bin/python3
python-config     /usr/bin/python3-config
build_ext options build_ext 
install           install
host CPU          armv7l
wget              /usr/bin/wget
gprof enabled     no
profiler          no
static build      no
-Werror enabled   no
integer module    yes
ecc module        yes
pairing module    yes
disable benchmark no
libm found        yes
libgmp found      yes
libpbc found      yes
libcrypto found   yes
Documentation     no
jakinyele commented 5 years ago

@VIkash2601 Which version of OpenSSL are you linking? Fix coming up shortly.

dillivanilli commented 4 years ago

Is there already a fix for that problem?