Bitcoin Forum
May 05, 2024, 03:42:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoin core on github build fail ?  (Read 138 times)
maplelake (OP)
Jr. Member
*
Offline Offline

Activity: 47
Merit: 8


View Profile
January 20, 2020, 10:16:23 PM
 #1

I clone bitcoin core and build passes locally.
       Git clonehttps://github.com/bitcoin/bitcoin.git

But github(Bitcoin-core-ci) reports build error under "Build_MSVC" after commit.
arguments [D:\a\bitcoin\bitcoin\build_msvc\test_bitcoin\test_bitcoin.vcxproj]
         D:\a\bitcoin\bitcoin\src\test\cuckoocache_tests.cpp(330,1): error C2079: 'last_few' uses undefined class 'std::deque' [D:\a\bitcoin\bitcoin\build_msvc\test_bitcoin\test_bitcoin.vcxproj]
         D:\a\bitcoin\bitcoin\src\test\cuckoocache_tests.cpp(341,1): error C2672: 'begin': no matching overloaded function found [D:\a\bitcoin\bitcoin\build_msvc\test_bitcoin\test_bitcoin.vcxproj]
         D:\a\bitcoin\bitcoin\src\test\cuckoocache_tests.cpp(341,1): error C2893: Failed to specialize function template 'unknown-type std::begin(_Container &)' [D:\a\bitcoin\bitcoin\build_msvc\test_bitcoin\test_bitcoin.vcxproj]
         D:\a\bitcoin\bitcoin\src\test\cuckoocache_tests.cpp(341,1): error C2784: 'const _Elem *std::begin(std::initializer_list<_Elem>) noexcept': could not deduce template argument for 'std::initializer_list<_Elem>' from 'int' [D:\a\bitcoin\bitcoin\build_msvc\test_bitcoin\test_bitcoin.vcxproj]
         D:\a\bitcoin\bitcoin\src\test\cuckoocache_tests.cpp(341,1): error C2672: 'end': no matching overloaded function found [D:\a\bitcoin\bitcoin\build_msvc\test_bitcoin\test_bitcoin.vcxproj]
         D:\a\bitcoin\bitcoin\src\test\cuckoocache_tests.cpp(341,1): error C2893: Failed to specialize function template 'unknown-type std::end(_Container &)' [D:\a\bitcoin\bitcoin\build_msvc\test_bitcoin\test_bitcoin.vcxproj]
         D:\a\bitcoin\bitcoin\src\test\cuckoocache_tests.cpp(341,1): error C2784: 'const _Elem *std::end(std::initializer_list<_Elem>) noexcept': could not deduce template argument for 'std::initializer_list<_Elem>' from 'int' [D:\a\bitcoin\bitcoin\build_msvc\test_bitcoin\test_bitcoin.vcxproj]
         D:\a\bitcoin\bitcoin\src\test\cuckoocache_tests.cpp(341,1): error C3536: '<begin>$L0': cannot be used before it is initialized [D:\a\bitcoin\bitcoin\build_msvc\test_bitcoin\test_bitcoin.vcxproj]



I also go through bitcoin project's commit history, it looks use different service:"travis-ci", "appveyor"
such as
https://travis-ci.org/bitcoin/bitcoin/builds/639634430?utm_source=github_status&utm_medium=notification
https://ci.appveyor.com/project/DrahtBot/bitcoin/builds/30242431

Why it is ?
Is there some config file ? It is strange that I clone bitcoin project, why I do not use travis-ci or appveyor service ?

1714880559
Hero Member
*
Offline Offline

Posts: 1714880559

View Profile Personal Message (Offline)

Ignore
1714880559
Reply with quote  #2

1714880559
Report to moderator
1714880559
Hero Member
*
Offline Offline

Posts: 1714880559

View Profile Personal Message (Offline)

Ignore
1714880559
Reply with quote  #2

1714880559
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714880559
Hero Member
*
Offline Offline

Posts: 1714880559

View Profile Personal Message (Offline)

Ignore
1714880559
Reply with quote  #2

1714880559
Report to moderator
1714880559
Hero Member
*
Offline Offline

Posts: 1714880559

View Profile Personal Message (Offline)

Ignore
1714880559
Reply with quote  #2

1714880559
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
January 21, 2020, 01:06:46 AM
 #2

travis-ci and appveyor and completely unrelated to your error, and to MSVC. They are services which automatically build Bitcoin Core and run tests and are used to check Pull Requests before they are merged. They are not for building Bitcoin Core locally.

maplelake (OP)
Jr. Member
*
Offline Offline

Activity: 47
Merit: 8


View Profile
January 21, 2020, 11:43:23 AM
 #3

What if I want to "After I push commit to github on my cloned bitcoin repo, then github will automatically build Bitcoin Core and run tests" ?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
January 21, 2020, 05:03:02 PM
 #4

What if I want to "After I push commit to github on my cloned bitcoin repo, then github will automatically build Bitcoin Core and run tests" ?
You will need to create accounts on https://travis-ci.org/ and https://www.appveyor.com/ and link them to your GitHub. Then you can enable builds for your cloned repo. They will then automatically build when you push.

maplelake (OP)
Jr. Member
*
Offline Offline

Activity: 47
Merit: 8


View Profile
January 22, 2020, 11:12:34 PM
 #5

Thans a lot.
While one more question, why github(Bitcoin-core-ci) reports error ?
I think github is default service provider. The build script obviously is fine as it works on ‘"travis-ci", "appveyor"
Pages: [1]
  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!