Looks like upstream issue.
Search Criteria
Package Details: superlu_dist 9.1.0-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/superlu_dist.git (read-only, click to copy) |
---|---|
Package Base: | superlu_dist |
Description: | Distributed memory, MPI based SuperLU |
Upstream URL: | https://github.com/xiaoyeli/superlu_dist |
Licenses: | LicenseRef-Callaway-BSD |
Submitter: | ChrisTX |
Maintainer: | carlosal1015 (gpettinello, AutoUpdateBot) |
Last Packager: | carlosal1015 |
Votes: | 3 |
Popularity: | 0.000000 |
First Submitted: | 2018-12-16 01:58 (UTC) |
Last Updated: | 2024-11-11 18:07 (UTC) |
Dependencies (5)
- lapack (aocl-libflame-aoccAUR, atlas-lapackAUR, blas-aocl-gccAUR, blas-aocl-aoccAUR, blas-mklAUR, aocl-libflameAUR, blas-openblas-gitAUR, openblas-lapackAUR, lapack-gitAUR, blas-openblas)
- parmetis-gitAUR
- python-mpi4py (python-mpi4py-intelAUR)
- cmake (cmake3AUR, cmake-gitAUR) (make)
- gcc-fortran (gcc-fortran-gitAUR, gcc-fortran-snapshotAUR) (make)
Required by (4)
- hypre
- petsc (optional)
- petsc-complex (optional)
- petsc-git (optional)
Sources (1)
Latest Comments
carlosal1015 commented on 2025-06-13 18:46 (UTC)
alhazacod commented on 2025-06-13 16:22 (UTC)
Im getting the same error in the last comment too.
/home/alhazacod/.cache/yay/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c: In function ‘dDumpLblocks’:
/home/alhazacod/.cache/yay/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:824:20: error: conflicting types for ‘fopen’; have ‘FILE *(void)’
824 | FILE *fp, *fopen();
| ^~~~~
In file included from /home/alhazacod/.cache/yay/superlu_dist/src/superlu_dist-9.1.0/SRC/include/superlu_defs.h:59,
from /home/alhazacod/.cache/yay/superlu_dist/src/superlu_dist-9.1.0/SRC/include/superlu_ddefs.h:37,
from /home/alhazacod/.cache/yay/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:24:
/usr/include/stdio.h:264:14: note: previous declaration of ‘fopen’ with type ‘FILE *(const char * restrict, const char * restrict)’
264 | extern FILE *fopen (const char *__restrict __filename,
| ^~~~~
/home/alhazacod/.cache/yay/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:867:21: error: too many arguments to function ‘fopen’; expected 0, have 2
867 | if ( !(fp = fopen(filename, "w")) ) {
| ^~~~~ ~~~~~~~~
/home/alhazacod/.cache/yay/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:824:20: note: declared here
824 | FILE *fp, *fopen();
| ^~~~~
/home/alhazacod/.cache/yay/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c: In function ‘dDumpLblocks3D’:
/home/alhazacod/.cache/yay/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:1755:21: error: too many arguments to function ‘fopen’; expected 0, have 2
1755 | if ( !(fp = fopen(filename, "w")) ) {
| ^~~~~ ~~~~~~~~
/home/alhazacod/.cache/yay/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:1709:20: note: declared here
1709 | FILE *fp, *fopen();
| ^~~~~
/home/alhazacod/.cache/yay/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c: In function ‘dcheckLUFromDisk’:
/home/alhazacod/.cache/yay/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:1671:33: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1671 | fread(Lval_buf, sizeof(double), len2, fp); // assume fp will be incremented
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alhazacod/.cache/yay/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:1681:33: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1681 | fread(Uval_buf, sizeof(double), lenv, fp); // assume fp will be incremented
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [SRC/CMakeFiles/superlu_dist.dir/build.make:597: SRC/CMakeFiles/superlu_dist.dir/double/dutil_dist.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:183: SRC/CMakeFiles/superlu_dist.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
-> error making: superlu_dist-exit status 4
-> Failed to install the following packages. Manual intervention is required:
superlu_dist - exit status 4
LukeTheWalker commented on 2025-05-15 12:44 (UTC) (edited on 2025-05-15 12:45 (UTC) by LukeTheWalker)
/home/luca/Build/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c: In function ‘dDumpLblocks’:
/home/luca/Build/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:824:20: error: conflicting types for ‘fopen’; have ‘FILE *(void)’
824 | FILE *fp, *fopen();
| ^~~~~
In file included from /home/luca/Build/superlu_dist/src/superlu_dist-9.1.0/SRC/include/superlu_defs.h:59,
from /home/luca/Build/superlu_dist/src/superlu_dist-9.1.0/SRC/include/superlu_ddefs.h:37,
from /home/luca/Build/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:24:
/usr/include/stdio.h:264:14: note: previous declaration of ‘fopen’ with type ‘FILE *(const char * restrict, const char * restrict)’
264 | extern FILE *fopen (const char *__restrict __filename,
| ^~~~~
/home/luca/Build/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:867:21: error: too many arguments to function ‘fopen’; expected 0, have 2
867 | if ( !(fp = fopen(filename, "w")) ) {
| ^~~~~ ~~~~~~~~
/home/luca/Build/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:824:20: note: declared here
824 | FILE *fp, *fopen();
| ^~~~~
/home/luca/Build/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c: In function ‘dDumpLblocks3D’:
/home/luca/Build/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:1755:21: error: too many arguments to function ‘fopen’; expected 0, have 2
1755 | if ( !(fp = fopen(filename, "w")) ) {
| ^~~~~ ~~~~~~~~
/home/luca/Build/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:1709:20: note: declared here
1709 | FILE *fp, *fopen();
| ^~~~~
/home/luca/Build/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c: In function ‘dcheckLUFromDisk’:
/home/luca/Build/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:1671:33: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1671 | fread(Lval_buf, sizeof(double), len2, fp); // assume fp will be incremented
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/luca/Build/superlu_dist/src/superlu_dist-9.1.0/SRC/double/dutil_dist.c:1681:33: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1681 | fread(Uval_buf, sizeof(double), lenv, fp); // assume fp will be incremented
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [SRC/CMakeFiles/superlu_dist.dir/build.make:597: SRC/CMakeFiles/superlu_dist.dir/double/dutil_dist.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:183: SRC/CMakeFiles/superlu_dist.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
gpettinello commented on 2021-11-07 08:24 (UTC)
Hi ChrisTX I also updated this package:
# Maintainer: Christian Pfeiffer <cpfeiffer at live dot de>
# Contributor: Gianluca Pettinello <g_pet at hotmail dot com>
pkgname=superlu_dist
pkgver=7.1.1
pkgrel=1
pkgdesc="Set of subroutines to solve a sparse linear system (MPI parallel version)"
arch=('x86_64')
url="https://github.com/xiaoyeli/superlu_dist"
license=('custom')
depends=('lapack' 'parmetis' 'openblas')
makedepends=('cmake' 'gcc-fortran')
source=(${url}/archive/v$pkgver.tar.gz)
sha512sums=('558053b3d4a56eb661c4f04d4fcab6604018ce5db97115394c161b56c9c278ff')
options=('staticlibs')
prepare() {
mkdir -p build
# CombBLAS uses C++14 in its headers. Otherwise the code won't build
sed -i "s/set(CMAKE_CXX_STANDARD 11)/set(CMAKE_CXX_STANDARD 14)/" "$srcdir/$pkgname-$pkgver/CMakeLists.txt"
}
build() {
cd build
cmake ../$pkgname-$pkgver/ \
-DTPL_PARMETIS_INCLUDE_DIRS="/usr/include" \
-DTPL_PARMETIS_LIBRARIES="/usr/lib/libparmetis.so" \
-DTPL_ENABLE_BLASLIB=ON \
-DTPL_ENABLE_LAPACKLIB=ON \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_INCLUDEDIR=include/superlu_dist \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
mkdir -p $pkgdir/usr/share/doc/$pkgname \
$pkgdir/usr/share/licenses/$pkgname
install -m644 $srcdir/$pkgname-$pkgver/README.md $pkgdir/usr/share/doc/$pkgname
install -m644 $srcdir/$pkgname-$pkgver/License.txt $pkgdir/usr/share/licenses/$pkgname
install -m644 $srcdir/$pkgname-$pkgver/DOC/ug.pdf $pkgdir/usr/share/doc/$pkgname/ug.pdf
}
Please update Thanks Gianluca
andersdamsgaard commented on 2021-10-08 08:00 (UTC) (edited on 2021-10-08 08:01 (UTC) by andersdamsgaard)
For the time being, this package builds successfully after creating the following symlink:
$ sudo ln -s /usr/include/CombBLAS/{Applications/,}BipartiteMatchings
Afterwards, it may be necessary to do a cleanbuild so that the cmake configuration is rebuilt.
lmartinez-mirror commented on 2021-08-09 18:09 (UTC) (edited on 2021-08-09 18:12 (UTC) by lmartinez-mirror)
This package won't build because combblas
(upstream) moved the BipartiteMatching directory into an Applications folder.
Also worth mentioning that version 7 is out.
ChrisTX commented on 2020-03-08 15:32 (UTC) (edited on 2020-04-03 16:36 (UTC) by ChrisTX)
I can't update the package to 6.3.0 at the moment since a recent code restructuring prevents it from compiling. I've reported this upstream and was told a fix was inbound in a few days.
Update 4/3/20: 6.3.1 now resolves this issue, but the changes in 6.3 have dug up an underlying bug in combblas
that breaks compilation when building shared libraries. I've reported it upstream and hopefully this can be resolved soon.
ChrisTX commented on 2019-01-30 15:28 (UTC)
Thanks, I forgot SuperLU included a Fortran interface. This should be fixed now.
petronny commented on 2019-01-12 07:45 (UTC) (edited on 2019-01-12 07:46 (UTC) by petronny)
Process XSDK defaults ...
USE_XSDK_DEFAULTS = 'FALSE'
-- SuperLU_DIST will be built as a shared library.
-- SuperLU_DIST will also be built as a static library.
-- The Fortran compiler identification is unknown
CMake Error at CMakeLists.txt:90 (enable_language):
No CMAKE_Fortran_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full
path to the compiler, or to the compiler name if it is in the PATH.
Please add the fortran compiler as a dependency.
Pinned Comments