Closed Un1Gfn closed 5 years ago
Hi.
v2.47.1 succeeds so I've made an AUR package for it.
v2.48b v2.48a v2.48 v2.47.2 all fail on Linux.
See Tracis CI.
I tried to use UASM.vcxproj on Linux with vcproj2cmake, dotnet-vcxproj and vcxproj2cmake. Fail, fail and fail.
However I found Windows builds for v2.48.
Improve GccUnix.mak
/Makefile_Linux
?
Hi,
There are a number of changes that are still to be migrated across to the Linux and OSX builds, it will most definitely NOT be Windows only 😊
We normally do the Windows updates first as it has far more users so it’s better for feedback and testing, right now I’m doing a 2.48.1 patch. Once that is done then I’ll migrate the necessary build changes to Linux and OSX and update them too.
From: Darren Wu notifications@github.com Sent: Saturday, February 16, 2019 2:35 PM To: Terraspace/UASM UASM@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [Terraspace/UASM] Linux build fails. Both GccUnix.mak and Makefile_Linux fails. (#97)
v2.48b https://github.com/Terraspace/UASM/tree/v2.48b v2.48a https://github.com/Terraspace/UASM/tree/v2.48a v2.48 https://github.com/Terraspace/UASM/tree/v2.48 v2.47.2 https://github.com/Terraspace/UASM/tree/v2.47.2 all fail on Linux
See Tracis CI https://travis-ci.org/Terraspace/UASM/branches
However there are Windows builds for v2.48 http://www.terraspace.co.uk/uasm.html#p2
I tried to use UASM.vcxproj https://github.com/Terraspace/UASM/blob/master/UASM.vcxproj on Linux with vcproj2cmake https://sourceforge.net/projects/vcproj2cmake/ , dotnet-vcxproj https://github.com/roozbehid/dotnet-vcxproj and vcxproj2cmake https://github.com/ainvyu/vcxproj2cmake . Fail, fail and fail.
Should we blame GccUnix.mak/Makefile_Linux?
Or maybe the code is not going to Windows-only?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Terraspace/UASM/issues/97#issuecomment-464351755 , or mute the thread https://github.com/notifications/unsubscribe-auth/AQGQVOXMSYcqA4fW1z5843SHGcpT4J8Oks5vOBcMgaJpZM4a_AiI .
Roger that :)
On Sun, Feb 17, 2019, 02:50 John Hankinson notifications@github.com wrote:
Hi,
There are a number of changes that are still to be migrated across to the Linux and OSX builds, it will most definitely NOT be Windows only 😊
We normally do the Windows updates first as it has far more users so it’s better for feedback and testing, right now I’m doing a 2.48.1 patch. Once that is done then I’ll migrate the necessary build changes to Linux and OSX and update them too.
From: Darren Wu notifications@github.com Sent: Saturday, February 16, 2019 2:35 PM To: Terraspace/UASM UASM@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [Terraspace/UASM] Linux build fails. Both GccUnix.mak and Makefile_Linux fails. (#97)
v2.48b https://github.com/Terraspace/UASM/tree/v2.48b v2.48a < https://github.com/Terraspace/UASM/tree/v2.48a> v2.48 < https://github.com/Terraspace/UASM/tree/v2.48> v2.47.2 < https://github.com/Terraspace/UASM/tree/v2.47.2> all fail on Linux
See Tracis CI https://travis-ci.org/Terraspace/UASM/branches
However there are Windows builds for v2.48 < http://www.terraspace.co.uk/uasm.html#p2>
I tried to use UASM.vcxproj < https://github.com/Terraspace/UASM/blob/master/UASM.vcxproj> on Linux with vcproj2cmake https://sourceforge.net/projects/vcproj2cmake/ , dotnet-vcxproj https://github.com/roozbehid/dotnet-vcxproj and vcxproj2cmake https://github.com/ainvyu/vcxproj2cmake . Fail, fail and fail.
Should we blame GccUnix.mak/Makefile_Linux?
Or maybe the code is not going to Windows-only?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/Terraspace/UASM/issues/97#issuecomment-464351755> , or mute the thread < https://github.com/notifications/unsubscribe-auth/AQGQVOXMSYcqA4fW1z5843SHGcpT4J8Oks5vOBcMgaJpZM4a_AiI> .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Terraspace/UASM/issues/97#issuecomment-464371566, or mute the thread https://github.com/notifications/unsubscribe-auth/AbMzTNIuFeKh5RFCvF6pkfvv_kbJTyTKks5vOFLYgaJpZM4a_AiI .
UASM sources from your git-repo https://github.com/Terraspace/UASM (master branch) can’t be built @ linux or freebsd (CentOS 7, FreeBSD 11 @ x86_64).
We tried gcc && GccUnix.mak, and have some errors. The same problems you have in github issues.
BTW, we tried to fix these errors, bug succeeded only in building UASM, that produces lame binaries (crashing at call to asm-functions). Patch attached. uasm.tar.gz
Hope, our patch will help you.
2.49 is built for linux using GCC and Clang tested. gccmod.inc and a tweaked makefile works.
❯ make -f gccLinux64.mak
gcc -D __UNIX__ -c -IH -D __UNIX__ -DNDEBUG -O2 -funsigned-char -Wwrite-strings -o GccUnixR/dbgcv.o dbgcv.c
In file included from dbgcv.c:13:
H/memalloc.h:49: warning: "alloca" redefined
49 | #define alloca(x) __builtin_alloca(x)
|
In file included from /usr/include/stdlib.h:568,
from H/globals.h:38,
from dbgcv.c:12:
/usr/include/alloca.h:35: note: this is the location of the previous definition
35 | # define alloca(size) __builtin_alloca (size)
|
dbgcv.c:20:10: fatal error: direct.h: No such file or directory
20 | #include <direct.h>
| ^~~~~~~~~~
compilation terminated.
make: *** [gccLinux64.mak:34: GccUnixR/dbgcv.o] Error 1
This error occurs when building with gccLinux64.mak
. Any suggestions on how to solve this? I tried looking online and saw direct.h
is a Windows-only thing; don't know if that's an issue...
@cybarspace Try v2.50 branch, built successful on Ubuntu.
@cybarspace Try v2.50 branch, built successful on Ubuntu.
Affirmative. Build successful and running. Thanks a lot. :relaxed:
$ git rev-parse HEAD
$ make -f GccUnix.mak
$ sed -i 's/CC = clang-3.8/CC = clang/' Makefile_Linux; make -f Makefile_Linux