Could not call native sdf2table on Ubuntu x64
“I have newly setup the latest Ubuntu 10.04 64 Bit, have installed Eclipse Galileo and Spoofax on it and tried out Your Tour example. I got quickly an error: ‘Could not call native sdf2table’. So I think I will work with TXL - thats working at least on XP.”
(Reported by Otto H.)Some logging/details:
- the Console output tells:
Generating syntax/EntityLang.sdf
Generating syntax/Common.sdf
Generating syntax/EntityLang.pp
Generating trans/entitylang.str
Generating trans/generate.str
Generating trans/check.str
including ./syntax/EntityLang.sdf
including syntax/Common.sdf
Reading descriptor files
[ sdf2imp | error ] Unable to import module
Import(“EntityLang.main”)
[ sdf2imp | warning ] Error opening existing descriptor file; attempting to use defaults instead
“(editor/EntityLang.main)”
Using main module EntityLang
Using start symbols Start
Using package name com.pany.entities
Using file extensions ent
Analyzing grammar…
Invoking native tool /home/otto/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.strategoxt.imp.nativebundle_0.1.1.201006151318/native/linux/sdf2table [“-i”, “/home/otto/Diverses/Eclipse/com.pany.entities/include/EntityLang.def”, “-o”, “/tmp/StrategoXT9115040237457933791.tmp”, “-m”, “EntityLang”, “-n”]
- the error log tells:
Message: Exception while creating new project
Xception Stack Trace:
org.strategoxt.lang.StrategoException: Could not call native tool sdf2table
Command:
[/home/otto/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.strategoxt.imp.nativebundle_0.1.1.201006151318/native/linux/sdf2table, -i, /home/otto/Diverses/Eclipse/com.pany.entities/include/EntityLang.def, -o, /tmp/StrategoXT9115040237457933791.tmp, -m, EntityLang, -n]
Environment:
[GNOME_KEYRING_CONTROL=/tmp/keyring-uxxyIw, GTK_MODULES=canberra-gtk-module, SSH_AGENT_PID=1684, SPEECHD_PORT=7560, MOZILLA_FIVE_HOME=/usr/lib/xulrunner-1.9.2.8, SESSION_MANAGER=local/ubFP:@/tmp/.ICE-unix/1650,unix/ubFP:/tmp/.ICE-unix/1650, GNOME_DESKTOP_SESSION_ID=this-is-deprecated, GDMSESSION=gnome, XDG_SESSION_COOKIE=eca9093c649ce684b240c8504c163afd-1280396284.378125-1774052611, XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/, MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path, PWD=/home/otto, LOGNAME=otto, SSH_AUTH_SOCK=/tmp/keyring-uxxyIw/ssh, LD_LIBRARY_PATH=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/lib/xulrunner-1.9.2.8, SHELL=/bin/bash, DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-hVrUYuV9UL,guid=051bee56dbfbcd1dc7a1cb874c514bfc, GDM_KEYBOARD_LAYOUT=de, GNOME_KEYRING_PID=1632, CYGWIN=nodosfilewarning, XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg, PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games, DESKTOP_SESSION=gnome, DISPLAY=:0.0, USER=otto, HOME=/home/otto, XAUTHORITY=/var/run/gdm/auth-for-otto-zwAS0K/database, GDM_LANG=de_DE.utf8, DEFAULTS_PATH=/usr/share/gconf/gnome.default.path, USERNAME=otto, ORBIT_SOCKETDIR=/tmp/orbit-otto, LANG=de_DE.utf8]
Working dir:
/home/otto/Diverses/Eclipse/com.pany.entities
at org.strategoxt.imp.nativebundle.SDFBundleCommand.invoke(SDFBundleCommand.java:172)
at org.strategoxt.imp.nativebundle.SDFBundleCommand.invoke(SDFBundleCommand.java:142)
at org.strategoxt.imp.generator.sdf2table_0_0.invoke(sdf2table_0_0.java:82)
at org.strategoxt.imp.generator.sdf2rtg_0_0.invoke(sdf2rtg_0_0.java:99)
at org.strategoxt.imp.generator.sdf2imp_0_0.invoke(sdf2imp_0_0.java:442)
at org.strategoxt.imp.generator.lifted789.invoke(lifted789.java:32)
at org.strategoxt.stratego_lib.option_wrap_5_0.invoke(option_wrap_5_0.java:33)
at org.strategoxt.stratego_lib.option_wrap_2_0.invoke(option_wrap_2_0.java:22)
at org.strategoxt.imp.generator.main_sdf2imp_0_0.invoke(main_sdf2imp_0_0.java:31)
at org.strategoxt.lang.Context.invokeStrategyCLI(Context.java:163)
at org.strategoxt.imp.generator.sdf2imp.mainNoExit(sdf2imp.java:10282)
at org.strategoxt.imp.metatooling.wizards.NewEditorWizard.doFinish(NewEditorWizard.java:135)
at org.strategoxt.imp.metatooling.wizards.NewEditorWizard.access$0(NewEditorWizard.java:113)
at org.strategoxt.imp.metatooling.wizards.NewEditorWizard$1.run(NewEditorWizard.java:80)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.io.IOException: Cannot run program “/home/otto/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.strategoxt.imp.nativebundle_0.1.1.201006151318/native/linux/sdf2table” (in directory “/home/otto/Diverses/Eclipse/com.pany.entities”): java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at org.strategoxt.lang.compat.NativeCallHelper.call(NativeCallHelper.java:38)
at org.strategoxt.imp.nativebundle.SDFBundleCommand.invoke(SDFBundleCommand.java:162)
… 14 more
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
… 17 moreSession Data:
eclipse.buildId=M20100211-1343
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Framework arguments: -vmargsi -Xss8m -Xms256m -Xmx1024m -XX:MaxPermSize=256m -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
Command-line arguments: -os linux -ws gtk -arch x86_64 -vmargsi -Xss8m -Xms256m -Xmx1024m -XX:MaxPermSize=256m -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropinsSubmitted by Lennart Kats on 29 July 2010 at 13:49
- the file rights tell:
otto@ubFP:~/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.strategoxt.imp.nativebundle_0.1.1.201006151318/native/linux$ ls -l sdf2table
-rwxr-xr-x 1 otto otto 4610349 2010-05-12 14:38 sdf2table
Issue Log
Rob Vermaas reported that the problem is likely related to libc not being linked statically; recompiling it could fix this problem.
Log in to post comments