fanquake
commented at 7:51 AM on August 20, 2019:
member
This workaround was added as part of the switch to gitian building using Ubuntu 14.04 (#6900).
However, it should no longer be required, as we have switched to Bionic (#13171) and that
has a far newer version of binutils.
fanquake added the label Build system on Aug 20, 2019
fanquake added the label Needs gitian build on Aug 20, 2019
fanquake requested review from laanwj on Aug 20, 2019
DrahtBot removed the label Needs gitian build on Aug 21, 2019
MarcoFalke
commented at 11:14 AM on August 21, 2019:
member
Fails with
Options used to compile and link:
with wallet = yes
with gui / qt = yes
with bip70 = yes
with qr = yes
with zmq = yes
with test = yes
with prop = no
with fuzz = no
with bench = no
with upnp = yes
use asm = yes
sanitizers =
debug enabled = no
gprof enabled = no
werror = no
target os = windows
build os =
CC = x86_64-w64-mingw32-gcc
CFLAGS = -pipe -O2 -O2 -g
CPPFLAGS = -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I/home/ubuntu/build/bitcoin/depends/x86_64-w64-mingw32/share/../include/ -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -D_WIN32_WINNT=0x0601 -D_FILE_OFFSET_BITS=64
CXX = x86_64-w64-mingw32-g++ -std=c++11
CXXFLAGS = -fstack-reuse=none -Wstack-protector -fstack-protector-all -pipe -O2 -O2 -g -fvisibility=hidden
LDFLAGS = -pthread -Wl,--dynamicbase -Wl,--nxcompat -Wl,--high-entropy-va -pie -L/home/ubuntu/build/bitcoin/depends/x86_64-w64-mingw32/share/../lib
ARFLAGS = cr
+ make -j1
Making all in src
make[1]: Entering directory '/home/ubuntu/build/bitcoin/distsrc-x86_64-w64-mingw32/src'
make[2]: Entering directory '/home/ubuntu/build/bitcoin/distsrc-x86_64-w64-mingw32/src'
CXX support/libbitcoinconsensus_la-cleanse.lo
CXX crypto/libbitcoinconsensus_la-aes.lo
CXX crypto/libbitcoinconsensus_la-chacha_poly_aead.lo
CXX crypto/libbitcoinconsensus_la-chacha20.lo
CXX crypto/libbitcoinconsensus_la-hkdf_sha256_32.lo
CXX crypto/libbitcoinconsensus_la-hmac_sha256.lo
CXX crypto/libbitcoinconsensus_la-hmac_sha512.lo
CXX crypto/libbitcoinconsensus_la-poly1305.lo
CXX crypto/libbitcoinconsensus_la-ripemd160.lo
CXX crypto/libbitcoinconsensus_la-sha1.lo
CXX crypto/libbitcoinconsensus_la-sha256.lo
CXX crypto/libbitcoinconsensus_la-sha512.lo
CXX crypto/libbitcoinconsensus_la-siphash.lo
CXX crypto/libbitcoinconsensus_la-sha256_sse4.lo
CXX libbitcoinconsensus_la-arith_uint256.lo
CXX consensus/libbitcoinconsensus_la-merkle.lo
CXX consensus/libbitcoinconsensus_la-tx_check.lo
CXX libbitcoinconsensus_la-hash.lo
CXX primitives/libbitcoinconsensus_la-block.lo
CXX primitives/libbitcoinconsensus_la-transaction.lo
CXX libbitcoinconsensus_la-pubkey.lo
CXX script/libbitcoinconsensus_la-bitcoinconsensus.lo
CXX script/libbitcoinconsensus_la-interpreter.lo
CXX script/libbitcoinconsensus_la-script.lo
CXX script/libbitcoinconsensus_la-script_error.lo
CXX libbitcoinconsensus_la-uint256.lo
CXX util/libbitcoinconsensus_la-strencodings.lo
make[3]: Entering directory '/home/ubuntu/build/bitcoin/distsrc-x86_64-w64-mingw32/src/secp256k1'
gcc -I. -g -O2 -Wall -Wextra -Wno-unused-function -c src/gen_context.c -o gen_context.o
gcc -g -O2 -Wall -Wextra -Wno-unused-function gen_context.o -o gen_context
./gen_context
CC src/libsecp256k1_la-secp256k1.lo
CCLD libsecp256k1.la
libtool: warning: undefined symbols not allowed in x86_64-w64-mingw32 shared libraries; building static only
/usr/bin/x86_64-w64-mingw32-ar: `u' modifier ignored since `D' is the default (see `U')
make[3]: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-x86_64-w64-mingw32/src/secp256k1'
CXXLD libbitcoinconsensus.la
/usr/bin/x86_64-w64-mingw32-ar: `u' modifier ignored since `D' is the default (see `U')
CXX bitcoind-bitcoind.o
In file included from ./util/system.h:21:0,
from ./init.h:11,
from bitcoind.cpp:14:
./logging.h:63:22: error: ‘mutex’ in namespace ‘std’ does not name a type
mutable std::mutex m_cs; // Can not use Mutex from sync.h because in debug mode it would cause a deadlock when a potential deadlock was detected
^~~~~
In file included from ./util/system.h:21:0,
from ./init.h:11,
from bitcoind.cpp:14:
./logging.h: In member function ‘bool BCLog::Logger::Enabled() const’:
./logging.h:97:34: error: ‘mutex’ is not a member of ‘std’
std::lock_guard<std::mutex> scoped_lock(m_cs);
^~~~~
./logging.h:97:34: error: ‘mutex’ is not a member of ‘std’
./logging.h:97:39: error: template argument 1 is invalid
std::lock_guard<std::mutex> scoped_lock(m_cs);
^
./logging.h:97:53: error: ‘m_cs’ was not declared in this scope
std::lock_guard<std::mutex> scoped_lock(m_cs);
^~~~
In file included from ./util/system.h:22:0,
from ./init.h:11,
from bitcoind.cpp:14:
./sync.h: At global scope:
./sync.h:107:44: error: ‘recursive_mutex’ is not a member of ‘std’
using RecursiveMutex = AnnotatedMixin<std::recursive_mutex>;
^~~~~~~~~~~~~~~
./sync.h:107:44: error: ‘recursive_mutex’ is not a member of ‘std’
./sync.h:107:59: error: template argument 1 is invalid
using RecursiveMutex = AnnotatedMixin<std::recursive_mutex>;
^
./sync.h:108:29: error: ‘recursive_mutex’ is not a member of ‘std’
typedef AnnotatedMixin<std::recursive_mutex> CCriticalSection;
^~~~~~~~~~~~~~~
./sync.h:108:29: error: ‘recursive_mutex’ is not a member of ‘std’
./sync.h:108:44: error: template argument 1 is invalid
typedef AnnotatedMixin<std::recursive_mutex> CCriticalSection;
^
./sync.h:111:29: error: ‘mutex’ is not a member of ‘std’
typedef AnnotatedMixin<std::mutex> Mutex;
^~~~~
./sync.h:111:29: error: ‘mutex’ is not a member of ‘std’
./sync.h:111:34: error: template argument 1 is invalid
typedef AnnotatedMixin<std::mutex> Mutex;
^
./sync.h:214:10: error: ‘condition_variable’ in namespace ‘std’ does not name a type
std::condition_variable condition;
^~~~~~~~~~~~~~~~~~
./sync.h:215:10: error: ‘mutex’ in namespace ‘std’ does not name a type
std::mutex mutex;
^~~~~
./sync.h: In member function ‘void CSemaphore::wait()’:
./sync.h:223:31: error: ‘mutex’ is not a member of ‘std’
std::unique_lock<std::mutex> lock(mutex);
^~~~~
./sync.h:223:31: error: ‘mutex’ is not a member of ‘std’
./sync.h:223:36: error: template argument 1 is invalid
std::unique_lock<std::mutex> lock(mutex);
^
./sync.h:223:43: error: ‘mutex’ was not declared in this scope
std::unique_lock<std::mutex> lock(mutex);
^~~~~
./sync.h:223:43: note: suggested alternative: ‘Mutex’
std::unique_lock<std::mutex> lock(mutex);
^~~~~
Mutex
./sync.h:224:9: error: ‘condition’ was not declared in this scope
condition.wait(lock, [&]() { return value >= 1; });
^~~~~~~~~
./sync.h: In member function ‘bool CSemaphore::try_wait()’:
./sync.h:230:30: error: ‘mutex’ is not a member of ‘std’
std::lock_guard<std::mutex> lock(mutex);
^~~~~
./sync.h:230:30: error: ‘mutex’ is not a member of ‘std’
./sync.h:230:35: error: template argument 1 is invalid
std::lock_guard<std::mutex> lock(mutex);
^
./sync.h:230:42: error: ‘mutex’ was not declared in this scope
std::lock_guard<std::mutex> lock(mutex);
^~~~~
./sync.h:230:42: note: suggested alternative: ‘Mutex’
std::lock_guard<std::mutex> lock(mutex);
^~~~~
Mutex
./sync.h: In member function ‘void CSemaphore::post()’:
./sync.h:240:34: error: ‘mutex’ is not a member of ‘std’
std::lock_guard<std::mutex> lock(mutex);
^~~~~
./sync.h:240:34: error: ‘mutex’ is not a member of ‘std’
./sync.h:240:39: error: template argument 1 is invalid
std::lock_guard<std::mutex> lock(mutex);
^
./sync.h:240:46: error: ‘mutex’ was not declared in this scope
std::lock_guard<std::mutex> lock(mutex);
^~~~~
./sync.h:240:46: note: suggested alternative: ‘Mutex’
std::lock_guard<std::mutex> lock(mutex);
^~~~~
Mutex
./sync.h:243:9: error: ‘condition’ was not declared in this scope
condition.notify_one();
^~~~~~~~~
./sync.h: In substitution of ‘template<class MutexArg> using DebugLock = UniqueLock<typename std::remove_reference<typename std::remove_pointer<_Tp>::type>::type> [with MutexArg = int]’:
./util/system.h:287:9: required from here
./sync.h:177:113: error: ‘std::remove_reference<int>::type {aka int}’ is not a class, struct, or union type
using DebugLock = UniqueLock<typename std::remove_reference<typename std::remove_pointer<MutexArg>::type>::type>;
^
./util/system.h: In member function ‘void ArgsManager::ClearArgs()’:
./sync.h:182:104: error: expression list treated as compound expression in initializer [-fpermissive]
#define LOCK(cs) DebugLock<decltype(cs)> PASTE2(criticalblock, __COUNTER__)(cs, #cs, __FILE__, __LINE__)
^
./util/system.h:287:9: note: in expansion of macro ‘LOCK’
LOCK(cs_args);
^
Makefile:10694: recipe for target 'bitcoind-bitcoind.o' failed
make[2]: *** [bitcoind-bitcoind.o] Error 1
make[2]: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-x86_64-w64-mingw32/src'
Makefile:13149: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-x86_64-w64-mingw32/src'
Makefile:774: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
in
contrib/gitian-descriptors/gitian-win.yml:90
in
ac85e81685outdated
theuni
commented at 3:50 PM on August 21, 2019:
member
Concept ACK.
DrahtBot
commented at 5:43 AM on August 24, 2019:
member
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
No conflicts as of last run.
build: remove mingw linker workaround from win gitian descriptor
This workaround was added as part of the switch to gitian building using Ubuntu 14.04 (#6900).
However, it should no longer be required, as we have switched to Bionic (#13171), and that
has a far newer version of binutils.
binutils patch: https://sourceware.org/bugzilla/show_bug.cgi?id=16192
bd3f5a90ec
fanquake force-pushed on Sep 23, 2019
fanquake added the label Needs gitian build on Sep 23, 2019
DrahtBot
commented at 4:29 PM on September 23, 2019:
member
<!--a722867cd34abeea1fadc8d60700f111-->
Gitian builds for commit 13377b7a695c2fc774946cfd6a9aa01dd338e13c (master):
DrahtBot removed the label Needs gitian build on Oct 13, 2019
MarcoFalke deleted a comment on Oct 13, 2019
MarcoFalke deleted a comment on Oct 13, 2019
MarcoFalke deleted a comment on Oct 13, 2019
MarcoFalke added the label Needs gitian build on Oct 13, 2019
laanwj approved
laanwj
commented at 9:40 AM on October 14, 2019:
member
ACKbd3f5a90ecd6de40516141b23b0861dbba0b31b6
Thanks for removing this horrible workaround. I do not understand how this change can cause random build issues, if anything, not setting a malloc-specific debug environment variable to clear all memory in advance should make the build more performant.
DrahtBot
commented at 9:56 AM on October 14, 2019:
member
<!--a722867cd34abeea1fadc8d60700f111-->
Gitian builds for commit 561a7d30478b82f5d46dcf0f16e864a9608004f4 (master):
DrahtBot removed the label Needs gitian build on Oct 14, 2019
MarcoFalke
commented at 12:38 PM on October 14, 2019:
member
I have no idea why this was failing to build locally and I haven't debugged. DrahtBot seems to pass now (The bot had some hard drive issues in the past and I fixed them).
3 ACKs and two successful builds by DrahtBot, going to merge now.
MarcoFalke referenced this in commit 4765b91f50 on Oct 14, 2019
MarcoFalke merged this on Oct 14, 2019
MarcoFalke closed this on Oct 14, 2019
fanquake deleted the branch on Oct 14, 2019
sidhujag referenced this in commit a24510d22d on Oct 15, 2019
hebasto referenced this in commit ad5ba57d5b on Mar 22, 2020
hebasto referenced this in commit c8592ad24f on Mar 22, 2020
hebasto referenced this in commit 8d0c980e64 on Apr 7, 2020
MarkLTZ referenced this in commit 4fa36763ef on Apr 10, 2020
hebasto referenced this in commit 19a51a8345 on Apr 11, 2020
hebasto referenced this in commit 2aa48edec0 on Apr 17, 2020
dongcarl referenced this in commit c98c828ec5 on Apr 22, 2020
ariard referenced this in commit 0ca2a45efa on Apr 30, 2020
pierreN referenced this in commit a2dec9b458 on May 1, 2020
luke-jr referenced this in commit 8573d38263 on May 7, 2020
luke-jr referenced this in commit b59cc80ff3 on May 7, 2020
luke-jr referenced this in commit b84e35a910 on May 14, 2020
random-zebra referenced this in commit 3614de632e on Jul 19, 2021
furszy referenced this in commit 56200a9081 on Aug 23, 2021
furszy referenced this in commit ca7a7f0282 on Aug 23, 2021
furszy referenced this in commit ccd3c71bf9 on Sep 2, 2021
UdjinM6 referenced this in commit 204e40f258 on Sep 9, 2021
UdjinM6 referenced this in commit f507212049 on Sep 24, 2021
UdjinM6 referenced this in commit 0edb4c5cd0 on Oct 4, 2021
UdjinM6 referenced this in commit d7707cde7a on Oct 5, 2021
kittywhiskers referenced this in commit 74339e429c on Oct 12, 2021
pravblockc referenced this in commit dc74ad8893 on Nov 18, 2021
Fabcien referenced this in commit 790efe069e on Dec 1, 2021
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-03 00:14 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me