what error is it giving you? are you using the refactor branch?
https://github.com/pocesar/jhprimeminer/tree/refactorg++ -c -march=native -mtune=native -Wall -Wextra -std=c++0x -O3 -ggdb -fomit-frame-pointer -I/usr/local/include -I/usr/include -Isrc/primecoinMiner/includes/ src/primecoinMiner/bn2.cpp -o src/primecoinMiner/bn2.o
In file included from src/primecoinMiner/mpirxx.h:44,
from src/primecoinMiner/global.h:8,
from src/primecoinMiner/bn2.cpp:1:
src/primecoinMiner/mpir.h: In function ‘mp_limb_t __gmpn_add(mp_limb_t*, const mp_limb_t*, mp_size_t, const mp_limb_t*, mp_size_t)’:
src/primecoinMiner/mpir.h:1767: error: ‘GMP_NAIL_BITS’ was not declared in this scope
src/primecoinMiner/mpir.h: In function ‘mp_limb_t __gmpn_sub(mp_limb_t*, const mp_limb_t*, mp_size_t, const mp_limb_t*, mp_size_t)’:
src/primecoinMiner/mpir.h:1803: error: ‘GMP_NAIL_BITS’ was not declared in this scope
In file included from src/primecoinMiner/global.h:8,
from src/primecoinMiner/bn2.cpp:1:
src/primecoinMiner/mpirxx.h: In static member function ‘static void __gmp_binary_and::eval(__mpz_struct*, const __mpz_struct*, mpir_ui)’:
src/primecoinMiner/mpirxx.h:779: error: ‘GMP_LIMB_BITS’ was not declared in this scope
src/primecoinMiner/mpirxx.h:779: error: ‘GMP_NAIL_BITS’ was not declared in this scope
src/primecoinMiner/mpirxx.h:779: error: ‘limbs’ was not declared in this scope
src/primecoinMiner/mpirxx.h: In static member function ‘static void __gmp_binary_and::eval(__mpz_struct*, mpir_ui, const __mpz_struct*)’:
src/primecoinMiner/mpirxx.h:783: error: ‘GMP_LIMB_BITS’ was not declared in this scope