avogadro icon indicating copy to clipboard operation
avogadro copied to clipboard

Build fails on openSUSE Tumbleweed, seems to be fairly independent of Open Babel version

Open fusion809 opened this issue 6 years ago • 4 comments

Hi,

In my openSUSE Build Service project I've tried to build the latest Avogadro git commit (from this repo, presently 6f665f3) and I've received this build error:

[   30s] cd /home/abuild/rpmbuild/BUILD/avogadro-6f665f351ac0d8c7977737beb02becefa7bf7801/build/libavogadro/src/extensions/surfaces/openqube && /usr/bin/cmake -E cmake_symlink_library ../../../../../lib64/libavogadro_OpenQube.so.0.1.0 ../../../../../lib64/libavogadro_OpenQube.so.0 ../../../../../lib64/libavogadro_OpenQube.so
[   30s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/avogadro-6f665f351ac0d8c7977737beb02becefa7bf7801/build'
[   30s] [ 11%] Built target OpenQube
[   30s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/avogadro-6f665f351ac0d8c7977737beb02becefa7bf7801/build'
[   30s] make: *** [Makefile:155: all] Error 2

(I know this doesn't contain the exact error, i.e. where it started, but I can't seem to find the exact error, searching for 'error/Error' in Vim fails to find what causes this).

Here is the full log: https://gist.githubusercontent.com/fusion809/9ade50ba972124a0517653d7f361e4b8/raw/684331b5b6185729a25dc6872324fa630321a16f/build.log. That was building against the latest Open Babel git commit (openbabel/openbabel#124d99c). Building against Open Babel 2.4.1 also fails at the exact same point, although the build messages are different (e.g. there's no error: 'etab' is not a member of 'OpenBabel'). The log from building against 2.4.1 is here. If my RPM Spec file interests you (which, in case you're unfamiliar with them, details how the rpmbuild program tries to build the package) here it is.

Thanks for your time, Brenton

fusion809 avatar May 28 '18 19:05 fusion809

OB git master is development for version 3. This version of Avogadro will not be updated to OB-3.

Building against OB 2.4.1 works fine on all my systems. I looked at your log for 2.4.1, but I don't see any errors, compiler warnings etc.

Can you get a log that shows an actual compiler error? It's absolutely unclear why this build fails (i.e., it works for me).

ghutchis avatar May 28 '18 20:05 ghutchis

Have you tried building under openSUSE Tumbleweed? A simple way I've managed to replicate this is in Docker. To reproduce this error, run (assuming Docker is all set up):

user $ docker run -i -t opensuse:tumbleweed /bin/bash
docker # zypper in -y rpmdevtools rpmbuild eigen3-devel doxygen
docker # zypper addrepo https://download.opensuse.org/repositories/Education/openSUSE_Tumbleweed/Education.repo
docker # zypper dup -y
docker # zypper si -d avogadro
docker # useradd -m rpmbuild
docker # su - rpmbuild
docker $ mkdir -p /home/rpmbuild/rpmbuild/{SPECS,SOURCES}
docker $ cd /home/rpmbuild/rpmbuild/SPECS
docker $ curl -sL https://gist.githubusercontent.com/fusion809/3dc448db562692dc21a22b39fe249295/raw/a5720272b0b85ab8ac8992f10e3f10d32c5fc0d1/avogadro.spec > avogadro.spec
docker $ curl -sL https://gist.githubusercontent.com/fusion809/df3e90c9fb627c4a2b3c7e62306b72f3/raw/cb48cc6bb57adfbf6a89a8ba96eb9c9c975e74ed/yaehmop-dont-download.patch > ../SOURCES/yaehmop-dont-download.patch
docker $ curl -sL https://gist.githubusercontent.com/fusion809/0d788fdb4aafb40a10d2deeb100cb71e/raw/04c69ae76d177ca0bdb333d5262e73d7bf88e70f/baselibs.conf > ../SOURCES/baselibs.conf
docker $ curl -sL https://github.com/cryos/avogadro/archive/6f665f351ac0d8c7977737beb02becefa7bf7801.tar.gz > ../SOURCES/6f665f351ac0d8c7977737beb02becefa7bf7801.tar.gz
docker $ curl -sL https://github.com/psavery/yaehmop/releases/download/3.0.2/linux64-yaehmop.tgz > ../SOURCES/linux64-yaehmop.tgz
docker $ rpmbuild -ba avogadro.spec

I'll be happy to build this if you're afraid of wasting bandwidth (if you've got a cap like I do), but my knowledge of compiling is perhaps a little more limited than yours (or so I assume) so I'll need you to help me get this info for you. So how would I make things more verbose?

fusion809 avatar May 28 '18 20:05 fusion809

I tried building Open Babel 2.4.1, without the two patches applied to it by openSUSE packagers, and installing it, then re-trying this Avogadro build, just to make sure this error wasn't due to their patching and I still got this error.

fusion809 avatar May 28 '18 22:05 fusion809

By-the-way the INSTALL file says building against the OpenBabel git repo is recommended. Might wish to correct that if you're telling me it isn't.

fusion809 avatar Jun 22 '18 16:06 fusion809