<!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->
<!-- Describe the issue -->
<!--- What behavior did you expect? -->
<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->
<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->
<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->
<!-- Any extra information that might be useful in the debugging process. -->
<!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->
`make[1]: Entering directory '/media/lolek/Bitcoin-Node/bitcoin/src' Making install in . make[2]: Entering directory '/media/lolek/Bitcoin-Node/bitcoin/src' make[3]: Entering directory '/media/lolek/Bitcoin-Node/bitcoin/src' /bin/mkdir -p '/usr/local/bin' /usr/bin/install -c bitcoind bitcoin-cli '/usr/local/bin' make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/media/lolek/Bitcoin-Node/bitcoin/src' make[2]: Leaving directory '/media/lolek/Bitcoin-Node/bitcoin/src' Making install in qt make[2]: Entering directory '/media/lolek/Bitcoin-Node/bitcoin/src/qt' make install-recursive make[3]: Entering directory '/media/lolek/Bitcoin-Node/bitcoin/src/qt' Making install in . make[4]: Entering directory '/media/lolek/Bitcoin-Node/bitcoin/src/qt' CXX libbitcoinqt_a-bitcoin.o In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qwindowdefs.h:37:0, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:37, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmainwindow.h:37, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMainWindow:1, from bitcoingui.h:12, from bitcoin.cpp:9: /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1067:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."
error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\
^
Makefile:1232: recipe for target 'libbitcoinqt_a-bitcoin.o' failed make[4]: *** [libbitcoinqt_a-bitcoin.o] Error 1 make[4]: Leaving directory '/media/lolek/Bitcoin-Node/bitcoin/src/qt' Makefile:2578: recipe for target 'install-recursive' failed make[3]: *** [install-recursive] Error 1 make[3]: Leaving directory '/media/lolek/Bitcoin-Node/bitcoin/src/qt' Makefile:2735: recipe for target 'install' failed make[2]: *** [install] Error 2 make[2]: Leaving directory '/media/lolek/Bitcoin-Node/bitcoin/src/qt' Makefile:860: recipe for target 'install-recursive' failed make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory '/media/lolek/Bitcoin-Node/bitcoin/src' Makefile:509: recipe for target 'install-recursive' failed make: *** [install-recursive] Error 1 ` This error is thrown when trying to compile the Bitcoin Core. Any ideas what's wrong?
Thanks
Ubuntu 16.04