Bug#854555: [Debichem-devel] Bug#854555: mpqc3: New version needs 6GB of memory to build (?)

2018-07-12 Thread Emilio Pozuelo Monfort
Control: retitle -1 mpqc3: FTBFS on i386 and others: virtual memory exhausted
Control: severity -1 serious

On Fri, 10 Mar 2017 07:20:45 + Radovan Birdic  
wrote:
> Hi,
> 
> If the flag MPQC_NEW_FEATURES is disabled, for mips and mipsel this issue 
> does not appear.
> 
> I have created and attached a patch which disables MPQC_NEW_FEATURES for 
> these arches.
> Patch could be expanded to support other architectures(armhf, hppa, powerpc) 
> with the same problem.

i386 now fails to build too, making this RC. Either this needs to get fixed for
at least i386, or the i386 binaries need to get dropped (by way of an
ftp.debian.org RM bug).

Cheers,
Emilio



Bug#854555: [Debichem-devel] Bug#854555: mpqc3: New version needs 6GB of memory to build (?)

2017-03-09 Thread Radovan Birdic
Hi,

If the flag MPQC_NEW_FEATURES is disabled, for mips and mipsel this issue does 
not appear.

I have created and attached a patch which disables MPQC_NEW_FEATURES for these 
arches.
Patch could be expanded to support other architectures(armhf, hppa, powerpc) 
with the same problem.

Regards,
Radovan--- mpqc3-0.0~git20170114_orig/debian/rules	2017-01-20 22:19:14.0 +
+++ mpqc3-0.0~git20170114/debian/rules	2017-03-09 11:14:55.0 +
@@ -4,13 +4,20 @@
 export CXXFLAGS=-g -O2 -std=c++11
 export OMPI_MCA_orte_rsh_agent=/bin/false
 
+DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
+	MPQC_FEATURES = 0
+else
+	MPQC_FEATURES = 1
+endif
+
 %:
 	dh $@ --buildsystem=cmake
 
 override_dh_auto_configure:
 	dh_auto_configure -- 		\
 		-DMPI_C_COMPILER=mpicc	\
-		-DMPQC_NEW_FEATURES=1	\
+		-DMPQC_NEW_FEATURES=$(MPQC_FEATURES)	\
 		-DBOOST=/usr
 
 override_dh_auto_install:


Bug#854555: [Debichem-devel] Bug#854555: mpqc3: New version needs 6GB of memory to build (?)

2017-02-10 Thread Michael Banck
Hi,

On Wed, Feb 08, 2017 at 11:45:06AM +0100, Santiago Vila wrote:
> Package: src:mpqc3
> Version: 0.0~git20170114-4
> 
> Dear maintainer:
> 
> Version 0.0~git20160216-7 of this package used to need 600 MB of RAM
> to build, but now version 0.0~git20170114-4 seems to need around 6300 MB
> of RAM to build.
> 
> This is of course not a bug by itself, but it may indicate some
> kind of anomaly in the build system, so I just wanted to check that it's ok.

I think it's ok, the new version switches on the MPQC_NEW_FEATURES code
which utilizes the TiledArray and MADNESS frameworks.

I did notice that it's much heavier during compilation (and actually
outsourced test builds to the Debian porter boxes, my personal notebook
wasn't happy about them).

If you could say which files require that much memory to compile and/or
link, I am happy to file an upstream issue requesting them to maybe
split it up or rewrite it.


Michael