Control: tags -1 patch

On Sun, Oct 07, 2018 at 05:19:53PM +0200, Emilio Pozuelo Monfort wrote:
> Source: monero
> Version: 0.12.3.0~dfsg-2
> Severity: serious
> 
> Your package failed to build on i386:
> 
> cd "/<<PKGBUILDDIR>>/obj-i686-linux-gnu/contrib/epee/src" && /usr/bin/c++  
> -DAUTO_INITIALIZE_EASYLOGGINGPP -DBLOCKCHAIN_DB=DB_LMDB 
> -DDEFAULT_DB_TYPE=\"lmdb\" -DHAVE_EXPLICIT_BZERO -DHAVE_PCSC -DHAVE_READLINE 
> -DHAVE_STRPTIME -DPER_BLOCK_CHECKPOINT 
> -I"/<<PKGBUILDDIR>>/external/rapidjson/include" 
> -I"/<<PKGBUILDDIR>>/external/easylogging++" -I"/<<PKGBUILDDIR>>/src" 
> -I"/<<PKGBUILDDIR>>/contrib/epee/include" -I"/<<PKGBUILDDIR>>/external" 
> -I"/<<PKGBUILDDIR>>/obj-i686-linux-gnu/translations" 
> -I"/<<PKGBUILDDIR>>/external/db_drivers/liblmdb" -I/usr/include/PCSC  -g -O2 
> -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fno-strict-aliasing 
> -DNO_AES -std=c++11 -D_GNU_SOURCE   -Wall -Wextra -Wpointer-arith -Wundef 
> -Wvla -Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations 
> -Wno-unused-parameter -Wno-unused-variable -Wno-error=unused-variable 
> -Wno-error=undef -Wno-error=uninitialized -Wlogical-op 
> -Wno-error=maybe-uninitialized -Wno-error=cpp -Wno-reorder 
> -Wno-missing-field-initializers   -fPIC  -Wformat -Wformat-security 
> -fstack-protector -fstack-protector-strong -fno-strict-aliasing   -Werror -o 
> CMakeFiles/epee.dir/network_throttle.cpp.o -c 
> "/<<PKGBUILDDIR>>/contrib/epee/src/network_throttle.cpp"
> 
> cc1plus: out of memory allocating 27008520 bytes after a total of 83218432 
> bytes
> make[3]: *** [src/mnemonics/CMakeFiles/obj_mnemonics.dir/build.make:66: 
> src/mnemonics/CMakeFiles/obj_mnemonics.dir/electrum-words.cpp.o] Error 1
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-i686-linux-gnu'
> 
> Full logs at https://buildd.debian.org/status/package.php?p=monero

The usual -g1 workaround for this gcc regression also helps here,
additionally work around the libatomic gcc bug on some architectures:

--- debian/rules.old    2018-10-08 22:51:57.676638667 +0000
+++ debian/rules        2018-10-09 00:20:51.142297976 +0000
@@ -1,5 +1,12 @@
 #!/usr/bin/make -f
 
+ifeq ($(DEB_HOST_ARCH_BITS),32)
+    export DEB_CXXFLAGS_MAINT_APPEND = -g1
+endif
+ifneq (,$(filter $(DEB_HOST_ARCH), armel m68k mips mipsel powerpc powerpcspe 
sh4))
+    export DEB_LDFLAGS_MAINT_APPEND=-latomic
+endif
+
 #testsuite needs writable $HOME
 FAKEHOME = $(CURDIR)/debian/fakehome
 

> Emilio

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

Reply via email to