Lcnc 2.10 -- halcompile for kins
25 Oct 2023 23:03 #283832
by bkt
Lcnc 2.10 -- halcompile for kins was created by bkt
when try to run halcopile on Lcnc2.10 on linuxcnc-dev/src/emc/kinematics folder obtain an error .... for test I modify scarakins.c and try to compile with halcompile ....
I'm doing it wrong?
any suggest accept.
regards
sudo halcompile --compile scarakins.c
Compiling realtime scarakins.c
Linking scarakins.so
/usr/bin/ld:scarakins.ver:2: syntax error in VERSION script
collect2: error: ld returned 1 exit status
/usr/share/linuxcnc/Makefile.modinc:121: recipe for target 'scarakins.so' failed
make: *** [scarakins.so] Error 1
I'm doing it wrong?
any suggest accept.
regards
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19201
- Thank you received: 6436
25 Oct 2023 23:14 #283833
by tommylight
Means there is a typo in the version script, makes me think the version in the script and the one you re trying to compile are not the same.
Replied by tommylight on topic Lcnc 2.10 -- halcompile for kins
/usr/bin/ld:scarakins.ver:2: syntax error in VERSION script
Please Log in or Create an account to join the conversation.
26 Oct 2023 00:16 #283835
by andypugh
Replied by andypugh on topic Lcnc 2.10 -- halcompile for kins
I am a bit confused about what this VERSION script is.
The only VERSION I know of shouldn't be relevant.
what does
sudo find / -name VERSION
turn up?
The only VERSION I know of shouldn't be relevant.
what does
sudo find / -name VERSION
turn up?
The following user(s) said Thank You: bkt
Please Log in or Create an account to join the conversation.
27 Oct 2023 06:05 #283893
by bkt
Replied by bkt on topic Lcnc 2.10 -- halcompile for kins
I agree ... but for test I use exacly the same kins install from github .... because I've the same problem with old install .... for install for first download zip file from github, than in linuxcnc-dev/src -> ./autogen.sh than ./configure --with-realtime=uspace than make than sudo make setuid than .....rip-.... than runtest than ... cd.. + cd debian + ./configure uspace + cd.. + dpkg-buildpackage -b -uc ... after install deb package (userspace + dev + dbxxx) .... so not understand why different VERSION ....
/usr/bin/ld:scarakins.ver:2: syntax error in VERSION script Means there is a typo in the version script, makes me think the version in the script and the one you re trying to compile are not the same.
Please Log in or Create an account to join the conversation.
27 Oct 2023 08:26 - 27 Oct 2023 08:33 #283898
by bkt
Replied by bkt on topic Lcnc 2.10 -- halcompile for kins
thnks to suggest to check what VERSION is but personally what I find not help .... maybe you can see where problem is ... the output:I am a bit confused about what this VERSION script is.
The only VERSION I know of shouldn't be relevant.
what does
sudo find / -name VERSION
turn up?
Warning: Spoiler!
testPc@mark28:~$ sudo find / -name VERSION
[sudo] password di testPc:
/var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/18.08/c96f3520f0f7c65327cab24c2ec18ccb21e721d7d0f10c1716d829c8f629d8d2/files/share/gettext/intl/VERSION
/home/testPc/.conan/data/qtimageformats/6.0.1/qt/final/export_source/src/3rdparty/libtiff/VERSION
/home/testPc/linuxcnc_s_kins_bkt-master/VERSION
/home/testPc/.local/lib/python3.6/site-packages/OpenGL/GLES1/VERSION
/home/testPc/.local/lib/python3.6/site-packages/OpenGL/WGL/VERSION
/home/testPc/.local/lib/python3.6/site-packages/OpenGL/GLES3/VERSION
/home/testPc/.local/lib/python3.6/site-packages/OpenGL/raw/GLES1/VERSION
/home/testPc/.local/lib/python3.6/site-packages/OpenGL/raw/WGL/VERSION
/home/testPc/.local/lib/python3.6/site-packages/OpenGL/raw/GLES3/VERSION
/home/testPc/.local/lib/python3.6/site-packages/OpenGL/raw/EGL/VERSION
/home/testPc/.local/lib/python3.6/site-packages/OpenGL/raw/GLES2/VERSION
/home/testPc/.local/lib/python3.6/site-packages/OpenGL/raw/GLX/VERSION
/home/testPc/.local/lib/python3.6/site-packages/OpenGL/raw/GL/VERSION
/home/testPc/.local/lib/python3.6/site-packages/OpenGL/EGL/VERSION
/home/testPc/.local/lib/python3.6/site-packages/OpenGL/GLES2/VERSION
/home/testPc/.local/lib/python3.6/site-packages/OpenGL/GLX/VERSION
/home/testPc/.local/lib/python3.6/site-packages/OpenGL/GL/VERSION
/home/testPc/.local/share/Trash/files/dwz-0.13/VERSION
/home/testPc/Documenti/linuxcnc-add-hal-ethercat/VERSION
/home/testPc/linuxcnc-master/VERSION
/home/testPc/old-linuxcnc-dev/VERSION
find: ‘/proc/1910/task/1910/net’: Argomento non valido
find: ‘/proc/1910/net’: Argomento non valido
find: ‘/run/user/1000/doc’: Permesso negato
find: ‘/run/user/1000/gvfs’: Permesso negato
/usr/lib/python3/dist-packages/OpenGL/GLES1/VERSION
/usr/lib/python3/dist-packages/OpenGL/WGL/VERSION
/usr/lib/python3/dist-packages/OpenGL/GLES3/VERSION
/usr/lib/python3/dist-packages/OpenGL/raw/GLES1/VERSION
/usr/lib/python3/dist-packages/OpenGL/raw/WGL/VERSION
/usr/lib/python3/dist-packages/OpenGL/raw/GLES3/VERSION
/usr/lib/python3/dist-packages/OpenGL/raw/EGL/VERSION
/usr/lib/python3/dist-packages/OpenGL/raw/GLES2/VERSION
/usr/lib/python3/dist-packages/OpenGL/raw/GLX/VERSION
/usr/lib/python3/dist-packages/OpenGL/raw/GL/VERSION
/usr/lib/python3/dist-packages/OpenGL/EGL/VERSION
/usr/lib/python3/dist-packages/OpenGL/GLES2/VERSION
/usr/lib/python3/dist-packages/OpenGL/GLX/VERSION
/usr/lib/python3/dist-packages/OpenGL/GL/VERSION
/usr/lib/python2.7/dist-packages/OpenGL/GLES1/VERSION
/usr/lib/python2.7/dist-packages/OpenGL/WGL/VERSION
/usr/lib/python2.7/dist-packages/OpenGL/GLES3/VERSION
/usr/lib/python2.7/dist-packages/OpenGL/raw/GLES1/VERSION
/usr/lib/python2.7/dist-packages/OpenGL/raw/WGL/VERSION
/usr/lib/python2.7/dist-packages/OpenGL/raw/GLES3/VERSION
/usr/lib/python2.7/dist-packages/OpenGL/raw/EGL/VERSION
/usr/lib/python2.7/dist-packages/OpenGL/raw/GLES2/VERSION
/usr/lib/python2.7/dist-packages/OpenGL/raw/GLX/VERSION
/usr/lib/python2.7/dist-packages/OpenGL/raw/GL/VERSION
/usr/lib/python2.7/dist-packages/OpenGL/EGL/VERSION
/usr/lib/python2.7/dist-packages/OpenGL/GLES2/VERSION
/usr/lib/python2.7/dist-packages/OpenGL/GLX/VERSION
/usr/lib/python2.7/dist-packages/OpenGL/GL/VERSION
/usr/share/clonezilla/doc/VERSION
/usr/share/drbl/doc/VERSION
/usr/share/sgml/docbook/stylesheet/dsssl/modular/VERSION
/usr/share/gettext/intl/VERSION
/usr/share/xml/docbook/stylesheet/docbook-xsl/VERSION
/usr/share/doc/texlive-doc/bibtex/urlbst/VERSION
/usr/share/doc/texlive-doc/support/pdfjam/VERSION
Last edit: 27 Oct 2023 08:33 by bkt.
Please Log in or Create an account to join the conversation.
27 Oct 2023 08:36 #283899
by bkt
Replied by bkt on topic Lcnc 2.10 -- halcompile for kins
only guess I can make is related to more than one python version ..... but think is not righ things ....
Please Log in or Create an account to join the conversation.
27 Oct 2023 09:15 #283900
by bkt
Replied by bkt on topic Lcnc 2.10 -- halcompile for kins
i try again with same problem ....
modinc file at that line is:
testPc@mark28:~$ sudo halcompile --compile '/home/testPc/linuxcnc-master/src/emc/kinematics/scarakins.c'
Compiling realtime scarakins.c
Linking scarakins.so
/usr/bin/ld:scarakins.ver:2: syntax error in VERSION script
collect2: error: ld returned 1 exit status
/usr/share/linuxcnc/Makefile.modinc:121: recipe for target 'scarakins.so' failed
make: *** [scarakins.so] Error 1
testPc@mark28:~$
modinc file at that line is:
ifeq ($(BUILDSYS),uspace)
EXTRA_CFLAGS += -DSIM -fPIC
allmodules = $(patsubst %.o,%.so,$(obj-m))
modules: $(allmodules)
install: modules
cp $(allmodules) $(DESTDIR)$(RTLIBDIR)/
getobjs = $(if $(filter undefined, $(origin $(1)-objs)), $(1).o, $($(1)-objs))
getsrcs = $(patsubst %.o,%.c,$(call getobjs,$(1)))
maks := $(patsubst %.o,.%.modinc,$(obj-m))
$(foreach mod,$(patsubst %.o,%,$(obj-m)),\
$(eval $(mod).so: $(call getobjs,$(mod))))
%.o: %.c
$(ECHO) Compiling realtime $<
$(Q)$(CC) -o $@ $(EXTRA_CFLAGS) -c $<
.PHONY: %.so
%.so:
#####121 line -> ECHO .... think "receipe for targhet ....."#######
$(ECHO) Linking $@
$(Q)ld -d -r -o $*.tmp $^
$(Q)objcopy -j .rtapi_export -O binary $*.tmp $*.sym
$(Q)(echo '{ global : '; tr -s '\0' < $*.sym | xargs -r0 printf '%s;\n' | grep .; echo 'local : * ; };') > $*.ver
$(Q)$(CC) -shared -Bsymbolic $(LDFLAGS) -Wl,--version-script,$*.ver -o $@ $^ -lm $(EXTRA_LDFLAGS)
$(Q)chmod -x $@
endif
Please Log in or Create an account to join the conversation.
28 Oct 2023 06:19 #283934
by bkt
Replied by bkt on topic Lcnc 2.10 -- halcompile for kins
If I compile a scarakins.c kins without using switchkins.h and kinematics.h compile whitout problem .... what means? need to compile using make etc etc? I understand that procedure was valid only for Lcnc-dev rip-install version .... not for .deb install too ....
/usr/bin/ld:scarakins.ver:2: syntax error in VERSION script Means there is a typo in the version script, makes me think the version in the script and the one you re trying to compile are not the same.
Please Log in or Create an account to join the conversation.
28 Oct 2023 08:37 - 28 Oct 2023 11:11 #283936
by bkt
after long search seems problem become from ld-2.27.so
really the most suggestion googling is "ld linker error" .... and I suppose depends from ld-2.27.so ....
..... so now seach for workaround ...
Replied by bkt on topic Lcnc 2.10 -- halcompile for kins
really the most suggestion googling is "ld linker error" .... and I suppose depends from ld-2.27.so ....
..... so now seach for workaround ...
Last edit: 28 Oct 2023 11:11 by bkt.
Please Log in or Create an account to join the conversation.
28 Oct 2023 09:27 #283940
by andypugh
Replied by andypugh on topic Lcnc 2.10 -- halcompile for kins
No real help, but I see the same problem.
Googling for "syntax error in VERSION script" indicates that this isn't an unknown issue in other places, but the causes can be rather random.
Sadly, the workaround is probably to compile run-in-place then move the generated .so to where it is needed.
Googling for "syntax error in VERSION script" indicates that this isn't an unknown issue in other places, but the causes can be rather random.
Sadly, the workaround is probably to compile run-in-place then move the generated .so to where it is needed.
The following user(s) said Thank You: bkt
Please Log in or Create an account to join the conversation.
Time to create page: 0.094 seconds