- Posts: 1111
- Thank you received: 0
Lcnc 2.10 -- halcompile for kins
3 years 5 days ago #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
Code:
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 to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
3 years 5 days ago #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
Code:
/usr/bin/ld:scarakins.ver:2: syntax error in VERSION script
Please Log in to join the conversation.
3 years 5 days ago #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?
Please Log in to join the conversation.
3 years 4 days ago #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 ....
Code:/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 to join the conversation.
3 years 4 days ago #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!
Code:
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
Please Log in to join the conversation.
3 years 4 days ago #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 to join the conversation.
3 years 4 days ago #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:
Code:
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:
Code:
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 to join the conversation.
3 years 3 days ago #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 ....
Code:/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 to join the conversation.
3 years 3 days ago #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 ...
Please Log in to join the conversation.
3 years 3 days ago #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.
Please Log in to join the conversation.
Time to create page: 0.163 seconds
