[Gambas-user] Illegal instruction when calling a C library
martin p cristia
tercoide at ...67...
Wed Nov 11 13:19:11 CET 2015
After compiling and installing 3.8.3 (from 3.8.2):
this call...
modLibMatrix8.setCG(cgx, cgy, cgz)
declared as...
Public Extern setCG(x As Float, y As Float, z As Float)
(no modifications in the C .so library, or in the gambas code)
void setCG(double x, double y, double z)
{
// saving CG location for future use
cg.x = x;
cg.y = y;
cg.z = z;
}
gives
"Illegal instruction"
[System]
Gambas=3.8.3
OperatingSystem=Linux
Kernel=4.2.0-18-generic
Architecture=x86_64
Distribution=Ubuntu 15.10
Desktop=GNOME
Theme=Gtk
Language=es_ES.UTF-8
Memory=5843M
[Libraries]
Cairo=libcairo.so.2.11400.2
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.14.3
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.600.0
GTK+2=libgtk-x11-2.0.so.0.2400.28
GTK+3=libgtk-3.so.0.1600.7
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.49.0.0
Poppler=libpoppler.so.52.0.0
QT4=libQtCore.so.4.8.6
QT5=libQt5Core.so.5.4.2
SDL=libSDL-1.2.so.0.11.4
[Environment]
CLUTTER_IM_MODULE=xim
COMPIZ_BIN_PATH=/usr/bin/
COMPIZ_CONFIG_PROFILE=ubuntu
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-6oD2oA7o1a
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
DISPLAY=:0
GB_GUI=gb.qt4
GDMSESSION=ubuntu
GDM_LANG=es_ES
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=1967
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=
GNOME_KEYRING_PID=
GTK2_MODULES=overlay-scrollbar
GTK_IM_MODULE=ibus
GTK_MODULES=unity-gtk-module
HOME=<home>
IM_CONFIG_PHASE=1
INSTANCE=
JOB=unity-settings-daemon
LANG=es_ES.UTF-8
LANGUAGE=es_ES:en
LC_ADDRESS=es_AR.UTF-8
LC_IDENTIFICATION=es_AR.UTF-8
LC_MEASUREMENT=es_AR.UTF-8
LC_MONETARY=es_AR.UTF-8
LC_NAME=es_AR.UTF-8
LC_NUMERIC=es_AR.UTF-8
LC_PAPER=es_AR.UTF-8
LC_TELEPHONE=es_AR.UTF-8
LC_TIME=es_AR.UTF-8
LOGNAME=<user>
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
PAPERSIZE=a4
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=<home>
QT4_IM_MODULE=xim
QT_IM_MODULE=ibus
QT_QPA_PLATFORMTHEME=appmenu-qt5
SESSION=ubuntu
SESSIONTYPE=gnome-session
SHELL=/bin/bash
SHLVL=0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
UPSTART_EVENTS=xsession started
UPSTART_INSTANCE=
UPSTART_JOB=unity7
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/900
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
XDG_CURRENT_DESKTOP=Unity
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_ID=c1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
XMODIFIERS=@im=ibus
--
Saludos
Ing. Martin P Cristia
More information about the User
mailing list