Skip to content
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

does not build on armhf: unrecognized command line option ‘-msse2’ #450

Open
streaps opened this issue May 21, 2021 · 3 comments
Open

Comments

@streaps
Copy link

streaps commented May 21, 2021

I tried to build on a Raspberry Pi 2, 32 bit Debian Buster (Raspbian 10). I followed the instructions from README.md:

[ 0%] Building C object libs/iovm/tools/CMakeFiles/io2c.dir/io2c.c.o
cc: error: unrecognized command line option ‘-msse2’
make[2]: *** [libs/iovm/tools/CMakeFiles/io2c.dir/build.make:63: libs/iovm/tools/CMakeFiles/io2c.dir/io2c.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:478: libs/iovm/tools/CMakeFiles/io2c.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

@yegor256
Copy link

@streaps @stevedekorte the same problem for me, here is the Dockerfile that reproduces it:

FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

SHELL ["/bin/bash", "-eo", "pipefail", "-c"]

ENV GIT_SSL_NO_VERIFY=1

# Build essentials that are required later
RUN apt-get update -y --fix-missing \
  && apt-get -y install --no-install-recommends \
    cmake=3.22.1-1ubuntu1.22.04.2 \
    git=1:2.34.1-1ubuntu1.10 \
    build-essential=12.9ubuntu3 \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/*

RUN git clone --recursive https://github.com/IoLanguage/io.git \
  && cd io \
  && git checkout 7113659c4342e98e9a86482b25441775fa066a96 \
  && mkdir build \
  && cd build \
  && cmake .. \
  && make \
  && make install \
  && io --version

The output:

...
 > [3/5] RUN git clone --recursive https://github.com/IoLanguage/io.git   && cd io   && git checkout 7113659c4342e98e9a86482b25441775fa066a96   && mkdir build   && cd build   && cmake ..   && xCPUARCH=armv7l make   && make install   && io --version:
8.101 -- Build files have been written to: /io/build
8.134 [  0%] Built target copy_coroutine_headers
8.274 [  0%] Built target copy_basekit_headers
8.294 [  0%] Built target copy_garbagecollector_headers
8.475 [  0%] Built target copy_iovm_headers
8.483 [  0%] Building C object libs/iovm/tools/CMakeFiles/io2c.dir/io2c.c.o
8.484 cc: error: unrecognized command-line option '-msse2'
8.485 make[2]: *** [libs/iovm/tools/CMakeFiles/io2c.dir/build.make:76: libs/iovm/tools/CMakeFiles/io2c.dir/io2c.c.o] Error 1
8.485 make[1]: *** [CMakeFiles/Makefile2:455: libs/iovm/tools/CMakeFiles/io2c.dir/all] Error 2
8.485 make: *** [Makefile:156: all] Error 2

@yegor256
Copy link

yegor256 commented May 3, 2024

@stevedekorte however, this Dockerfile compiles just fine in CentOS 7. It fails only on macOS M2.

@stevedekorte
Copy link
Member

Was just looking into Libco: https://github.com/Tencent/libco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants