Bitcoin Forum
November 10, 2024, 11:05:51 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 [31] 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 »
  Print  
Author Topic: Building headless Bitcoin and Bitcoin-qt on Windows  (Read 419387 times)
presstab
Legendary
*
Offline Offline

Activity: 1330
Merit: 1000


Blockchain Developer


View Profile
May 06, 2014, 07:31:18 PM
 #601

I have a bunch of issues with "Previous declarations". It seems to be an issue with boost and mingw colliding. Here is error log after I enter make -f makefile.release:


You are using boost 1.49?

I have tried 55, 54, 53, and 49.

I would definitely use boost 1.55, but I am not an expert. What coin are you trying to compile?  Is it bitcoin from the thread or not?

Projects I Contribute To: libzerocoin | Veil | PIVX | HyperStake | Crown | SaluS
KaChingCoinDev
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
May 06, 2014, 07:33:16 PM
 #602

I have a bunch of issues with "Previous declarations". It seems to be an issue with boost and mingw colliding. Here is error log after I enter make -f makefile.release:


You are using boost 1.49?

I have tried 55, 54, 53, and 49.

I would definitely use boost 1.55, but I am not an expert. What coin are you trying to compile?  Is it bitcoin from the thread or not?


Any coin. Bitcoin 0.8.6, Dogecoin, etc. Personally I am trying to do KaChingCoin, but none of them are working.

Another developer told me boost 1.55 has issues, so I tried others.
KaChingCoinDev
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
May 06, 2014, 07:46:26 PM
 #603

error log with boost 55:

Quote
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\sendcoinsdialog.ui -o build\ui_sendcoinsdia
log.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\addressbookpage.ui -o build\ui_addressbookp
age.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\signverifymessagedialog.ui -o build\ui_sign
verifymessagedialog.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\aboutdialog.ui -o build\ui_aboutdialog.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\editaddressdialog.ui -o build\ui_editaddres
sdialog.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\transactiondescdialog.ui -o build\ui_transa
ctiondescdialog.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\overviewpage.ui -o build\ui_overviewpage.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\sendcoinsentry.ui -o build\ui_sendcoinsentr
y.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\askpassphrasedialog.ui -o build\ui_askpassp
hrasedialog.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\rpcconsole.ui -o build\ui_rpcconsole.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\miningpage.ui -o build\ui_miningpage.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\optionsdialog.ui -o build\ui_optionsdialog.
h
g++ -c -pipe -O2 -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -
Wextra -Wformat -Wformat-security -Wno-unused-parameter -DUNICODE -DQT_LARGEFILE
_SUPPORT -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DBOOST_THREA
D_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN -D__NO_SYSTEM_INCLUDES -DWIN32 -D_MT -DQT
_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT
_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -
I"c:\Qt\4.8.4\include\QtCore" -I"c:\Qt\4.8.4\include\QtGui" -I"c:\Qt\4.8.4\inclu
de" -I"src" -I"src\json" -I"src\qt" -I"c:\deps\boost_1_55_0\boost_1_55_0" -I"c:\
deps\db\build_unix" -I"c:\deps\ssl\include" -I"c:\Qt\4.8.4\include\ActiveQt" -I"
build" -I"build" -I"c:\Qt\4.8.4\mkspecs\win32-g++" -o release\bitcoin.o src\qt\b
itcoin.cpp
In file included from src/netbase.h:12:0,
                 from src/util.h:31,
                 from src/bignum.h:13,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
src/compat.h:29:15: error: conflicting declaration 'typedef u_int SOCKET'
c:\mingw32\bin\../lib/gcc/x86_64-w64-mingw32/4.6.2/../../../../x86_64-w64-mingw3
2/include/psdk_inc/_socket_types.h:13:18: error: 'SOCKET' has a previous declara
tion as 'typedef INT_PTR SOCKET'
In file included from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/error
s.hpp:37:0,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/excep
tions.hpp:20,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/share
d_memory_object.hpp:17,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/ipc/m
essage_queue.hpp:17,
                 from src\qt\bitcoin.cpp:23:
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/win32_api.hpp:903:11
6: warning: declaration of 'void* boost::interprocess::winapi::CreateMutexA(boos
t::interprocess::winapi::interprocess_security_attributes*, int, const char*)' w
ith C language linkage [enabled by default]
c:\deps\boost_1_55_0\boost_1_55_0/boost/thread/win32/thread_primitives.hpp:144:5
5: warning: conflicts with previous declaration 'void* boost::detail::win32::Cre
ateMutexA(boost::detail::win32::_SECURITY_ATTRIBUTES*, int, const char*)' [enabl
ed by default]
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/win32_api.hpp:908:12
7: warning: declaration of 'void* boost::interprocess::winapi::CreateSemaphoreA(
boost::interprocess::winapi::interprocess_security_attributes*, long int, long i
nt, const char*)' with C language linkage [enabled by default]
c:\deps\boost_1_55_0\boost_1_55_0/boost/thread/win32/thread_primitives.hpp:145:5
5: warning: conflicts with previous declaration 'void* boost::detail::win32::Cre
ateSemaphoreA(boost::detail::win32::_SECURITY_ATTRIBUTES*, long int, long int, c
onst char*)' [enabled by default]
In file included from c:\mingw32\bin\../lib/gcc/x86_64-w64-mingw32/4.6.2/../../.
./../x86_64-w64-mingw32/include/process.h:12:0,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detai
l/os_thread_functions.hpp:34,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detai
l/intermodule_singleton_common.hpp:22,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detai
l/windows_intermodule_singleton.hpp:26,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detai
l/tmp_dir_helpers.hpp:22,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/share
d_memory_object.hpp:22,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/ipc/m
essage_queue.hpp:17,
                 from src\qt\bitcoin.cpp:23:
