-
Notifications
You must be signed in to change notification settings - Fork 347
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
Test MSYS2 build variants #1547
Draft
umarcor
wants to merge
3
commits into
ghdl:master
Choose a base branch
from
umarcor:msys2/tests
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eine
added
Arch: amd64
Alternative: x86-64, Intel 64 (EM64T)
Arch: i386
Alternative: x86-32
Backend: LLVM
GHDL using Low-Level Virtual Machine for code generation
Backend: mcode
GHDL using in-memory code generation
OS: Windows (MinGW)
Package: Windows - MinGW (PKGBUILD)
labels
Dec 25, 2020
umarcor
force-pushed
the
msys2/tests
branch
4 times, most recently
from
December 30, 2020 05:45
4a63bb5
to
05b8c12
Compare
This was referenced Dec 30, 2020
umarcor
force-pushed
the
msys2/tests
branch
4 times, most recently
from
January 1, 2021 17:48
e653448
to
43fdaef
Compare
2 tasks
umarcor
force-pushed
the
msys2/tests
branch
3 times, most recently
from
January 6, 2021 06:54
ed1e8ad
to
dc33ad5
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Arch: amd64
Alternative: x86-64, Intel 64 (EM64T)
Arch: i386
Alternative: x86-32
Backend: LLVM
GHDL using Low-Level Virtual Machine for code generation
Backend: mcode
GHDL using in-memory code generation
OS: Windows (MinGW)
Package: Windows - MinGW (PKGBUILD)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is not to be merged, but for showing some issues when trying multiple build options on MSYS2:
Default
This is the PKGBUILD upstreamed to msys2/MINGW-packages. It generates two packages: ghdl-mcode for MINGW32 and ghdl-llvm for MINGW64. It is tested as a reference, since it is known to work.
Clang
Same PKGBUILD as the 'Default', but using Clang instead of GCC by setting the following envvars:
On MINGW32 (mcode), the build fails because the machine is not detected properly:
I could fix that by patching
configure
(see commitmsys2: fix MINGW32 detection
). However, the build then fails with:On MINGW64 (LLVM), the build is successful, but the testsuite needs to be executed with
CC=gcc
, otherwisebug097
fails with:LLVM
Instead of using different backends, in this case LLVM is used both on MINGW32 and MINGW64. The compiler is GCC.
On MINGW64, the build is successful and the testsuite too. In fact, this is the same context as the Default.
On MINGW32, the build fails with a not very meaningful error:
Static
Same PKGBUILD as the 'Default', with
libghdl_static.diff
patch borrowed from open-tool-forge/fpga-toolchain.On MINGW32 (mcode), the build and the testsuite are successful.
On MINGW64 (LLVM), the build is successful but the first sanity test fails with:
LLVM static
Mixture of 'LLVM' and 'Static'. An attempt at generating static builds with LLVM backend on both MINGW32 and MINGW64.
On MINGW64, the build is successful but the first sanity test fails as in case 'Static'.
On MINGW32, the build fails as in case 'LLVM'.