Closed noureddine-as closed 4 years ago
What's your version of GCC? What happens when you run gcc --std=c99
?
I have version 7.4.0.
I succeeded to install it finally. Actually the first time I compiled the project I've got some undefined references to some mpfr functions, so I just modified the LD_LIBRARY_PATH trying to compile with. And that's where I've got this problem. I knew later from the issues and the repo that MPFR, GMP and other deps will be downloaded locally. So I just moved to a fresh VM (Ubuntu 16.04) with no MPFR/GMP... installed. Now The installation is OK. (I had to sudo make
)
However, I get the following output for diff-roots-simple.c.out
, which, as I see, different than the result mentioned in here http://herbgrind.ucsd.edu/using-herbgrind.html
. Any idea? (I'm on a Intel(R) Xeon(R) E-2176M CPU)
..../herbgrind$ ./herbgrind.sh bench/diff-roots-simple.c.out
==1058== Herbgrind, a valgrind tool for Herbie
==1058== Copyright (C) 2016-2017, and GNU GPL'd, by Alex Sanchez-Stern
==1058== Using Valgrind-3.15.0.GIT and LibVEX; rerun with -h for copyright info
==1058== Command: bench/diff-roots-simple.c.out
==1058==
0.000000e+00
==1058==
And the output file contains the following, which is also very different than expected
Output @ diff-roots-simple.c:8 in main (addr 400695)
61.959049 bits average error
61.959049 bits max error
Aggregated over 1 instances
Influenced by erroneous expression:
(FPCore ()
(- (sqrt (+ 1.000000 1.000000e16)) (sqrt 1.000000e16)))
diff-roots-simple.c:7 in main (addr 40066D)
61.959049 bits average error
61.959049 bits max error
61.959049 bits average local error
61.959049 bits max local error
Aggregated over 1 instances
I'll have to leave it to @HazardousPeach to answer these questions, but the output file looks alright to me.
I'm going to finally close this issue, it looks like you got the right output.
I get an
Valgrind relies on a C compiler supporting C99
error when I launch make. I tried to play around with the parametrs passed to the./configure
script that builds valgrind, but I didn't succeed to build it. Any ideas ?