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 line
Code: Select all
MessageRequester("Message", "Hello world!")
always produced this output
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
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...
These are the packages I had to install in a newly installed SliTaz 5.0 with
sudo tazpkg get-install PackageName
in order to get an OK from checkinstall.sh:
- 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`
I obtained the following error:
gcc wrote:/usr/include/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory
This error message reveals that the kernel headers are missing. After installing the SliTaz toolchain with
Code: Select all
sudo tazpkg get-install slitaz-toolchain
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...