c:\mingw32\bin\../lib/gcc/x86_64-w64-mingw32/4.6.2/../../../../x86_64-w64-mingw3
2/include/sys/types.h:68:16: error: conflicting declaration 'typedef _pid_t pid_
t'
src/util.h:16:13: error: 'pid_t' has a previous declaration as 'typedef int pid_
t'
In file included from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detai
l/windows_intermodule_singleton.hpp:26:0,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detai
l/tmp_dir_helpers.hpp:22,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/share
d_memory_object.hpp:22,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/ipc/m
essage_queue.hpp:17,
                 from src\qt\bitcoin.cpp:23:
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/intermodule_singleto
n_common.hpp: In static member function 'static ThreadSafeGlobalMap& boost::inte
rprocess::ipcdetail::intermodule_singleton_common<ThreadSafeGlobalMap>::get_map(
) [with ThreadSafeGlobalMap = boost::interprocess::ipcdetail::intermodule_single
ton_helpers::windows_semaphore_based_map]':
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/intermodule_singleto
n_common.hpp:126:49:   instantiated from 'static void boost::interprocess::ipcde
tail::intermodule_singleton_common<ThreadSafeGlobalMap>::initialize_singleton_lo
gic(void*&, volatile uint32_t&, void* (*)(ThreadSafeGlobalMap&), bool) [with Thr
eadSafeGlobalMap = boost::interprocess::ipcdetail::intermodule_singleton_helpers
::windows_semaphore_based_map, uint32_t = unsigned int, boost::interprocess::ipc
detail::intermodule_singleton_common<ThreadSafeGlobalMap>::singleton_constructor
_t = void*(boost::interprocess::ipcdetail::intermodule_singleton_helpers::window
s_semaphore_based_map&)]'
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/intermodule_singleto
n_common.hpp:336:7:   instantiated from 'static void boost::interprocess::ipcdet
ail::intermodule_singleton_impl<C, LazyInit, Phoenix, ThreadSafeGlobalMap>::aten
try_work() [with C = boost::interprocess::ipcdetail::windows_bootstamp, bool Laz
yInit = true, bool Phoenix = true, ThreadSafeGlobalMap = boost::interprocess::ip
cdetail::intermodule_singleton_helpers::windows_semaphore_based_map]'
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/intermodule_singleto
n_common.hpp:326:13:   instantiated from 'static C& boost::interprocess::ipcdeta
il::intermodule_singleton_impl<C, LazyInit, Phoenix, ThreadSafeGlobalMap>::get()
 [with C = boost::interprocess::ipcdetail::windows_bootstamp, bool LazyInit = tr
ue, bool Phoenix = true, ThreadSafeGlobalMap = boost::interprocess::ipcdetail::i
ntermodule_singleton_helpers::windows_semaphore_based_map]'
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/tmp_dir_helpers.hpp:
45:97:   instantiated from here
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/intermodule_singleto
n_common.hpp:205:93: warning: dereferencing type-punned pointer will break stric
t-aliasing rules [-Wstrict-aliasing]
c:\deps\boost_1_55_0\boost_1_55_0/boost/system/error_code.hpp: At global scope:
c:\deps\boost_1_55_0\boost_1_55_0/boost/system/error_code.hpp:222:36: warning: '
boost::system::posix_category' defined but not used [-Wunused-variable]
c:\deps\boost_1_55_0\boost_1_55_0/boost/system/error_code.hpp:223:36: warning: '
boost::system::errno_ecat' defined but not used [-Wunused-variable]
c:\deps\boost_1_55_0\boost_1_55_0/boost/system/error_code.hpp:224:36: warning: '
boost::system::native_ecat' defined but not used [-Wunused-variable]
mingw32-make: *** [release/bitcoin.o] Error 1
presstab
Legendary
*
Offline Offline

Activity: 1330
Merit: 1000


Blockchain Developer


View Profile
May 06, 2014, 08:01:57 PM
 #604

error log with boost 55:

Is there any particular reason that you have mingw 4.6.2?  I think it should be 4.8.2

Projects I Contribute To: libzerocoin | Veil | PIVX | HyperStake | Crown | SaluS
meelvanchris
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250



View Profile
May 06, 2014, 10:22:50 PM
Last edit: May 06, 2014, 10:34:30 PM by meelvanchris
 #605

Any coin. Bitcoin 0.8.6, Dogecoin, etc. Personally I am trying to do KaChingCoin, but none of them are working.
Another developer told me boost 1.55 has issues, so I tried others.

Code:
please use "code" to post your errors :) It's much more readable. (its the # next to the quote ballon)
Looking at long list of errors i'd say it's not the boost version (ive build with 1.53 and 1.55 working)  but more of a link inside your makefile that refers to your dependency.

Personally i would recommend starting over. Not just for the dependencies but also for state of mind. Clear everything and start from scratch. Takes an hour or two but it will save you time in the end and lots of frustration. You've had some practice so shouldnt be that hard a 2nd/3rd or 4th time...
Follow the guide to the letter to make working version of bitcoin 0.8.6. first. If that works you will have spotted something you missed and are ready to start frustrating yourself with other coins. Bitcoin with this guide is by far the easiest. Make sure to have that down first

    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄   
   ████████████████████████████████   
     ▀██████████████████████████▀     
        ▀████████████████████▀       
          ████████████████▀         
            █████████████           
            ▀████████████▀           
             ▀██████████▀             
              ██████████             
               ████████               
               ▀██████▀               
                ██████               
                 
.
trade.io.
██████
██████
███
███
███
███
███
███
███
███
███
██████
██████

▄██████████████████▄
███       ▀███████
███       █████████
███       █████████
███       █████████
███              ██
███   ▄▄▄▄▄▄▄▄   ███
███   ▄▄▄▄▄▄▄▄   ███
███              ███
███▄▄▄▄▄▄▄▄▄▄▄▄▄▄███
██████████████████▀

▄██████████████████▄
███████████▀ ███████
█████████▀   ███████
███████▀     ██▀ ███
███ ▀▀       █▄▄████
███          █▀▀▀▀██
███ ▄▄       ███████
██████▄     █▄ ▀███
█████████▄   ███▄███
███████████▄ ███████
▀██████████████████▀

▄██████████████████▄
████████████████████
███████████████▀▀ ██
█████████▀▀     ███
████▀▀     ▄█▀   ███
███▄    ▄██      ███
█████████▀      ▄██
█████████▄     ████
█████████████▄ ▄████
████████████████████
▀██████████████████▀
██████
██████
   ███
   ███
   ███
   ███
   ███
   ███
   ███
   ███
   ███
██████
██████
.
.Join the Trading Revolution.
englishbad
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
May 07, 2014, 06:01:34 AM
 #606

I'm thinking about how to get it
old c coder
Sr. Member
****
Offline Offline

Activity: 260
Merit: 251



View Profile WWW
May 10, 2014, 05:02:35 AM
 #607

...
Getting off the soapbox and high horse now... and going back to the nose to the grindstone, salt mine, dungeon...  Actually, to making the "how to build the libraries" video series for MSVC++.  Imagine a video game walk through Grin  GUI manipulation is much easier to understand by seeing rather than reading "how to".

Ron
Hello all,

I promised videos on MSVC++ static library building for bitcoind.exe & *coind.exe --
and here they are:
http://www.youtube.com/channel/UCytoaHvG3H1y9CnxZS819eQ

The links to the sources to build bitcoind.exe 0.8.6 are given in message # 43:
https://bitcointalk.org/index.php?topic=349094.msg6284139#msg6284139

The last video on actually building bitcoind.exe and one other *coind.exe using those libraries is almost done, but those practiced in the art probably won't need it Grin

I would be interested in feedback.  And I would hope that this allows a stampeding herd of Windows developers to jump in and contribute to the bitcoin and other *coin projects.

Ron


LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf 
The day is coming when a single carrot, freshly observed, will set off a revolution.  Paul Cezanne
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
May 10, 2014, 09:10:21 AM
 #608

Have any of you got this?

Quote
/libmemenv.a: error adding symbols: Archive has no index; run ranlib to add one

 Tongue

“God does not play dice"
Jori
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
May 11, 2014, 12:43:46 PM
 #609

...
Getting off the soapbox and high horse now... and going back to the nose to the grindstone, salt mine, dungeon...  Actually, to making the "how to build the libraries" video series for MSVC++.  Imagine a video game walk through Grin  GUI manipulation is much easier to understand by seeing rather than reading "how to".

Ron
Hello all,

I promised videos on MSVC++ static library building for bitcoind.exe & *coind.exe --
and here they are:
http://www.youtube.com/channel/UCytoaHvG3H1y9CnxZS819eQ

The links to the sources to build bitcoind.exe 0.8.6 are given in message # 43:
https://bitcointalk.org/index.php?topic=349094.msg6284139#msg6284139

The last video on actually building bitcoind.exe and one other *coind.exe using those libraries is almost done, but those practiced in the art probably won't need it Grin

I would be interested in feedback.  And I would hope that this allows a stampeding herd of Windows developers to jump in and contribute to the bitcoin and other *coin projects.

Ron

Excellent work Ron. This is really helpful to Windows developers. I don't have time now to review all videos, but I'll do that later after exams :-).
old c coder
Sr. Member
****
Offline Offline

Activity: 260
Merit: 251



View Profile WWW
May 11, 2014, 07:12:18 PM
 #610

Excellent work Ron. This is really helpful to Windows developers. I don't have time now to review all videos, but I'll do that later after exams :-).
Hello Jori,

There are only four of them, ranging from ~2 minutes to less than 12 minutes.  All totaling less than 28 minutes.   They might even help your thought processes and thereby assist you at exam time Grin

Ron


LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf 
The day is coming when a single carrot, freshly observed, will set off a revolution.  Paul Cezanne
spring.yu
Member
**
Offline Offline

Activity: 115
Merit: 10

Cryptocurrencies is future


View Profile
May 12, 2014, 07:00:19 AM
 #611

Working fine out of the box for me. Could you post your gcc -v output?
o3u
Sr. Member
****
Offline Offline

Activity: 393
Merit: 250


Money comes, money goes


View Profile
May 12, 2014, 06:34:24 PM
 #612

hi,

i have this problem when doing mingw32-make Makefile.release on the modified small change clone:

Code:
c:\Users\XXX>mingw32-make -f Make
file.Release
g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -fdiagnostics-show-option -Wa
ll -Wextra -Wformat -Wformat-security -Wno-unused-parameter -fexceptions -mthrea
ds -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV
6 -DUSE_UPNP=1 -DSTATICLIB -DWIN32 -D_MT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI
_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"src" -I"src\json" -I"src\qt" -I"..\..\..\
..\..\deps" -I"..\..\..\..\..\deps\boost" -I"..\..\..\..\..\deps\db-4.8.30.NC\bu
ild_unix" -I"..\..\..\..\..\deps\openssl-1.0.1e\include" -I"..\..\..\..\..\Qt\5.
2.1\qtbase-opensource-src-5.2.1\include" -I"..\..\..\..\..\Qt\5.2.1\qtbase-opens
ource-src-5.2.1\include\QtWidgets" -I"..\..\..\..\..\Qt\5.2.1\qtbase-opensource-
src-5.2.1\include\QtGui" -I"..\..\..\..\..\Qt\5.2.1\qtbase-opensource-src-5.2.1\
include\QtCore" -I"build" -I"build" -I"..\..\..\..\..\Qt\5.2.1\qtbase-opensource
-src-5.2.1\mkspecs\win32-g++" -o build\bitcoin.o src\qt\bitcoin.cpp
In file included from ..\..\..\..\..\deps\boost/boost/bind/bind.hpp:29:0,
                 from ..\..\..\..\..\deps\boost/boost/bind.hpp:22,
                 from ..\..\..\..\..\deps\boost/boost/thread/detail/thread.hpp:2
9,
                 from ..\..\..\..\..\deps\boost/boost/thread/thread_only.hpp:22,

                 from ..\..\..\..\..\deps\boost/boost/thread/thread.hpp:12,
                 from ..\..\..\..\..\deps\boost/boost/thread.hpp:13,
                 from src/util.h:22,
                 from src/bignum.h:13,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
..\..\..\..\..\deps\boost/boost/bind/arg.hpp: In constructor 'boost::arg<I>::arg
(const T&)':
..\..\..\..\..\deps\boost/boost/bind/arg.hpp:37:22: warning: typedef 'T_must_be_
placeholder' locally defined but not used [-Wunused-local-typedefs]
         typedef char T_must_be_placeholder[ I == is_placeholder<T>::value? 1: -
1 ];
                      ^
In file included from ..\..\..\..\..\deps\boost/boost/tuple/tuple.hpp:33:0,
                 from ..\..\..\..\..\deps\boost/boost/thread/detail/async_func.h
pp:37,
                 from ..\..\..\..\..\deps\boost/boost/thread/future.hpp:22,
                 from ..\..\..\..\..\deps\boost/boost/thread.hpp:24,
                 from src/util.h:22,
                 from src/bignum.h:13,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
..\..\..\..\..\deps\boost/boost/tuple/detail/tuple_basic.hpp: In function 'typen
ame boost::tuples::access_traits<typename boost::tuples::element<N, boost::tuple
s::cons<HT, TT> >::type>::const_type boost::tuples::get(const boost::tuples::con
s<HT, TT>&)':
..\..\..\..\..\deps\boost/boost/tuple/detail/tuple_basic.hpp:228:45: warning: ty
pedef 'cons_element' locally defined but not used [-Wunused-local-typedefs]
   typedef BOOST_DEDUCED_TYPENAME impl::type cons_element;
                                             ^
In file included from src/bignum.h:13:0,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
..\..\..\..\..\Qt\5.2.1\qtbase-opensource-src-5.2.1\include/QtCore/../../src/cor
elib/kernel/qeventloop.h: At global scope:
src/util.h:39:29: error: expected ',' or '...' before 'for'
 #define loop                for (;;)
                             ^
..\..\..\..\..\Qt\5.2.1\qtbase-opensource-src-5.2.1\include/QtCore/../../src/cor
elib/kernel/qeventloop.h:96:43: note: in expansion of macro 'loop'
     explicit QEventLoopLocker(QEventLoop *loop);
                                           ^
src/util.h:39:34: error: expected ')' before ';' token
 #define loop                for (;;)
                                  ^
..\..\..\..\..\Qt\5.2.1\qtbase-opensource-src-5.2.1\include/QtCore/../../src/cor
elib/kernel/qeventloop.h:96:43: note: in expansion of macro 'loop'
     explicit QEventLoopLocker(QEventLoop *loop);
                                           ^
src/util.h:39:36: error: expected unqualified-id before ')' token
 #define loop                for (;;)
                                    ^
..\..\..\..\..\Qt\5.2.1\qtbase-opensource-src-5.2.1\include/QtCore/../../src/cor
elib/kernel/qeventloop.h:96:43: note: in expansion of macro 'loop'
     explicit QEventLoopLocker(QEventLoop *loop);
                                           ^
In file included from ..\..\..\..\..\deps\boost/boost/interprocess/errors.hpp:37
:0,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/exceptions.hp
p:20,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/shared_memory
_object.hpp:17,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/ipc/message_q
ueue.hpp:17,
                 from src\qt\bitcoin.cpp:23:
..\..\..\..\..\deps\boost/boost/interprocess/detail/win32_api.hpp:903:116: warni
ng: declaration of 'void* boost::interprocess::winapi::CreateMutexA(boost::inter
process::winapi::interprocess_security_attributes*, int, const char*)' with C la
nguage linkage [enabled by default]
 extern "C" __declspec(dllimport) void * __stdcall CreateMutexA(interprocess_sec
urity_attributes*, int, const char *);

                                    ^
In file included from ..\..\..\..\..\deps\boost/boost/thread/win32/thread_data.h
pp:11:0,
                 from ..\..\..\..\..\deps\boost/boost/thread/thread_only.hpp:15,

                 from ..\..\..\..\..\deps\boost/boost/thread/thread.hpp:12,
                 from ..\..\..\..\..\deps\boost/boost/thread.hpp:13,
                 from src/util.h:22,
                 from src/bignum.h:13,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
..\..\..\..\..\deps\boost/boost/thread/win32/thread_primitives.hpp:144:55: warni
ng: conflicts with previous declaration 'void* boost::detail::win32::CreateMutex
A(boost::detail::win32::_SECURITY_ATTRIBUTES*, int, const char*)' [enabled by de
fault]
                 __declspec(dllimport) void* __stdcall CreateMutexA(_SECURITY_AT
TRIBUTES*,int,char const*);
                                                       ^
In file included from ..\..\..\..\..\deps\boost/boost/interprocess/errors.hpp:37
:0,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/exceptions.hp
p:20,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/shared_memory
_object.hpp:17,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/ipc/message_q
ueue.hpp:17,
                 from src\qt\bitcoin.cpp:23:
..\..\..\..\..\deps\boost/boost/interprocess/detail/win32_api.hpp:908:127: warni
ng: declaration of 'void* boost::interprocess::winapi::CreateSemaphoreA(boost::i
nterprocess::winapi::interprocess_security_attributes*, long int, long int, cons
t char*)' with C language linkage [enabled by default]
 extern "C" __declspec(dllimport) void * __stdcall CreateSemaphoreA(interprocess
_security_attributes*, long, long, const char *);

                                               ^
In file included from ..\..\..\..\..\deps\boost/boost/thread/win32/thread_data.h
pp:11:0,
                 from ..\..\..\..\..\deps\boost/boost/thread/thread_only.hpp:15,

                 from ..\..\..\..\..\deps\boost/boost/thread/thread.hpp:12,
                 from ..\..\..\..\..\deps\boost/boost/thread.hpp:13,
                 from src/util.h:22,
                 from src/bignum.h:13,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
..\..\..\..\..\deps\boost/boost/thread/win32/thread_primitives.hpp:145:55: warni
ng: conflicts with previous declaration 'void* boost::detail::win32::CreateSemap
horeA(boost::detail::win32::_SECURITY_ATTRIBUTES*, long int, long int, const cha
r*)' [enabled by default]
                 __declspec(dllimport) void* __stdcall CreateSemaphoreA(_SECURIT
Y_ATTRIBUTES*,long,long,char const*);
                                                       ^
src\qt\bitcoin.cpp: In function 'int qMain(int, char**)':
src\qt\bitcoin.cpp:150:5: error: 'setCodecForTr' is not a member of 'QTextCodec'

     QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
     ^
src\qt\bitcoin.cpp:151:5: error: 'setCodecForCStrings' is not a member of 'QText
Codec'
     QTextCodec::setCodecForCStrings(QTextCodec::codecForTr());
     ^
src\qt\bitcoin.cpp:151:37: error: 'codecForTr' is not a member of 'QTextCodec'
     QTextCodec::setCodecForCStrings(QTextCodec::codecForTr());
                                     ^
In file included from ..\..\..\..\..\deps\boost/boost/thread/shared_mutex.hpp:18
:0,
                 from ..\..\..\..\..\deps\boost/boost/thread/detail/thread_group
.hpp:9,
                 from ..\..\..\..\..\deps\boost/boost/thread/thread.hpp:13,
                 from ..\..\..\..\..\deps\boost/boost/thread.hpp:13,
                 from src/util.h:22,
                 from src/bignum.h:13,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
..\..\..\..\..\deps\boost/boost/thread/win32/shared_mutex.hpp: In instantiation
of 'T boost::shared_mutex::interlocked_compare_exchange(T*, T, T) [with T = boos
t::shared_mutex::state_data]':
..\..\..\..\..\deps\boost/boost/thread/win32/shared_mutex.hpp:124:103:   require
d from here
..\..\..\..\..\deps\boost/boost/thread/win32/shared_mutex.hpp:52:99: warning: de
referencing type-punned pointer will break strict-aliasing rules [-Wstrict-alias
ing]
                                                               *reinterpret_cast
<long*>(&comparand));

                   ^
..\..\..\..\..\deps\boost/boost/thread/win32/shared_mutex.hpp:52:99: warning: de
referencing type-punned pointer will break strict-aliasing rules [-Wstrict-alias
ing]
..\..\..\..\..\deps\boost/boost/thread/win32/shared_mutex.hpp:53:52: warning: de
referencing type-punned pointer will break strict-aliasing rules [-Wstrict-alias
ing]
             return *reinterpret_cast<T const*>(&res);
                                                    ^
..\..\..\..\..\deps\boost/boost/thread/win32/shared_mutex.hpp:53:52: warning: de
referencing type-punned pointer will break strict-aliasing rules [-Wstrict-alias
ing]
In file included from ..\..\..\..\..\deps\boost/boost/interprocess/detail/window
s_intermodule_singleton.hpp:26:0,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/detail/tmp_di
r_helpers.hpp:22,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/shared_memory
_object.hpp:22,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/ipc/message_q
ueue.hpp:17,
                 from src\qt\bitcoin.cpp:23:
..\..\..\..\..\deps\boost/boost/interprocess/detail/intermodule_singleton_common
.hpp: In instantiation of 'static ThreadSafeGlobalMap& boost::interprocess::ipcd
etail::intermodule_singleton_common<ThreadSafeGlobalMap>::get_map() [with Thread
SafeGlobalMap = boost::interprocess::ipcdetail::intermodule_singleton_helpers::w
indows_semaphore_based_map]':
..\..\..\..\..\deps\boost/boost/interprocess/detail/intermodule_singleton_common
.hpp:126:48:   required from 'static void boost::interprocess::ipcdetail::interm
odule_singleton_common<ThreadSafeGlobalMap>::initialize_singleton_logic(void*&,
volatile uint32_t&, void* (*)(ThreadSafeGlobalMap&), bool) [with ThreadSafeGloba
lMap = boost::interprocess::ipcdetail::intermodule_singleton_helpers::windows_se
maphore_based_map; uint32_t = unsigned int; boost::interprocess::ipcdetail::inte
rmodule_singleton_common<ThreadSafeGlobalMap>::singleton_constructor_t = void*(b
oost::interprocess::ipcdetail::intermodule_singleton_helpers::windows_semaphore_
based_map&)]'
..\..\..\..\..\deps\boost/boost/interprocess/detail/intermodule_singleton_common
.hpp:337:103:   required from 'static void boost::interprocess::ipcdetail::inter
module_singleton_impl<C, LazyInit, Phoenix, ThreadSafeGlobalMap>::atentry_work()
 [with C = boost::interprocess::ipcdetail::windows_bootstamp; bool LazyInit = tr
ue; bool Phoenix = true; ThreadSafeGlobalMap = boost::interprocess::ipcdetail::i
ntermodule_singleton_helpers::windows_semaphore_based_map]'
..\..\..\..\..\deps\boost/boost/interprocess/detail/intermodule_singleton_common
.hpp:326:26:   required from 'static C& boost::interprocess::ipcdetail::intermod
ule_singleton_impl<C, LazyInit, Phoenix, ThreadSafeGlobalMap>::get() [with C = b
oost::interprocess::ipcdetail::windows_bootstamp; bool LazyInit = true; bool Pho
enix = true; ThreadSafeGlobalMap = boost::interprocess::ipcdetail::intermodule_s
ingleton_helpers::windows_semaphore_based_map]'
..\..\..\..\..\deps\boost/boost/interprocess/detail/tmp_dir_helpers.hpp:45:97:
 required from here
..\..\..\..\..\deps\boost/boost/interprocess/detail/intermodule_singleton_common
.hpp:205:93: warning: dereferencing type-punned pointer will break strict-aliasi
ng rules [-Wstrict-aliasing]
       return *static_cast<ThreadSafeGlobalMap *>(static_cast<void *>(&mem_holde
r.map_mem[0]));

             ^
In file included from ..\..\..\..\..\deps\boost/boost/system/system_error.hpp:14
:0,
                 from ..\..\..\..\..\deps\boost/boost/thread/exceptions.hpp:22,
                 from ..\..\..\..\..\deps\boost/boost/thread/win32/thread_primit
ives.hpp:16,
                 from ..\..\..\..\..\deps\boost/boost/thread/win32/thread_data.h
