-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[question] mlpack fails to build #25655
Comments
Hi @SOLDATO2 Thanks for your report. This doesn't necessarily looks like a problem in the Conan client, it could be an issue in the ConanCenter recipe for
I have just tried to build it with |
Hi, Conan version: 2.7.1 There's nothing special about my gcc compiler, I reckon. here's the complete log of |
I don't see much difference in the logs, besides the core:
while I have
Not sure if some of those might be making the compiler or linker to fail, but it is weird, because there is no error message, which seems to indicate that it is not a normal compilation error, but like the process failing. Maybe a way to check this is to try to reproduce in some docker image, something that we can share the machine and reproduce on both sides. |
Unfortunately, my experience with docker is minimal. But I do think it's worth mentioning that I was getting the same error on a completely separate and fresh arch installation in the same computer. So it might be related to arch? |
Hello, I'm also running into this.
I'm pretty new to docker so this might not be exactly what you're looking for but here's a Dockerfile, CMakeLists.txt, and conanfile.txt that replicates the issue when attempting to build the image with
# Arch base image
FROM archlinux
LABEL description="Container to test building mlpack from conan, conan-io/conan-center-index#25655"
# Install yay
RUN printf "[archlinuxcn]\nServer=https://repo.archlinuxcn.org/\$arch\n" >> /etc/pacman.conf && \
rm -fr /etc/pacman.d/gnupg && pacman-key --init && pacman-key --populate archlinux && \
pacman -Syyu --noconfirm archlinuxcn-keyring && \
pacman -S --noconfirm yay
RUN useradd builder && \
printf "123\n123\n" | passwd builder && \
mkdir -p /home/builder && \
chown builder /home/builder && \
chgrp builder /home/builder && \
echo "builder ALL=(ALL) NOPASSWD: /usr/bin/pacman" >> /etc/sudoers
# Install base-devel
RUN pacman -S --noconfirm base-devel
# Switch to the builder user
USER builder
# Install conan
RUN yay -S --noconfirm conan
# Copy over files
WORKDIR /mlpack-test
COPY CMakeLists.txt .
COPY conanfile.txt .
# Create conan profile
RUN conan profile detect --force
# Try to build
RUN conan install . --build=missing --settings=build_type=Release The directory structure that I used was the following:
The docker version that I used is: Docker version 27.3.1, build ce1223035a Command that produces the error: |
Do you get the same error with the latest |
I'm unfamiliar with python conanfiles so I might've missed something but after overriding the OpenBLAS version I'm getting the same error, yes. Here's the conanfile.py: from conan import ConanFile
class MyProjectConan(ConanFile):
name = "my_project"
version = "1.0"
# Package dependencies
requires = "mlpack/4.4.0"
# Generators to create necessary files
generators = "CMakeDeps", "CMakeToolchain"
def build_requirements(self):
self.requires("openblas/0.3.27", override=True) Using And the updated Dockerfile:
I'm receiving the same error with both the Dockerfile and running on my own machine. |
Thanks for the details to reproduce.
I suspect it can be my local network blocking it, I am checking it. |
Been able to build and reproduce in the docker image. It seems it boils down to a compilation error:
So there is something in the platform that makes this build fail. this wouldn't seem really related to Conan, but need to investigate further. |
Looks like a harmless warning that fails with -Werror in generated C code. There's already a fix applied upstream: OpenMathLib/OpenBLAS#4894 |
Thanks for the feedback. Then the summary is:
Then it seems the best action would be to wait for openblas 0.3.29 (a |
Transferring this to ConanCenter, this wouldn't be a Conan issue, but a ConanCenter recipe issue. |
What is your question?
Hi! I've been trying download https://conan.io/center/recipes/mlpack in a simple project structure. Unfortunately, I'm getting an error during the build process.
CMakesLists:
Cmake version: 3.30.3
Conan version 2.7.1
Default conan profile:
Commands I've ran to build:
conan install . --build=missing --settings=build_type=Release
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: