[CWB] Segmentation fault
Hardie, Andrew
a.hardie at lancaster.ac.uk
Mon May 4 10:55:01 CEST 2020
FEDORA 7:
This seems like an issue with gcc default settings, probably because Fedora 7 is such an extremely old version (2007) and it has a much older gcc.
I’ve made a tweak to the code in the repo which I think will avoid the problem. Please give it a try!
(OR, just see if it works as-is with a still-supported Fedora version, ie 31 or 32)
UBUNTU 17:
RE “complains bison and flex are not installed” – I think that I now know why this happens, and it’s not a CWB issue. As of about 2 years ago, Ubuntu 17 is end-of-life and no longer available from the main repos; therefore apt-get will have failed to install bison, flex, etc. when asked to do so.
Solution: re-point APT at the Ubuntu “old-releases” repo for 17.10 or, and preferably, switch to targetting a version of Ubuntu that is still maintained, e.g. 18.04 or 20.04.
Generally I suggest you target up-to-date versions of the distros because sooner or later you will run into some dependency that is impossible to fulfil on the old versions. Moreover, we don’t have any actual policy regarding which Linux distros/versions we support CWB on, but realistically, we can’t invest much effort in keeping CWB working on an OS that has been end-of-lifed by its maintainers.
thanks
best
Andrew.
From: cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> On Behalf Of Maarten Janssen
Sent: 03 May 2020 18:28
To: CWBdev Mailing List <cwb at sslmit.unibo.it>
Subject: Re: [CWB] Segmentation fault
I am happy to contribute, and as mentioned, currently testing a heap of different Linux installations anyway to get my TEITOK installation working across the board -
As for Ubuntu: no, strangely, no errors, it simply runs, and then complains bison and flex are not installed. No idea why, as I said the script should detect Ubuntu fine since I think it is having the /etc/lsb_release, and running the exact same command the script tries to execute installs it without a glitch.
As for Fedora: all the packages install fine, and then the installer fails where I pasted the last few lines below; unfortunately, it is in Spanish, since I installed it quickly and did not bother to correct the language/keyboard settings...
-----------------
gcc -c -o cwb-itoa.o -O2 -Wall -fPIC -m64 -DUSE_TERMCAP -DUSE_READLINE -DCWB_REGISTRY_DEFAULT_PATH=\""/usr/local/cwb-3.4.22/share/cwb/registry"\" -DCOMPILE_DATE=\""dom 03 may 2020 19:21:02 CEST"\" -DCWB_VERSION=\"3.4.22\" -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include cwb-itoa.c
.... link executable cwb-itoa
rm -f cwb-itoa
gcc -O2 -Wall -fPIC -m64 -DUSE_TERMCAP -DUSE_READLINE -o cwb-itoa cwb-itoa.o /home/mjanssen/cwb/utils/../cl/libcl.a -lm -lpcre -lglib-2.0
.... compile source file cwb-makeall.c
rm -f cwb-makeall.o
gcc -c -o cwb-makeall.o -O2 -Wall -fPIC -m64 -DUSE_TERMCAP -DUSE_READLINE -DCWB_REGISTRY_DEFAULT_PATH=\""/usr/local/cwb-3.4.22/share/cwb/registry"\" -DCOMPILE_DATE=\""dom 03 may 2020 19:21:02 CEST"\" -DCWB_VERSION=\"3.4.22\" -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include cwb-makeall.c
.... link executable cwb-makeall
rm -f cwb-makeall
gcc -O2 -Wall -fPIC -m64 -DUSE_TERMCAP -DUSE_READLINE -o cwb-makeall cwb-makeall.o /home/mjanssen/cwb/utils/../cl/libcl.a -lm -lpcre -lglib-2.0
/usr/bin/ld: /home/mjanssen/cwb/utils/../cl/libcl.a(makecomps.o):(.bss+0x0): definiciones múltiples de `errmsg'; /home/mjanssen/cwb/utils/../cl/libcl.a(corpus.o):(.bss+0x20): primero se definió aquí
collect2: error: ld devolvió el estado de salida 1
make[1]: *** [Makefile:95: cwb-makeall] Error 1
make[1]: se sale del directorio '/home/mjanssen/cwb/utils'
make: *** [Makefile:101: utils] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20200504/4774b1fc/attachment-0001.html>
More information about the CWB
mailing list