Skip to content

Commit

Permalink
Fix Illegal Instruction in Docker image by not using -march=native (
Browse files Browse the repository at this point in the history
#2)

`RosBE-Builder.sh` defaults to using `-march=native`. Images built on the latest CPUs (as the GitHub Actions CI machines have) will then fail on older build machines.

These flags are already used for the Debian package: https://github.com/reactos/RosBE/blob/aff79fe611c5b515277e2d8fc241a2017e9b42bc/RosBE-Unix/Base-i386_debian/rules
  • Loading branch information
ColinFinck authored Aug 30, 2024
1 parent d7f6808 commit 27108f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN wget https://downloads.sourceforge.net/reactos/RosBE-Unix-2.2.1.tar.bz2 \
&& tar -xjf RosBE-Unix-2.2.1.tar.bz2 \
&& rm RosBE-Unix-2.2.1.tar.bz2 \
&& cd RosBE-Unix-2.2.1 \
&& echo yes | bash RosBE-Builder.sh /usr/local/RosBE \
&& echo yes | CFLAGS="-pipe -O2 -Wl,-S -g0 -march=core2" bash RosBE-Builder.sh /usr/local/RosBE \
&& cd .. \
&& rm -rf RosBE-Unix-2.2.1

Expand Down

0 comments on commit 27108f1

Please sign in to comment.