I'm using google's honggfuzz.
Install:
apt-get install binutils-dev libunwind-dev clang-4.0 -y
git clone https://github.com/google/honggfuzz
cd honggfuzz
make
I test compile examples/libxml2 with error
# hfuzz-clang persistent-xml2.c -o fuzz_xml
clang (LLVM option parsing): Unknown command line argument '-sanitizer-coverage-prune-blocks=0'. Try: 'clang (LLVM option parsing) -help'
clang (LLVM option parsing): Did you mean '-sanitizer-coverage-level=0'?
I google this error, but no one meets this. How could I to solve this? Need a requirement or something?
I came across the same issue. As a work around I commented out the following lines in honggfuzz/hfuzz_cc/hfuzz-cc.c:
// args[(*j)++] = "-mllvm"; // forward next arg to LLVM's option processing
// args[(*j)++] = "-sanitizer-coverage-prune-blocks=0";
From this comment the -sanitizer-coverage-prune-blocks=0 option turns off a performance optimisation but doesn't affect the code coverage statistics used by honggfuzz:
We've implemented this option because it doesn't change the coverage precision, but generates up to 1/3 less of instrumentation
My aim is just to test FFTW on a one dimensional example. I've already installed everything, following the instructions. When I try to compile:
gfortran fftg.f90 -L/usr/local/lib -lfftw3
The terminal is giving the error:
/usr/bin/ld : can't find -lfftw3
I don't understand why because it is installed on my compute and when I'm searching for it, the library of FFTW is here
/usr/local/lib$ ls
cmake libfftw3.a libfftw3.la pkgconfig python2.7 python3.4 R site_ruby
I did not find any answer. Where the error is coming from? For more details, this is my code (taken from http://homepage.ntu.edu.tw/~wttsai/fortran)
program example
implicit none
include 'fftw3.f90'
integer, parameter :: N=16
integer*8 :: PLAN_FOR,PLAN_BAC
real*8,dimension(N) :: IN,OUT,IN2
real*8 :: xj
integer :: j,k,mode
real*8, parameter ::twopi=2.*acos(-1.)
!Discrete data of function f(x)=cos(x)+0.2*sin(2x)
do j=0,N-1
xj=twopi*real(j)/real(N)
IN(j)=cos(xj) +0.2*sin(2.*xj)
end do
write(*,*) "Original data"
do j=1,N
write(*,100) j,IN(j)
end do
100 format(i4,f12.5)
! Forward transform
call dfftw_plan_r2r_1d(PLAN_FOR,N,IN,OUT,FFTW_R2HC,FFTW_ESTIMATE)
call dfftw_execute_r2r(PLAN_FOR,IN,OUT)
OUT=OUT/real(N,KIND=8)
! Normalize
write(*,*) "Fourier coefficient after forward FFT"
do k=1,N
mode=k-1
if(k > N/2+1) mode=N-k+1
write(*,100) mode,OUT(k)
end do
call dfftw_destroy_plan(PLAN_FOR)
end program example
You normally have to setup the paths too, but I see you are using -L/usr/local/lib instead. That should suffice for the linking (not necessarily for running).
But your compiled FFTW is static (.a) and you are compiling dynamically. You can try compiling with -static. If you need to link dynamically you need to install also the dynamic version (.so) of the library (i.e. NOT use -enable-static in configure).
How do you find out which version(s) of a particular library includes a given definition? In my case, I noticed that gloss fails to install with the GLFW backend...
Graphics\Gloss\Internals\Interface\Backend\GLFW.hs:12:45: error:
Module `Graphics.UI.GLFW' does not export `WindowValue(..)'
cabal: Leaving directory 'C:\Users\Jonatan\AppData\Local\Temp\cabal-tmp-
22520\gloss-1.11.1.1'
... so I'd like to find out when WindowValue was removed. I've tried Hoogle, Stackage and Hayoo, with no luck.
WindowValue was last seen in GLFW-b-0.1.0.5.
I don't understand what is up with the version bounds in gloss, they somehow require GLFW-b ≥ 1.4.1, which makes no sense.
When I attempt to install the criterion package I get the following error message: error: #error Unsupported OS/architecture/compiler!. I believe the fix is here: Restore support for 32 bit Intel CPUs . However how do I install that fix?
As I can tell from http://hackage.haskell.org/package/criterion-1.1.4.0/src/cbits/cycles.c, v1.1.4.0 includes the fix you linked to.
To use that version or a later one, add a lower bound to your dependency on criterion:
build-depends:
...
, criterion >= 1.1.4.0
...
I installed hmatrix, hmatrix-tests using the instruction given on Installation page. However I always get this error:
i386-windows-ghc-7.8.3\hmatrix-0.16.0.6\HShmatrix-0.16.0.6.o: unknown symbol `_asinh'
Please let me know how this can be fixed.