michalkonecny / hmpfr Goto Github PK
View Code? Open in Web Editor NEWHaskell binding to the MPFR library
License: BSD 3-Clause "New" or "Revised" License
Haskell binding to the MPFR library
License: BSD 3-Clause "New" or "Revised" License
openSUSE recently updated to mpfr 4.0.0, and it seems like this change has broken our build of hmpfr. I'm citing from https://build.opensuse.org/package/live_build_log/devel:languages:haskell:lts:10/ghc-hmpfr/openSUSE_Tumbleweed/x86_64:
[ 58s] Preprocessing library for hmpfr-0.4.3..
[ 58s] creating dist/build/Data/Number/MPFR
[ 58s] creating dist/build/Data/Number
[ 58s] creating dist/build/Data
[ 58s] creating dist/build/Data/Number
[ 58s] creating dist/build/Data/Number/MPFR
[ 58s] /usr/bin/hsc2hs '--cc=/usr/bin/gcc' '--ld=/usr/bin/gcc' '--cflag=-fno-stack-protector' '--cflag=-fuse-ld=bfd' '--lflag=-fno-stack-protector' '--lflag=-fuse-ld=bfd' '--cflag=-D__GLASGOW_HASKELL__=802' '--cflag=-Dlinux_BUILD_OS=1' '--cflag=-Dx86_64_BUILD_ARCH=1' '--cflag=-Dlinux_HOST_OS=1' '--cflag=-Dx86_64_HOST_ARCH=1' '--cflag=-Icbits' '--cflag=-DINTEGER_GMP' '--cflag=-Idist/build/autogen' '--cflag=-Idist/build/global-autogen' '--cflag=-include' '--cflag=dist/build/autogen/cabal_macros.h' '--lflag=-lmpfr' '--cflag=-I/usr/lib64/ghc-8.2.2/base-4.10.1.0/include' '--cflag=-I/usr/lib64/ghc-8.2.2/integer-gmp-1.0.1.0/include' '--cflag=-I/usr/lib64/ghc-8.2.2/include' '--lflag=-L/usr/lib64/ghc-8.2.2/base-4.10.1.0' '--lflag=-Wl,-R,/usr/lib64/ghc-8.2.2/base-4.10.1.0' '--lflag=-L/usr/lib64/ghc-8.2.2/integer-gmp-1.0.1.0' '--lflag=-Wl,-R,/usr/lib64/ghc-8.2.2/integer-gmp-1.0.1.0' '--lflag=-lgmp' '--lflag=-L/usr/lib64/ghc-8.2.2/ghc-prim-0.5.1.1' '--lflag=-Wl,-R,/usr/lib64/ghc-8.2.2/ghc-prim-0.5.1.1' '--lflag=-L/usr/lib64/ghc-8.2.2/rts' '--lflag=-Wl,-R,/usr/lib64/ghc-8.2.2/rts' '--lflag=-lm' '--lflag=-lrt' '--lflag=-ldl' '--lflag=-lffi' '--lflag=-lpthread' -o dist/build/Data/Number/MPFR/FFIhelper.hs src/Data/Number/MPFR/FFIhelper.hsc
[ 58s] In file included from FFIhelper.hsc:2:0:
[ 58s] cbits/chsmpfr.h:11:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_MPFR_PROTO’
[ 58s] __MPFR_DECLSPEC int mpfr_urandomb_deref_randstate _MPFR_PROTO ((mpfr_ptr dP, gmp_randstate_t * rsP));
[ 58s] ^~~~~~~~~~~
[ 58s] compiling dist/build/Data/Number/MPFR/FFIhelper_hsc_make.c failed (exit code 1)
[ 58s] command was: /usr/bin/gcc -c dist/build/Data/Number/MPFR/FFIhelper_hsc_make.c -o dist/build/Data/Number/MPFR/FFIhelper_hsc_make.o -fno-stack-protector -fno-stack-protector -fuse-ld=bfd -D__GLASGOW_HASKELL__=802 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Icbits -DINTEGER_GMP -Idist/build/autogen -Idist/build/global-autogen -include dist/build/autogen/cabal_macros.h -I/usr/lib64/ghc-8.2.2/base-4.10.1.0/include -I/usr/lib64/ghc-8.2.2/integer-gmp-1.0.1.0/include -I/usr/lib64/ghc-8.2.2/include -I/usr/lib64/ghc-8.2.2/include/
[ 58s] error: Bad exit status from /var/tmp/rpm-tmp.IBX3gP (%build)
Is that a known issue? Is there maybe an easy fix for that error?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.