Closed junghans closed 5 years ago
okay, this is weird
That is really weird.
is lammps a binary format?
does anybody know what kind of architecture this is?
No, it is text!
Is this from a run on git lab or did a user report it? I'm not sure how to reproduce this?
This cake out during build of the packages on Fedora!
@JoshuaSBrown @jens the gcc compile farm has some ppc64le machines, but they might not be at the same OS package level!
I was able to reproduce this on copr: https://copr.fedorainfracloud.org/coprs/junghans/votca/build/854269/ if you click on "epel-7-ppc64le", you will see all the stuff there.
To trigger and new build just modify https://github.com/votca/fedora-copr/blob/master/votca.spec
You can do some crazy stuff in the %check
block to debug this!
Is this with the stable or master branch?
it builds from the 1.5 tarballs!
This is a little overwhelming. I can write shell commands in the check block?
Yes, you can write whatever code you want there!
There are two caveats though, 1.) the program needs to be installed, so you might need to add a BuildRequires:
line for valgrind etc. 2.) rpmbuild will stop on the first error, so if you want to run multiple commands, one which might fail do something like:
%check
command1 || true
command2 || true
exit 1
@junghans Can you find an easier bug to fix? This one sucks.
No really, I don't have an ppc64le machine.....
I'm downloading an iso for the ppc64le crap. That will be easier than going through copr.
Turns out ppc64le is not compatible with virtual box.
I currently looking into qemu!
Actually on Fedora, install mock
dnf install mock qemu-user-static
set it up for your user:
usermod -a -G mock <username>
then setup an epel7
for ppc64le
environment:
mock -r epel-7-ppc64le --forcearch ppc64le --dnf --init
Now you need to make the VOTCA srpm
wget https://raw.githubusercontent.com/votca/fedora-copr/master/votca.spec
spectool -g votca.spec
rpmbuild -D"_sourcedir ${PWD}" -D"_srcrpmdir ${PWD}" -bs votca.spec
and then build it in mock
:
mock -r epel-7-ppc64le --forcearch ppc64le --dnf --no-clean votca-1.5-1.*.src.rpm
it will fail of course, but then you can go in to debug:
mock -r epel-7-ppc64le --forcearch ppc64le --shell
So of course this didn't work when I did it. I had to add the following two lines at the beginning:
dnf update
dnf install qemu-user-static
and don't forget another soft dependency:
dnf install dnf-utils
Now I'm getting this:
mock -r epel-7-ppc64le --forcearch ppc64le --no-clean votca-1.5-1.*.src.rpm
INFO: mock.py version 1.4.13 starting (python version = 3.7.2)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
INFO: Start(votca-1.5-1.fc29.src.rpm) Config(epel-7-ppc64le)
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
INFO: enabled HW Info plugin
Mock Version: 1.4.13
INFO: Mock Version: 1.4.13
Finish: chroot init
Start: build phase for votca-1.5-1.fc29.src.rpm
Start: build setup for votca-1.5-1.fc29.src.rpm
Unsupported setsockopt level=270 optname=3
Building target platforms: ppc64le
Building for target ppc64le
Wrote: /builddir/build/SRPMS/votca-1.5-1.el7.src.rpm
BaseOS 2.5 MB/s | 8.5 MB 00:03
epel 3.5 MB/s | 14 MB 00:04
extras 153 kB/s | 209 kB 00:01
sclo-rh 138 kB/s | 353 kB 00:02
updates 940 kB/s | 2.6 MB 00:02
Package gcc-c++-4.8.5-36.el7.ppc64le is already installed.
No matching package to install: 'cmake3'
No matching package to install: 'expat-devel'
No matching package to install: 'fftw-devel'
No matching package to install: 'boost-devel'
No matching package to install: 'gromacs-devel'
No matching package to install: 'gsl-devel'
No matching package to install: 'sqlite-devel'
No matching package to install: 'texlive'
No matching package to install: 'inkscape'
No matching package to install: 'transfig'
No matching package to install: 'graphviz'
No matching package to install: 'hdf5-devel'
No matching package to install: 'lammps'
No matching package to install: 'libxc-devel'
No matching package to install: 'ceres-solver-devel'
No matching package to install: 'ImageMagick'
No matching package to install: '/usr/bin/dvipdf'
No matching package to install: 'gromacs'
No matching package to install: 'gromacs-openmpi'
No matching package to install: 'openmpi-devel'
No matching package to install: 'python2'
No matching package to install: 'gnuplot'
No matching package to install: 'psmisc'
No matching package to install: 'octave'
Not all dependencies satisfied
Error: Some packages could not be found.
ERROR: Exception(votca-1.5-1.fc29.src.rpm) Config(epel-7-ppc64le) 0 minutes 39 seconds
INFO: Results and/or logs in: /var/lib/mock/epel-7-ppc64le/result
ERROR: Command failed:
# /usr/bin/yum-builddep --installroot /var/lib/mock/epel-7-ppc64le/root/ --releasever 7 /var/lib/mock/epel-7-ppc64le/root//builddir/build/SRPMS/votca-1.5-1.el7.src.rpm
BaseOS 2.5 MB/s | 8.5 MB 00:03
epel 3.5 MB/s | 14 MB 00:04
extras 153 kB/s | 209 kB 00:01
sclo-rh 138 kB/s | 353 kB 00:02
updates 940 kB/s | 2.6 MB 00:02
Package gcc-c++-4.8.5-36.el7.ppc64le is already installed.
No matching package to install: 'cmake3'
No matching package to install: 'expat-devel'
No matching package to install: 'fftw-devel'
No matching package to install: 'boost-devel'
No matching package to install: 'gromacs-devel'
No matching package to install: 'gsl-devel'
No matching package to install: 'sqlite-devel'
No matching package to install: 'texlive'
No matching package to install: 'inkscape'
No matching package to install: 'transfig'
No matching package to install: 'graphviz'
No matching package to install: 'hdf5-devel'
No matching package to install: 'lammps'
No matching package to install: 'libxc-devel'
No matching package to install: 'ceres-solver-devel'
No matching package to install: 'ImageMagick'
No matching package to install: '/usr/bin/dvipdf'
No matching package to install: 'gromacs'
No matching package to install: 'gromacs-openmpi'
No matching package to install: 'openmpi-devel'
No matching package to install: 'python2'
No matching package to install: 'gnuplot'
No matching package to install: 'psmisc'
No matching package to install: 'octave'
Not all dependencies satisfied
Error: Some packages could not be found.
I know that this is supposed to fail but I'm pretty sure it's not here that it is supposed to fail.
Can you add --dnf
as an option?
It would be that easy... I spent all morning trying to get this thing to work. mock --help thats really all I had to do. Though it's not immediately obvious that no package manger would be automatically used.
The default is --yum
for epel7, but for some reason that doesn't work if you are on a newer version of fedora...
Need to temporarily add a text editor to votca.spec to actually make this useful before calling:
rpmbuild -D"_sourcedir ${PWD}" -D"_srcrpmdir ${PWD}" -bs votca.spec
Add line:
BuildRequires: vim
I think mock ... --install vim
does the same!
I found the problem, it is boost::lexical_cast
@junghans do you think we should report this to boost?
Wow thank you guys, :)
Confirmed it is fixed!
Yay!
Now you can have a look at https://github.com/votca/xtp/issues/227 ;-)
@junghans do you think we should report this to boost?
It is only old versions, so let's ignore that!
It seems there is always a sign too much, e.g.
2.88232
vs.-2.88232
.Details here