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

Error running Multichase #10

Open
zhqingg opened this issue Mar 29, 2019 · 2 comments
Open

Error running Multichase #10

zhqingg opened this issue Mar 29, 2019 · 2 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@zhqingg
Copy link

zhqingg commented Mar 29, 2019

Hi @johnjmar
Can you let me know if you've run into error with Memory/Multichase

clone the official multichase github repository, It showed error messages when we tried to build the binary.

./gen_expand 200 >expand.h.tmp
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
mv expand.h.tmp expand.h
cc -std=gnu99 -g -O2 -fomit-frame-pointer -fno-unroll-loops -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wmissing-declarations -Wnested-externs -Wpointer-arith -W -Wno-unused-parameter -Werror -pthread   -c -o multichase.o multichase.c
cc -std=gnu99 -g -O2 -fomit-frame-pointer -fno-unroll-loops -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wmissing-declarations -Wnested-externs -Wpointer-arith -W -Wno-unused-parameter -Werror -pthread   -c -o permutation.o permutation.c
cc -std=gnu99 -g -O2 -fomit-frame-pointer -fno-unroll-loops -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wmissing-declarations -Wnested-externs -Wpointer-arith -W -Wno-unused-parameter -Werror -pthread   -c -o arena.o arena.c
cc -std=gnu99 -g -O2 -fomit-frame-pointer -fno-unroll-loops -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wmissing-declarations -Wnested-externs -Wpointer-arith -W -Wno-unused-parameter -Werror -pthread   -c -o util.o util.c
cc -g -O2 -static -pthread  multichase.o permutation.o arena.o util.o  -lrt -o multichase
/usr/bin/ld: cannot find -lrt
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make: *** [multichase] Error 1

When we modify the below command, delete the parameter "-static" in Makefile

@@ -12,7 +12,7 @@
 # limitations under the License.
 #
 CFLAGS=-std=gnu99 -g -O2 -fomit-frame-pointer -fno-unroll-loops -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wmissing-declarations -Wnested-externs -Wpointer-arith -W -Wno-unused-parameter -Werror -pthread
-LDFLAGS=-g -O2 -pthread
+LDFLAGS=-g -O2 -static -pthread
 LDLIBS=-lrt

We successfully built the binary

@johnjmar johnjmar self-assigned this Mar 29, 2019
@johnjmar johnjmar added bug Something isn't working enhancement New feature or request labels Mar 29, 2019
@johnjmar
Copy link
Member

@zhqingg What OS are you using? what version of gcc or compiler are you using? what is your compiling environment? Would you please paste the results of running env prior to compiling?

@zhqingg
Copy link
Author

zhqingg commented Apr 1, 2019

@johnjmar Of course
OS:

Red Hat Enterprise Linux Server release 7.6 (Maipo)

gcc:

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Clone the official multichase github repository in a new path, the results of running env prior to compiling

XDG_SESSION_ID=2037
HOSTNAME=****
SELINUX_ROLE_REQUESTED=
TERM=xterm-256color
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=ip 49912 22
SELINUX_USE_CURRENT_RANGE=
SSH_TTY=/dev/pts/0
USER=root
LS_COLORS=******
MAIL=/var/spool/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
PWD=/root/Multichase/multichase
LANG=en_US.UTF-8
SELINUX_LEVEL_REQUESTED=
HISTCONTROL=ignoredups
SHLVL=1
HOME=/root
LOGNAME=root
SSH_CONNECTION=ip 49912 ip 22
LC_CTYPE=UTF-8
LESSOPEN=||/usr/bin/lesspipe.sh %s
XDG_RUNTIME_DIR=/run/user/0
_=/usr/bin/env
OLDPWD=/root/Multichase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants