Author

Topic: bitcoin core on github build fail ? (Read 164 times)

jr. member
Activity: 47
Merit: 8
January 22, 2020, 06: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"
staff
Activity: 3458
Merit: 6793
Just writing some code
January 21, 2020, 12: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.
jr. member
Activity: 47
Merit: 8
January 21, 2020, 06: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" ?
staff
Activity: 3458
Merit: 6793
Just writing some code
January 20, 2020, 08:06:46 PM
#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.
jr. member
Activity: 47
Merit: 8
January 20, 2020, 05: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: '$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 ?

Jump to: