Bug 2045402 - ga: FTBFS in Fedora rawhide/f36
Summary: ga: FTBFS in Fedora rawhide/f36
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ga
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Brown
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F36FTBFS
TreeView+ depends on / blocked
 
Reported: 2022-01-25 16:36 UTC by Fedora Release Engineering
Modified: 2022-02-01 18:03 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-28 22:16:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (30.54 KB, text/plain)
2022-01-25 16:36 UTC, Fedora Release Engineering
no flags Details
root.log (32.00 KB, text/plain)
2022-01-25 16:36 UTC, Fedora Release Engineering
no flags Details
state.log (936 bytes, text/plain)
2022-01-25 16:36 UTC, Fedora Release Engineering
no flags Details

Description Fedora Release Engineering 2022-01-25 16:36:04 UTC
ga failed to build from source in Fedora rawhide/f36

https://koji.fedoraproject.org/koji/taskinfo?taskID=81771765


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Please fix ga at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
ga will be orphaned. Before branching of Fedora 37,
ga will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2022-01-25 16:36:07 UTC
Created attachment 1854193 [details]
build.log

Comment 2 Fedora Release Engineering 2022-01-25 16:36:09 UTC
Created attachment 1854194 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2022-01-25 16:36:11 UTC
Created attachment 1854195 [details]
state.log

Comment 4 marcindulak 2022-01-27 22:20:39 UTC
The "configure: error: C compiler cannot create executables" error has been resolved by moving the build into the %build step https://bugzilla.redhat.com/show_bug.cgi?id=2044028

The "zdot wrong" test error is reported upstream https://github.com/GlobalArrays/ga/issues/249

Comment 5 marcindulak 2022-01-28 22:16:46 UTC
Built in https://koji.fedoraproject.org/koji/taskinfo?taskID=82080596 by reducing the optimization to -O1.

Comment 6 marcindulak 2022-01-30 17:03:28 UTC
For reference, here is the Dockerfile that can be used to reproduce the "zdot wrong" test error.

```
FROM fedora:36@sha256:dfb26a5dbc30de897f86e60870a4b4000c7733545e866fd1c03637a931b2d4e3

# Install packaging tools
RUN dnf install -y \
    git fedpkg fedora-packager curl

# Install build dependencies
RUN dnf install -y \
    make automake libtool dos2unix gcc-c++ gcc-gfortran hwloc-devel lapack-devel libibverbs-devel \
    mpich-devel openblas-devel openmpi-devel scalapack-mpich-devel scalapack-openmpi-devel flexiblas-devel

CMD ["/bin/bash"]
```

To reproduce the error, build and enter the container

```
docker build -t ga:latest .
docker run -it --rm --name ga ga:latest
```

Compile and run the test

```
curl -LO https://github.com/GlobalArrays/ga/releases/download/v5.8.1/ga-5.8.1.tar.gz
tar zxf ga-5.8.1.tar.gz
cd ga-5.8.1
module load mpi/mpich-x86_64
./configure '--with-scalapack4=-lscalapack' '--with-blas4=-lflexiblas' '--enable-shared' '--enable-static' '--enable-cxx' '--enable-f77' 'CC=gcc' 'LIBS=-lscalapack -lflexiblas' 'CXX=g++' 'FFLAGS=-O2 -I/usr/lib64/gfortran/modules' && make && make NPROCS=2 TESTS="global/testing/test.x" check-TESTS VERBOSE=1
```

Failed output will contain

```
> Checking zdot ...
  zdot wrong                (86672.993582718176,915971.03870635165)               (86672.994280842890,915971.06605762441)
  zdot wrong                (86672.993582718176,915971.03870635165)               (86672.994280842890,915971.06605762441)
```

Comment 7 Edoardo Apra 2022-02-01 18:03:28 UTC
The following works for me on the Fedora 36 image

./configure '--with-scalapack4=-lscalapack' '--with-blas4=-lopenblas' '--enable-shared' '--enable-static' '--enable-cxx' '--enable-f77' 'CC=gcc' 'LIBS=-lscalapack -lopenblas' 'CXX=g++'
make ;make NPROCS=2 TESTS=global/testing/test.x check-TESTS VERBOSE=1

If I set 'FFLAGS=-O2 -I/usr/lib64/gfortran/modules', then the zdot error shows up

https://github.com/GlobalArrays/ga/issues/249#issuecomment-1026434046


Note You need to log in before you can comment on or make changes to this bug.