pp:11,
                 from ..\..\..\..\..\deps\boost/boost/thread/thread_only.hpp:15,

                 from ..\..\..\..\..\deps\boost/boost/thread/thread.hpp:12,
                 from ..\..\..\..\..\deps\boost/boost/thread.hpp:13,
                 from src/util.h:22,
                 from src/bignum.h:13,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
..\..\..\..\..\deps\boost/boost/system/error_code.hpp: At global scope:
..\..\..\..\..\deps\boost/boost/system/error_code.hpp:222:36: warning: 'boost::s
ystem::posix_category' defined but not used [-Wunused-variable]
     static const error_category &  posix_category = generic_category();
                                    ^
..\..\..\..\..\deps\boost/boost/system/error_code.hpp:223:36: warning: 'boost::s
ystem::errno_ecat' defined but not used [-Wunused-variable]
     static const error_category &  errno_ecat     = generic_category();
                                    ^
..\..\..\..\..\deps\boost/boost/system/error_code.hpp:224:36: warning: 'boost::s
ystem::native_ecat' defined but not used [-Wunused-variable]
     static const error_category &  native_ecat    = system_category();
                                    ^
Makefile.Release:10542: recipe for target 'build/bitcoin.o' failed
mingw32-make: *** [build/bitcoin.o] Error 1

c:\Users\XXX>


I noticed someone else had it earlier in the thread but no solution was mentioned, has anyone had this and solved it?
old c coder
Sr. Member
****
Offline Offline

Activity: 260
Merit: 251



View Profile WWW
May 12, 2014, 07:18:46 PM
 #613

hi,
i have this problem when doing mingw32-make Makefile.release on the modified small change clone:
Code:
c:\Users\XXX>mingw32-make -f Make
file.Release
g++ -c ... src\qt\bitcoin.cpp
...
..\..\..\..\..\Qt\5.2.1\qtbase-opensource-src-5.2.1\include/QtCore/../../src/cor
elib/kernel/qeventloop.h: At global scope:
src/util.h:39:29: error: expected ',' or '...' before 'for'
 #define loop                for (;;)
                             ^
..\..\..\..\..\Qt\5.2.1\qtbase-opensource-src-5.2.1\include/QtCore/../../src/cor
elib/kernel/qeventloop.h:96:43: note: in expansion of macro 'loop'
     explicit QEventLoopLocker(QEventLoop *loop);
                                           ^
src/util.h:39:34: error: expected ')' before ';' token
 #define loop                for (;;)
                                  ^
...
I noticed someone else had it earlier in the thread but no solution was mentioned, has anyone had this and solved it?
The first error I see in that long text capture is in regard loop.  To that end, see message # 1 in this forum:
https://bitcointalk.org/index.php?topic=149479.msg1587734#msg1587734.  Towards the end of that message you will find provisos on the deficiencies of the Qt make system (?) vis a vis C style macros.  You have to fix them one at a time.  So fix that and recompile-make-whatever and chase the next error.

Or come over to the dark side and build using MSVS Roll Eyes

Ron


LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf 
The day is coming when a single carrot, freshly observed, will set off a revolution.  Paul Cezanne
o3u
Sr. Member
****
Offline Offline

Activity: 393
Merit: 250


Money comes, money goes


View Profile
May 12, 2014, 09:52:02 PM
 #614

Quote
The first error I see in that long text capture is in regard loop.  To that end, see message # 1 in this forum:
https://bitcointalk.org/index.php?topic=149479.msg1587734#msg1587734.  Towards the end of that message you will find provisos on the deficiencies of the Qt make system (?) vis a vis C style macros.  You have to fix them one at a time.  So fix that and recompile-make-whatever and chase the next error.

Or come over to the dark side and build using MSVS Roll Eyes

Ron


whoops, this is actually the error i'm getting:

Code:
c:\deps\xxxxx>mingw32-make -f Makefile.Release
g++ -c -pipe -msse2 -O2 -frtti -fexceptions -mthreads -fdiagnostics-show-option
-Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector
 -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DBOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN -D__NO_SYSTEM_IN
CLUDES -DUSE_IPV6=1 -DWIN32 -D_MT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_
HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THRE
AD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\Qt\4.8.4\include\QtCore" -I"..\..\Qt\4.8.4\
include\QtGui" -I"..\..\Qt\4.8.4\include" -I"src" -I"src\json" -I"src\qt" -I"..\
boost_1_55_0" -I"..\db-4.8.30.NC\build_unix" -I"..\openssl-1.0.1g\include" -I"..
\..\Qt\4.8.4\include\ActiveQt" -I"build" -I"build" -I"..\..\Qt\4.8.4\mkspecs\def
ault" -o build\bitcoin.o src\qt\bitcoin.cpp
In file included from ..\boost_1_55_0/boost/bind/bind.hpp:29:0,
                 from ..\boost_1_55_0/boost/bind.hpp:22,
                 from ..\boost_1_55_0/boost/thread/detail/thread.hpp:29,
                 from ..\boost_1_55_0/boost/thread/thread_only.hpp:22,
                 from ..\boost_1_55_0/boost/thread/thread.hpp:12,
                 from ..\boost_1_55_0/boost/thread.hpp:13,
                 from src/util.h:22,
                 from src/bignum.h:13,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
..\boost_1_55_0/boost/bind/arg.hpp: In constructor 'boost::arg<I>::arg(const T&)
':
..\boost_1_55_0/boost/bind/arg.hpp:37:22: warning: typedef 'T_must_be_placeholde
r' locally defined but not used [-Wunused-local-typedefs]
         typedef char T_must_be_placeholder[ I == is_placeholder<T>::value? 1: -
1 ];
                      ^
In file included from ..\boost_1_55_0/boost/tuple/tuple.hpp:33:0,
                 from ..\boost_1_55_0/boost/thread/detail/async_func.hpp:37,
                 from ..\boost_1_55_0/boost/thread/future.hpp:22,
                 from ..\boost_1_55_0/boost/thread.hpp:24,
                 from src/util.h:22,
                 from src/bignum.h:13,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
..\boost_1_55_0/boost/tuple/detail/tuple_basic.hpp: In function 'typename boost:
:tuples::access_traits<typename boost::tuples::element<N, boost::tuples::cons<HT
, TT> >::type>::const_type boost::tuples::get(const boost::tuples::cons<HT, TT>&
)':
..\boost_1_55_0/boost/tuple/detail/tuple_basic.hpp:228:45: warning: typedef 'con
s_element' locally defined but not used [-Wunused-local-typedefs]
   typedef BOOST_DEDUCED_TYPENAME impl::type cons_element;
                                             ^
In file included from src/bignum.h:13:0,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
src/util.h: At global scope:
src/util.h:555:16: error: conflicting declaration 'typedef void* pthread_t'
 typedef HANDLE pthread_t;
                ^
In file included from C:/mingw32/i686-w64-mingw32/include/c++/i686-w64-mingw32/b
its/gthr-default.h:35:0,
                 from C:/mingw32/i686-w64-mingw32/include/c++/i686-w64-mingw32/b
its/gthr.h:148,
                 from C:/mingw32/i686-w64-mingw32/include/c++/ext/atomicity.h:35
,
                 from C:/mingw32/i686-w64-mingw32/include/c++/bits/basic_string.
h:39,
                 from C:/mingw32/i686-w64-mingw32/include/c++/string:52,
                 from ..\..\Qt\4.8.4\include/QtCore/../../src/corelib/tools/qstr
ing.h:54,
                 from ..\..\Qt\4.8.4\include/QtCore/qstring.h:1,
                 from ..\..\Qt\4.8.4\include/QtCore/../../src/corelib/kernel/qob
