-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error message could be improved when eigen isn't available #183
Comments
What version of pkgconfig do you have? The PKG_CHECK_MODULES macro generates a default error message if you don't provide one and it can't find the package. Mine looks like this:
The syntax error makes me think there's something else wrong. |
I have the same kind of errors when a package is not found.
|
The original issue (opencollab#183) appears to be some sort of syntax error, likely from not having pkg-config installed at the time of generating the configure script. Specifying our own error text won't improve that problem. This reverts commit ad9f74b.
The original issue (opencollab#183) appears to be some sort of syntax error, likely from not having pkg-config installed at the time of generating the configure script. Specifying our own error text won't improve that problem. This reverts commit ad9f74b.
could I ask how to solve the problem? I met the same error
and I have installed |
If you bootstrapped before installing
|
I also got an error for the latest version 3.8.0 on ubuntu 22.04
Does arpack-ng require Eigen? If so, when I run My temporary solution is to simply delete the line 26616 of |
No, Can you print with Line 92 in db55a7f
Line 93 in db55a7f
with |
I added a line
|
This will definitely reproduce the problem, the following is a simplified version of my Dockerfile. The build command I use is FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt -y update && \
apt -y upgrade && \
apt install -y git vim time libsqlite3-dev libboost-filesystem-dev \
wget mlocate automake libtool lzip
RUN apt install -y g++ gfortran make
# ======== New User ========
# create `docker` as sudoer, use bash by default
# no password required for sudo command
RUN apt install -y sudo
ARG DOCKER_UID=1000
ARG DOCKER_USER=docker
ARG DOCKER_PASSWD=docker
RUN useradd -u $DOCKER_UID -m $DOCKER_USER --shell /bin/bash && echo "$DOCKER_USER:$DOCKER_PASSWD" | chpasswd && echo "$DOCKER_USER ALL=(ALL) ALL" >> /etc/sudoers
USER ${DOCKER_USER}
SHELL ["/bin/bash", "-c"] # --shell /bin/bash didn't work
ARG INSTALL_DIR=/home/$DOCKER_USER/libs
RUN mkdir -p $INSTALL_DIR
# ======== CMake ========
RUN cd ~/ && \
wget -q https://github.com/Kitware/CMake/releases/download/v3.25.0-rc4/cmake-3.25.0-rc4-linux-x86_64.tar.gz && \
tar -xzf cmake-3.25.0-rc4-linux-x86_64.tar.gz && \
ln -s ~/cmake-3.25.0-rc4-linux-x86_64/bin/cmake ~ && \
rm cmake-3.25.0-rc4-linux-x86_64.tar.gz
# ======== (C)BLAS and LAPACK(E) 32bit dynamic (reference) ========
RUN cd ~/ && wget -q https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v3.10.1.tar.gz && \
tar -xzf v3.10.1.tar.gz && \
mkdir lapack-build && cd lapack-build && \
mkdir $INSTALL_DIR/lapack32-so && \
~/cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR/lapack32-so -DBUILD_INDEX64=OFF -DBUILD_SHARED_LIBS=ON -DLAPACKE=ON -DCBLAS=ON ../lapack-3.10.1/ && \
cd ~/lapack-build && make -j12 && make install
# ======== Arpack-NG ========
# --with-blas --with-lapack will not work
RUN cd ~/ && \
wget -q https://github.com/opencollab/arpack-ng/archive/refs/tags/3.8.0.tar.gz && \
tar -xzf 3.8.0.tar.gz && cd arpack-ng-3.8.0 && \
mkdir $INSTALL_DIR/arpack && \
sh bootstrap
# delete line 26616d to prevent an error about Eigen, `make check` will be ok
RUN cd ~/arpack-ng-3.8.0 && \
export LIBRARY_PATH=$LIBRARY_PATH:$INSTALL_DIR/lapack32-so/lib/ && \
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$INSTALL_DIR/lapack32-so/lib/ && \
# sed -i '26616d' ./configure && \
./configure --prefix=$INSTALL_DIR/arpack && \
make -j12 && make check -j12 && make install Also, in here, I installed blas and lapack in a custom directory, but |
Modifying
|
ok, my git diff now shows the same, here is the complete output of
|
Put the Line 92 in db55a7f
|
I think autoconf isn't expanding the PKG_CHECK_MODULES macro for some reason, and just places it directly into |
I can reproduce this by deleting So I think the root of the problem is that We could ship a copy of it in the |
The text was updated successfully, but these errors were encountered: