Dear Community,
I have noticed that on SliTaz linux for some reason I just can't compile any code I mean its says "[COMPILER]: Assembler Error" even to
Debug "TEST". I have checked the ./checkinstall file and its says everything is fine. I have tried to install the lastest fasm aswell still no success. Maybe its not a bug and I did something wrong but I have no clue.. I also tried older versions and I got the same result.
SliTaz Linux "Assembler Error"
Re: SliTaz Linux "Assembler Error"
I forget to mention the PB version is 5.50 x86 and the SliTaz is also x86.Cyberity wrote:Dear Community,
I have noticed that on SliTaz linux for some reason I just can't compile any code I mean its says "[COMPILER]: Assembler Error" even to
Debug "TEST". I have checked the ./checkinstall file and its says everything is fine. I have tried to install the lastest fasm aswell still no success. Maybe its not a bug and I did something wrong but I have no clue.. I also tried older versions and I got the same result.
Re: SliTaz Linux "Assembler Error"
I can confirm the "Assembler Error" problem on SliTaz 5.0 (Rolling release, x86, 14.08.2016). I have tested on SliTaz 5.0 with different PB compiler versions (4.61, 5.31, 5.43, 5.50) from Terminal and IDE. I even tried to start the PB compiler with gdb and valgrind (I even replaced /lib/ld-2.14.1.so with the non-stripped version containing debugging symbols) but compiling the single linealways produced this output
These are the packages I had to install in a newly installed SliTaz 5.0 with
- gcc
- gtk+-dev
- gtk+3-dev
- libgnome-dev
- glibc-dev
- glibc-locale
- xine-lib-dev
- xorg-libXxf86vm-dev
- libsdl-dev
- unixODBC-dev
After getting the segmentation fault when compiling PureBasic programs I tried to compile a C sourcecode (to verify that the gcc toolchain is working) and to compile an assembler sorcecode with FASM contained in the PB compiler folder (to verify that PB's version of FASM is working).
When compiling the program Mask from http://zetcode.com/gfx/cairo/clippingmasking/ withI obtained the following error:the compilation of the Mask.c sourcecode was successfull.
For testing FASM contained in PB I downloaded this HelloWorld asssembler sourcecode for Linux. I only had to remove the trailing "3" in the first line. The compilation didn't throw any error and the compiled file correctly displayed "Hello world!" in the console.
In essence gcc and FASM are working correctly but in PureBasic the call of FASM leads to a segmentation fault (starting pbcompiler with flags -k or -pp is working correctly but doesn't call FASM to compile an executable).
During the last years I have tested more than 20 different full blown Linux distributions with PureBasic which all don't show the reported segmentation fault but SliTaz is the first very small-sized distro...
Code: Select all
MessageRequester("Message", "Hello world!")Valgrind with the option --leak-check=full only prints a HEAP SUMMARY and a LEAK SUMMARY behind the above posted PB messages but unfortunately doesn't report anything about the segmentation fault...PB compiler wrote:******************************************
PureBasic 5.43 LTS (Linux - x86)
******************************************
Loading external modules...
Starting compilation...
Starting compilation...
1 lines processed.
Creating the executable.
Segmentation fault
Error: Assembler
These are the packages I had to install in a newly installed SliTaz 5.0 with
in order to get an OK from checkinstall.sh:sudo tazpkg get-install PackageName
- gcc
- gtk+-dev
- gtk+3-dev
- libgnome-dev
- glibc-dev
- glibc-locale
- xine-lib-dev
- xorg-libXxf86vm-dev
- libsdl-dev
- unixODBC-dev
After getting the segmentation fault when compiling PureBasic programs I tried to compile a C sourcecode (to verify that the gcc toolchain is working) and to compile an assembler sorcecode with FASM contained in the PB compiler folder (to verify that PB's version of FASM is working).
When compiling the program Mask from http://zetcode.com/gfx/cairo/clippingmasking/ with
Code: Select all
gcc Mask.c -o Mask `pkg-config --cflags --libs gtk+-2.0`This error message reveals that the kernel headers are missing. After installing the SliTaz toolchain withgcc wrote:/usr/include/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory
Code: Select all
sudo tazpkg get-install slitaz-toolchainFor testing FASM contained in PB I downloaded this HelloWorld asssembler sourcecode for Linux. I only had to remove the trailing "3" in the first line. The compilation didn't throw any error and the compiled file correctly displayed "Hello world!" in the console.
In essence gcc and FASM are working correctly but in PureBasic the call of FASM leads to a segmentation fault (starting pbcompiler with flags -k or -pp is working correctly but doesn't call FASM to compile an executable).
During the last years I have tested more than 20 different full blown Linux distributions with PureBasic which all don't show the reported segmentation fault but SliTaz is the first very small-sized distro...
Re: SliTaz Linux "Assembler Error"
What if you try to compile a small console application ?
Does that also cause the same error ?
Does that also cause the same error ?
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: SliTaz Linux "Assembler Error"
Yes. When compiling the following sourcecode from console with "Executable Format: Console" on SliTaz 5.0 the same error messages as above are displayedwilbert wrote:What if you try to compile a small console application ?
Does that also cause the same error ?
Code: Select all
OpenConsole("Test")
PrintN("Hello world!")
Input()