ject.h:48,
                 from ..\..\Qt\4.8.4\include/QtCore/qobject.h:1,
                 from ..\..\Qt\4.8.4\include/QtGui/../../src/gui/kernel/qwidget.
h:46,
                 from ..\..\Qt\4.8.4\include/QtGui/qwidget.h:1,
                 from ..\..\Qt\4.8.4\include\QtGui/../../src/gui/widgets/qmainwi
ndow.h:45,
                 from ..\..\Qt\4.8.4\include\QtGui/qmainwindow.h:1,
                 from ..\..\Qt\4.8.4\include\QtGui/QMainWindow:1,
                 from src\qt\bitcoingui.h:4,
                 from src\qt\bitcoin.cpp:4:
C:/mingw32/i686-w64-mingw32/include/pthread.h:196:19: error: 'pthread_t' has a p
revious declaration as 'typedef uintptr_t pthread_t'
 typedef uintptr_t pthread_t;
                   ^
In file included from src/bignum.h:13:0,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
src/util.h: In function 'pthread_t CreateThread(void (*)(void*), void*, bool)':
src/util.h:578:12: error: invalid conversion from 'HANDLE {aka void*}' to 'pthre
ad_t {aka unsigned int}' [-fpermissive]
     return hthread;
            ^
In file included from ..\boost_1_55_0/boost/interprocess/errors.hpp:37:0,
                 from ..\boost_1_55_0/boost/interprocess/exceptions.hpp:20,
                 from ..\boost_1_55_0/boost/interprocess/shared_memory_object.hp
p:17,
                 from ..\boost_1_55_0/boost/interprocess/ipc/message_queue.hpp:1
7,
                 from src\qt\bitcoin.cpp:23:
..\boost_1_55_0/boost/interprocess/detail/win32_api.hpp: At global scope:
..\boost_1_55_0/boost/interprocess/detail/win32_api.hpp:903:116: warning: declar
ation of 'void* boost::interprocess::winapi::CreateMutexA(boost::interprocess::w
inapi::interprocess_security_attributes*, int, const char*)' with C language lin
kage [enabled by default]
 extern "C" __declspec(dllimport) void * __stdcall CreateMutexA(interprocess_sec
urity_attributes*, int, const char *);

                                    ^
In file included from ..\boost_1_55_0/boost/thread/win32/thread_data.hpp:11:0,
                 from ..\boost_1_55_0/boost/thread/thread_only.hpp:15,
                 from ..\boost_1_55_0/boost/thread/thread.hpp:12,
                 from ..\boost_1_55_0/boost/thread.hpp:13,
                 from src/util.h:22,
                 from src/bignum.h:13,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
..\boost_1_55_0/boost/thread/win32/thread_primitives.hpp:144:55: warning: confli
cts with previous declaration 'void* boost::detail::win32::CreateMutexA(boost::d
etail::win32::_SECURITY_ATTRIBUTES*, int, const char*)' [enabled by default]
                 __declspec(dllimport) void* __stdcall CreateMutexA(_SECURITY_AT
TRIBUTES*,int,char const*);
                                                       ^
In file included from ..\boost_1_55_0/boost/interprocess/errors.hpp:37:0,
                 from ..\boost_1_55_0/boost/interprocess/exceptions.hpp:20,
                 from ..\boost_1_55_0/boost/interprocess/shared_memory_object.hp
p:17,
                 from ..\boost_1_55_0/boost/interprocess/ipc/message_queue.hpp:1
7,
                 from src\qt\bitcoin.cpp:23:
..\boost_1_55_0/boost/interprocess/detail/win32_api.hpp:908:127: warning: declar
ation of 'void* boost::interprocess::winapi::CreateSemaphoreA(boost::interproces
s::winapi::interprocess_security_attributes*, long int, long int, const char*)'
with C language linkage [enabled by default]
 extern "C" __declspec(dllimport) void * __stdcall CreateSemaphoreA(interprocess
_security_attributes*, long, long, const char *);

                                               ^
In file included from ..\boost_1_55_0/boost/thread/win32/thread_data.hpp:11:0,
                 from ..\boost_1_55_0/boost/thread/thread_only.hpp:15,
                 from ..\boost_1_55_0/boost/thread/thread.hpp:12,
                 from ..\boost_1_55_0/boost/thread.hpp:13,
                 from src/util.h:22,
                 from src/bignum.h:13,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
..\boost_1_55_0/boost/thread/win32/thread_primitives.hpp:145:55: warning: confli
cts with previous declaration 'void* boost::detail::win32::CreateSemaphoreA(boos
t::detail::win32::_SECURITY_ATTRIBUTES*, long int, long int, const char*)' [enab
led by default]
                 __declspec(dllimport) void* __stdcall CreateSemaphoreA(_SECURIT
Y_ATTRIBUTES*,long,long,char const*);
                                                       ^
In file included from ..\boost_1_55_0/boost/interprocess/detail/windows_intermod
ule_singleton.hpp:26:0,
                 from ..\boost_1_55_0/boost/interprocess/detail/tmp_dir_helpers.
hpp:22,
                 from ..\boost_1_55_0/boost/interprocess/shared_memory_object.hp
p:22,
                 from ..\boost_1_55_0/boost/interprocess/ipc/message_queue.hpp:1
7,
                 from src\qt\bitcoin.cpp:23:
..\boost_1_55_0/boost/interprocess/detail/intermodule_singleton_common.hpp: In i
nstantiation of 'static ThreadSafeGlobalMap& boost::interprocess::ipcdetail::int
ermodule_singleton_common<ThreadSafeGlobalMap>::get_map() [with ThreadSafeGlobal
Map = boost::interprocess::ipcdetail::intermodule_singleton_helpers::windows_sem
aphore_based_map]':
..\boost_1_55_0/boost/interprocess/detail/intermodule_singleton_common.hpp:126:4
8:   required from 'static void boost::interprocess::ipcdetail::intermodule_sing
leton_common<ThreadSafeGlobalMap>::initialize_singleton_logic(void*&, volatile u
int32_t&, void* (*)(ThreadSafeGlobalMap&), bool) [with ThreadSafeGlobalMap = boo
st::interprocess::ipcdetail::intermodule_singleton_helpers::windows_semaphore_ba
sed_map; uint32_t = unsigned int; boost::interprocess::ipcdetail::intermodule_si
ngleton_common<ThreadSafeGlobalMap>::singleton_constructor_t = void*(boost::inte
rprocess::ipcdetail::intermodule_singleton_helpers::windows_semaphore_based_map&
)]'
..\boost_1_55_0/boost/interprocess/detail/intermodule_singleton_common.hpp:337:1
03:   required from 'static void boost::interprocess::ipcdetail::intermodule_sin
gleton_impl<C, LazyInit, Phoenix, ThreadSafeGlobalMap>::atentry_work() [with C =
 boost::interprocess::ipcdetail::windows_bootstamp; bool LazyInit = true; bool P
hoenix = true; ThreadSafeGlobalMap = boost::interprocess::ipcdetail::intermodule
_singleton_helpers::windows_semaphore_based_map]'
..\boost_1_55_0/boost/interprocess/detail/intermodule_singleton_common.hpp:326:2
6:   required from 'static C& boost::interprocess::ipcdetail::intermodule_single
ton_impl<C, LazyInit, Phoenix, ThreadSafeGlobalMap>::get() [with C = boost::inte
rprocess::ipcdetail::windows_bootstamp; bool LazyInit = true; bool Phoenix = tru
e; ThreadSafeGlobalMap = boost::interprocess::ipcdetail::intermodule_singleton_h
elpers::windows_semaphore_based_map]'
..\boost_1_55_0/boost/interprocess/detail/tmp_dir_helpers.hpp:45:97:   required
from here
..\boost_1_55_0/boost/interprocess/detail/intermodule_singleton_common.hpp:205:9
3: warning: dereferencing type-punned pointer will break strict-aliasing rules [
-Wstrict-aliasing]
       return *static_cast<ThreadSafeGlobalMap *>(static_cast<void *>(&mem_holde
r.map_mem[0]));

             ^
In file included from ..\boost_1_55_0/boost/system/system_error.hpp:14:0,
                 from ..\boost_1_55_0/boost/thread/exceptions.hpp:22,
                 from ..\boost_1_55_0/boost/thread/win32/thread_primitives.hpp:1
6,
                 from ..\boost_1_55_0/boost/thread/win32/thread_data.hpp:11,
                 from ..\boost_1_55_0/boost/thread/thread_only.hpp:15,
                 from ..\boost_1_55_0/boost/thread/thread.hpp:12,
                 from ..\boost_1_55_0/boost/thread.hpp:13,
                 from src/util.h:22,
                 from src/bignum.h:13,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
..\boost_1_55_0/boost/system/error_code.hpp:222:36: warning: 'boost::system::pos
ix_category' defined but not used [-Wunused-variable]
     static const error_category &  posix_category = generic_category();
                                    ^
..\boost_1_55_0/boost/system/error_code.hpp:223:36: warning: 'boost::system::err
no_ecat' defined but not used [-Wunused-variable]
     static const error_category &  errno_ecat     = generic_category();
                                    ^
..\boost_1_55_0/boost/system/error_code.hpp:224:36: warning: 'boost::system::nat
ive_ecat' defined but not used [-Wunused-variable]
     static const error_category &  native_ecat    = system_category();
                                    ^
Makefile.Release:685: recipe for target 'build/bitcoin.o' failed
mingw32-make: *** [build/bitcoin.o] Error 1

c:\deps\xxxr>


these are the errors i see:

Code:
C:/mingw32/i686-w64-mingw32/include/pthread.h:196:19: error: 'pthread_t' has a p
revious declaration as 'typedef uintptr_t pthread_t'
 typedef uintptr_t pthread_t;
                   ^
   
   src/util.h:578:12: error: invalid conversion from 'HANDLE {aka void*}' to 'pthre
ad_t {aka unsigned int}' [-fpermissive]
     return hthread;
            ^

src/util.h:555:16: error: conflicting declaration 'typedef void* pthread_t'
 typedef HANDLE pthread_t;

maybe i need to install pthread someway? what package is that included in
old c coder
Sr. Member
****
Offline Offline

Activity: 260
Merit: 251



View Profile WWW
May 12, 2014, 10:18:28 PM
 #615

Quote
The first error I see in that long text capture is in regard loop.  To that end, see message # 1 in this forum:
https://bitcointalk.org/index.php?topic=149479.msg1587734#msg1587734.  Towards the end of that message you will find provisos on the deficiencies of the Qt make system (?) vis a vis C style macros.  You have to fix them one at a time.  So fix that and recompile-make-whatever and chase the next error.

Or come over to the dark side and build using MSVS Roll Eyes

Ron


whoops, this is actually the error i'm getting:

Code:
c:\deps\xxxxx>mingw32-make -f Makefile.Release
g++ -c -pipe -msse2 -O2
... -I"..\..\Qt\4.8.4\mkspecs\default" -o build\bitcoin.o src\qt\bitcoin.cpp
...
src/util.h:555:16: error: conflicting declaration 'typedef void* pthread_t'
 typedef HANDLE pthread_t;
                ^
In file included from C:/mingw32/i686-w64-mingw32/include/c++/i686-w64-mingw32/b
its/gthr-default.h:35:0,
...               
these are the errors i see:
Code:
C:/mingw32/i686-w64-mingw32/include/pthread.h:196:19: error: 'pthread_t' has a p
revious declaration as 'typedef uintptr_t pthread_t'
 typedef uintptr_t pthread_t;
                   ^
   src/util.h:578:12: error: invalid conversion from 'HANDLE {aka void*}' to 'pthre
ad_t {aka unsigned int}' [-fpermissive]
     return hthread;
            ^
src/util.h:555:16: error: conflicting declaration 'typedef void* pthread_t'
 typedef HANDLE pthread_t;
maybe i need to install pthread someway? what package is that included in
See message # 34 in this forum:
https://bitcointalk.org/index.php?topic=149479.msg2144659#msg2144659
on too many p-threads defined!

Ron


LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf 
The day is coming when a single carrot, freshly observed, will set off a revolution.  Paul Cezanne
o3u
Sr. Member
****
Offline Offline

Activity: 393
Merit: 250


Money comes, money goes


View Profile
May 12, 2014, 10:38:53 PM
 #616

the no system include is already in my DEFINES, i dont know why it does include it anyway.

Code:
c:\deps\xxxxx>mingw32-make -f Makefile.Release
g++ -c -pipe -msse2 -O2 -frtti -fexceptions -mthreads -fdiagnostics-show-option
-Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector
 -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DBOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN[color=red] -D__NO_SYSTEM_IN
CLUDES[/color] -DUSE_IPV6=1 -DWIN32 -D_MT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_
HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THRE
AD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\Qt\4.8.4\include\QtCore" -I"..\..\Qt\4.8.4\
include\QtGui" -I"..\..\Qt\4.8.4\include" -I"src" -I"src\json" -I"src\qt" -I"..\
boost_1_55_0" -I"..\db-4.8.30.NC\build_unix" -I"..\openssl-1.0.1g\include" -I"..
\..\Qt\4.8.4\include\ActiveQt" -I"build" -I"build" -I"..\..\Qt\4.8.4\mkspecs\def
ault" -o build\bitcoin.o src\qt\bitcoin.cpp
In file included from ..\boost_1_55_0/boost/bind/bind.hpp:29:0,
                 from ..\boost_1_55_0/boost/bind.hpp:22,
                 from ..\boost_1_55_0/boost/thread/detail/thread.hpp:29,
                 from ..\boost_1_55_0/boost/thread/thread_only.hpp:22,
                 from ..\boost_1_55_0/boost/thread/thread.hpp:12,
                 from ..\boost_1_55_0/boost/thread.hpp:13,
                 from src/util.h:22,
                 from src/bignum.h:13,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:

i tried removing it from there, doesnt work, commenting out the conflict in the code, and that gives me type casting errors.
I'm going to start over and reinstall  otherwise i might try vs
nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
May 12, 2014, 10:47:57 PM
 #617

Code:
C:/mingw32/i686-w64-mingw32/include/pthread.h:196:19: error: 'pthread_t' has a p
revious declaration as 'typedef uintptr_t pthread_t'
 typedef uintptr_t pthread_t;
                   ^
   
   src/util.h:578:12: error: invalid conversion from 'HANDLE {aka void*}' to 'pthre
ad_t {aka unsigned int}' [-fpermissive]
     return hthread;
            ^

src/util.h:555:16: error: conflicting declaration 'typedef void* pthread_t'
 typedef HANDLE pthread_t;


See: https://github.com/laanwj/bitcoin/commit/61d85071405b99c3734606eed31ea8f615c0c77a

BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH
XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
o3u
Sr. Member
****
Offline Offline

Activity: 393
Merit: 250


Money comes, money goes


View Profile
May 12, 2014, 11:57:09 PM
Last edit: May 13, 2014, 11:59:50 AM by o3u
 #618

Code:
C:/mingw32/i686-w64-mingw32/include/pthread.h:196:19: error: 'pthread_t' has a p
revious declaration as 'typedef uintptr_t pthread_t'
 typedef uintptr_t pthread_t;
                   ^
 
   src/util.h:578:12: error: invalid conversion from 'HANDLE {aka void*}' to 'pthre
ad_t {aka unsigned int}' [-fpermissive]
     return hthread;
            ^

src/util.h:555:16: error: conflicting declaration 'typedef void* pthread_t'
 typedef HANDLE pthread_t;


See: https://github.com/laanwj/bitcoin/commit/61d85071405b99c3734606eed31ea8f615c0c77a

that fixed the first problem, then i had it complaining about :
Code:
c:\deps\boost_1_53_0/boost/system/error_code.hpp:214:36: warning: 'boost::system
::posix_category' defined but not used [-Wunused-variable]
     static const error_category &  posix_category = generic_category();
                                    ^
c:\deps\boost_1_53_0/boost/system/error_code.hpp:215:36: warning: 'boost::system
::errno_ecat' defined but not used [-Wunused-variable]
     static const error_category &  errno_ecat     = generic_category();
                                    ^
c:\deps\boost_1_53_0/boost/system/error_code.hpp:216:36: warning: 'boost::system
::native_ecat' defined but not used [-Wunused-variable]
     static const error_category &  native_ecat    = system_category();


(i copied this from other thread, i'm on boost version 1.55)

which i fixed using this: -Wno-unused-variables
and now this:
Code:
src\main.cpp: In function 'void GenerateBitcoins(bool, CWallet*)':
src\main.cpp:3824:58: error: cannot convert 'void (*)(void*)' to 'LPSECURITY_ATT
RIBUTES {aka _SECURITY_ATTRIBUTES*}' for argument '1' to 'void* CreateThread(LPS
ECURITY_ATTRIBUTES, SIZE_T, LPTHREAD_START_ROUTINE, LPVOID, DWORD, LPDWORD)'
             if (!CreateThread(ThreadBitcoinMiner, pwallet))
                                                          ^
Makefile.Release:951: recipe for target 'build/main.o' failed
mingw32-make: *** [build/main.o] Error 1

i'm at a loss here.


edit:

Code:
             ^
src\init.cpp: In function 'void Shutdown(void*)':
src\init.cpp:81:39: error: cannot convert 'void (*)(void*)' to 'LPSECURITY_ATTRI
BUTES {aka _SECURITY_ATTRIBUTES*}' for argument '1' to 'void* CreateThread(LPSEC
URITY_ATTRIBUTES, SIZE_T, LPTHREAD_START_ROUTINE, LPVOID, DWORD, LPDWORD)'
         CreateThread(ExitTimeout, NULL);
                                       ^
src\init.cpp: In function 'bool AppInit2()':
src\init.cpp:767:38: error: cannot convert 'void (*)(void*)' to 'LPSECURITY_ATTR
IBUTES {aka _SECURITY_ATTRIBUTES*}' for argument '1' to 'void* CreateThread(LPSE
CURITY_ATTRIBUTES, SIZE_T, LPTHREAD_START_ROUTINE, LPVOID, DWORD, LPDWORD)'
     if (!CreateThread(StartNode, NULL))
                                      ^
src\init.cpp:771:43: error: cannot convert 'void (*)(void*)' to 'LPSECURITY_ATTR
IBUTES {aka _SECURITY_ATTRIBUTES*}' for argument '1' to 'void* CreateThread(LPSE
CURITY_ATTRIBUTES, SIZE_T, LPTHREAD_START_ROUTINE, LPVOID, DWORD, LPDWORD)'
         CreateThread(ThreadRPCServer, NULL);
                                           ^
Makefile.Release:984: recipe for target 'build/init.o' failed
mingw32-make: *** [build/init.o] Error 1


edit: a simple mistake eluded me! your fix was correct thanks
DogeHitman
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
May 13, 2014, 07:18:49 AM
 #619


Thanks for the guide. I am finally able to compile but I'm still struggling with building qrencode. libpng builds just fine, but when I make qrencode this is what I get:

Code:
./.libs/libqrencode.a(qrspec.o): In function `QRspec_newFrame':
c:\deps\qrencode/qrspec.c:530: undefined reference to `_imp__pthread_mutex_lock'

c:\deps\qrencode/qrspec.c:536: undefined reference to `_imp__pthread_mutex_unloc
k'
./.libs/libqrencode.a(qrspec.o): In function `QRspec_clearCache':
c:\deps\qrencode/qrspec.c:553: undefined reference to `_imp__pthread_mutex_lock'

c:\deps\qrencode/qrspec.c:560: undefined reference to `_imp__pthread_mutex_unloc
k'

I found some advice that said to add -lpthread to CFLAGS in the Makefile but the change is overwritten when I configure
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
May 13, 2014, 08:21:44 AM
 #620

Working fine out of the box for me. Could you post your gcc -v output?

Not sure if this was addressed to me, but here it is.

Code:
$ gcc -v
Using built-in specs.
COLLECT_GCC=c:\mingw32\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw32/bin/../libexec/gcc/i686-w64-mingw32/4.8.2/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-4.8.2/configure --host=i686-w64-mingw32 --build=i686-w64-mingw32 --target=i686-w64-min
gw32 --prefix=/mingw32 --with-sysroot=/c/mingw482/i686-482-posix-dwarf-rt_v3-rev3/mingw32 --with-gxx-include-dir=/mingw3
2/i686-w64-mingw32/include/c++ --enable-shared --enable-static --disable-multilib --enable-languages=ada,c,c++,fortran,o
bjc,obj-c++,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --en
able-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-s
jlj-exceptions --with-dwarf2 --disable-isl-version-check --disable-cloog-version-check --disable-libstdcxx-pch --disable
-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-sy
mvers --with-gnu-as --with-gnu-ld --with-arch=i686 --with-tune=generic --with-libiconv --with-system-zlib --with-gmp=/c/
mingw482/prerequisites/i686-w64-mingw32-static --with-mpfr=/c/mingw482/prerequisites/i686-w64-mingw32-static --with-mpc=
/c/mingw482/prerequisites/i686-w64-mingw32-static --with-isl=/c/mingw482/prerequisites/i686-w64-mingw32-static --with-cl
oog=/c/mingw482/prerequisites/i686-w64-mingw32-static --enable-cloog-backend=isl --with-pkgversion='i686-posix-dwarf-rev
3, Built by MinGW-W64 project' --with-bugurl=http://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -I/c/mingw482/i
686-482-posix-dwarf-rt_v3-rev3/mingw32/opt/include -I/c/mingw482/prerequisites/i686-zlib-static/include -I/c/mingw482/pr
erequisites/i686-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -I/c/mingw482/i686-482-posix-dwarf-rt_v3-rev3/mingw32/o
pt/include -I/c/mingw482/prerequisites/i686-zlib-static/include -I/c/mingw482/prerequisites/i686-w64-mingw32-static/incl
ude' CPPFLAGS= LDFLAGS='-pipe -L/c/mingw482/i686-482-posix-dwarf-rt_v3-rev3/mingw32/opt/lib -L/c/mingw482/prerequisites/
i686-zlib-static/lib -L/c/mingw482/prerequisites/i686-w64-mingw32-static/lib -Wl,--large-address-aware'
Thread model: posix
gcc version 4.8.2 (i686-posix-dwarf-rev3, Built by MinGW-W64 project)

I get the strange "Archive has no index" error that I described above. Running ranlib on archive does not help.

“God does not play dice"
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 [31] 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!