rtapi/uspace_rtai.cc:6:10: fatal error: when compiling from git
- twoflowers
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 120
- Thank you received: 32
18 Feb 2021 10:27 #199234
by twoflowers
I just updated my desktop from beowulf to chimaera (testing). Now I'm trying to compile LinuxCNC 2.8.1 from git on my updates system, but I get this error:
Does anybody know which package I missed?
Compiling rtapi/uspace_rtai.cc
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
rtapi/uspace_rtai.cc:6:10: fatal error: rtai_lxrt.h: Datei oder Verzeichnis nicht gefunden
6 | #include <rtai_lxrt.h>
| ^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:222: objects/rtapi/uspace_rtai.o] Fehler 1
Does anybody know which package I missed?
Please Log in or Create an account to join the conversation.
26 Feb 2021 00:22 #200147
by andypugh
Replied by andypugh on topic rtapi/uspace_rtai.cc:6:10: fatal error: when compiling from git
Do you actually have RTAI installed on the machine?
(This isn't a package, it's a kernel and set of modules)
What does uname-a say?
Do you have a /usr/realtime..... folder?
It is possible that you just didnt't specify the correct realtime at the ./configure stage.
(This isn't a package, it's a kernel and set of modules)
What does uname-a say?
Do you have a /usr/realtime..... folder?
It is possible that you just didnt't specify the correct realtime at the ./configure stage.
Please Log in or Create an account to join the conversation.
- twoflowers
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 120
- Thank you received: 32
05 Mar 2021 16:35 #201103
by twoflowers
Replied by twoflowers on topic rtapi/uspace_rtai.cc:6:10: fatal error: when compiling from git
Kernel is:I tried to buld with these settings, but "make" failes:RTAI sources are not installed.
Linux t61 5.10.0-3-rt-amd64 #1 SMP PREEMPT_RT Debian 5.10.13-1 (2021-02-06) x86_64 GNU/Linux
./configure --with-python=python3 --enable-non-distributable=yes --with-realtime=uspace --prefix=/opt/linuxcnc
Please Log in or Create an account to join the conversation.
05 Mar 2021 17:00 #201107
by andypugh
Replied by andypugh on topic rtapi/uspace_rtai.cc:6:10: fatal error: when compiling from git
If you are not running an RTAI kernel and you have configured for uspace then it really ought o not be looking at rtai.
Can you paste the output of the ./configure stage?
Also, a "make clean" might be worth trying.
Can you paste the output of the ./configure stage?
Also, a "make clean" might be worth trying.
Please Log in or Create an account to join the conversation.
- twoflowers
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 120
- Thank you received: 32
05 Mar 2021 22:08 - 05 Mar 2021 22:09 #201137
by twoflowers
Replied by twoflowers on topic rtapi/uspace_rtai.cc:6:10: fatal error: when compiling from git
After "make clean".
Configuring for uspace (at least I hope this line configures for uspace):
And then make:
Configuring for uspace (at least I hope this line configures for uspace):
$ ./configure --with-python=python3 --enable-non-distributable=yes --with-realtime=uspace --prefix=/opt/linuxcnc
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking boost/lockfree/queue.hpp usability... yes
checking boost/lockfree/queue.hpp presence... yes
checking for boost/lockfree/queue.hpp... yes
checking whether g++ supports C++11 features by default... yes
checking build toplevel... /home/entwicklung/linuxcnc/linuxcnc-dev
checking installation prefix... /opt/linuxcnc
checking for grep... (cached) /bin/grep
checking for egrep... (cached) /bin/grep -E
checking for pkg-config... /usr/bin/pkg-config
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking rpc/rpc.h usability... yes
checking rpc/rpc.h presence... yes
checking for rpc/rpc.h... yes
checking for rtai-config... /usr/realtime/bin/rtai-config
checking for xeno-config... none
checking for realtime API(s) to use... uspace+lxrt
checking whether to enable userspace PCI access... yes
checking for libudev... yes - version 243
checking for cc version... not specified
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for usability of linux/hidraw.h... yes
checking for usability of rpc/rpc.h... yes
checking for libmodbus3... yes - version 3.1.6
checking for libusb-1.0... yes
checking for module installation directory... /opt/linuxcnc/lib/linuxcnc/modules
checking for glib... yes - 2.66.7
checking for GTK 2.4.0 or above... yes - 2.24.33
checking for libgnomeprintui-2.2... no -- printing from classicladder will not be possible
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for install... /usr/bin/install
checking for sed... /bin/sed
checking for ps... /bin/ps
checking for kill... /bin/kill
checking for whoami... /usr/bin/whoami
checking for awk... /usr/bin/awk
checking for pidof... /bin/pidof
checking for ipcs... /usr/bin/ipcs
checking for fuser... /bin/fuser
checking for yapps... no
checking for yapps2... /usr/bin/yapps2
checking for mandb... /usr/bin/mandb
checking for intltool-extract... /usr/bin/intltool-extract
checking for yapps... (cached) /usr/bin/yapps2
checking for python3... /usr/bin/python3
checking whether to build documentation... no
checking sys/io.h usability... yes
checking sys/io.h presence... yes
checking for sys/io.h... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for semtimedop... yes
checking for optreset... no
checking for library containing dlopen... -ldl
checking for library containing clock_nanosleep... none required
checking for tcl... /usr/lib/tcl8.6/tclConfig.sh found
checking for tk... /usr/lib/tk8.6/tkConfig.sh found
checking whether to check for runtime dependencies... yes
checking for BWidget using /usr/bin/tclsh8.6... found
checking for BLT using tclsh8.5... not found
checking for img::png using /usr/bin/tclsh8.6... found
checking for tclX using /usr/bin/tclsh8.6... found
checking for python pango and cairo modules... found
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking X11/extensions/Xinerama.h usability... yes
checking X11/extensions/Xinerama.h presence... yes
checking for X11/extensions/Xinerama.h... yes
checking for XineramaQueryExtension in -lXinerama... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
Trying readline without -ltermcap
checking for readline in -lreadline... yes
Trying readline with -ltermcap
checking for readline in -lreadline... yes
Readline does not require -ltermcap
checking whether readline license is compatible with GPL-2... no
configure: WARNING: The LinuxCNC binary you are building may not be
distributable due to a license incompatibility with LinuxCNC (some portions
GPL-2 only) and Readline version 6 and greater (GPL-3 or later).
configure: WARNING: User requested to enable non-distributable builds. Continuing.
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for setlocale... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for gettext in -lintl... no
checking for xgettext... /usr/bin/xgettext
checking for msgfmt... /usr/bin/msgfmt
checking python version... OK
checking version of python libraries... python3.9
checking match between tk and Tkinter versions... 8.6
checking location of Python header files... /usr/include/python3.9
checking for Python headers... -I/usr/include/python3.9
checking for Python libraries... -lcrypt -lpthread -ldl -lutil -lm
checking whether the Boost::Python headers are available... yes
checking for boost::python shared library... -lboost_python39
checking /usr/include/python3.9/Python.h usability... yes
checking /usr/include/python3.9/Python.h presence... yes
checking for /usr/include/python3.9/Python.h... yes
checking for site-package location... /usr/lib/python3/dist-packages
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for glBegin in -lGL... yes
checking for working GLU quadrics... yes
checking for Xmu headers... checking X11/Xmu/Xmu.h usability... yes
checking X11/Xmu/Xmu.h presence... yes
checking for X11/Xmu/Xmu.h... yes
configure: creating ./config.status
config.status: creating ../scripts/rtapi.conf
config.status: creating ../scripts/linuxcnc
config.status: creating ../scripts/linuxcnc-python
config.status: creating ../scripts/linuxcnc_info
config.status: creating ../scripts/halrun
config.status: creating ../scripts/rip-environment
config.status: creating ../scripts/haltcl
config.status: creating ../scripts/halcmd_twopass
config.status: creating ../scripts/realtime
config.status: creating ../scripts/runtests
config.status: creating ../scripts/linuxcnc_var
config.status: creating ../scripts/linuxcnc-checklink
config.status: creating Makefile.inc
config.status: creating Makefile.modinc
config.status: creating ../tcl/linuxcnc.tcl
config.status: creating ../lib/python/nf.py
config.status: creating ../scripts/linuxcncmkdesktop
config.status: creating ../share/applications/linuxcnc-latency.desktop
config.status: creating ../share/applications/linuxcnc.desktop
config.status: creating ../share/desktop-directories/linuxcnc-cnc.directory
config.status: creating ../share/desktop-directories/linuxcnc-ref.directory
config.status: creating ../share/desktop-directories/linuxcnc-doc.directory
config.status: creating ../share/menus/CNC.menu
config.status: creating config.h
config.status: config.h is unchanged
######################################################################
# LinuxCNC - Enhanced Machine Controller #
######################################################################
# #
# LinuxCNC is a software system for computer control of machine #
# tools such as milling machines. LinuxCNC is released under the #
# GPL. Check out http://www.linuxcnc.org/ for more details. #
# #
# #
# It seems that ./configure completed successfully. #
# This means that RT is properly installed #
# If things don't work check config.log for errors & warnings #
# #
# warning: If you already have an installed linuxcnc, this will #
# replace an existing installation. If you have installed #
# a linuxcnc package, this will damage the package. #
# hint: To test a self-built version of linuxcnc without damaging #
# the package version, don't specify a --prefix #
# #
# Next compile by typing #
# make #
# then install it by typing #
# sudo make install #
# #
# To run the software type #
# linuxcnc #
# #
######################################################################
And then make:
$ make
Reading 0/202 dependency files
Done reading dependencies
Reading 0/105 realtime dependency files
Done reading realtime dependencies
Creating mesa_7i65.mak
Creating serport.mak
Creating xor2.mak
Creating xhc_hb04_util.mak
Creating wcomp.mak
Creating userkins.mak
Creating updown.mak
Creating tristate_float.mak
Creating tristate_bit.mak
Creating toggle2nist.mak
Creating toggle.mak
Creating timedelta.mak
Creating timedelay.mak
Creating time.mak
Creating threadtest.mak
Creating thcud.mak
Creating thc.mak
Creating sum2.mak
Creating steptest.mak
Creating spindle_monitor.mak
Creating spindle.mak
Creating sphereprobe.mak
Creating simple_tp.mak
Creating sim_spindle.mak
Creating sim_parport.mak
Creating sim_matrix_kb.mak
Creating sim_home_switch.mak
Creating sim_axis_hardware.mak
Creating select8.mak
Creating scale.mak
Creating sample_hold.mak
Creating plasmac.mak
Creating orient.mak
Creating or2.mak
Creating oneshot.mak
Creating ohmic.mak
Creating offset.mak
Creating not.mak
Creating near.mak
Creating mux8.mak
Creating mux4.mak
Creating mux2.mak
Creating mux16.mak
Creating multiswitch.mak
Creating multiclick.mak
Creating mult2.mak
Creating moveoff.mak
Creating minmax.mak
Creating message.mak
Creating mesa_pktgyro_test.mak
Creating max31855.mak
Creating match8.mak
Creating maj3.mak
Creating lut5.mak
Creating lowpass.mak
Creating logic.mak
Creating lincurve.mak
Creating limit3.mak
Creating limit2.mak
Creating limit1.mak
Creating latencybins.mak
Creating knob2float.mak
Creating joyhandle.mak
Creating invert.mak
Creating integ.mak
Creating ilowpass.mak
Creating hypot.mak
Creating histobins.mak
Creating gray2bin.mak
Creating gearchange.mak
Creating gantry.mak
Creating flipflop.mak
Creating filter_kalman.mak
Creating feedcomp.mak
Creating estop_latch.mak
Creating eoffset_per_angle.mak
Creating edge.mak
Creating differential.mak
Creating demux.mak
Creating deadzone.mak
Creating ddt.mak
Creating dbounce.mak
Creating corexy_by_hal.mak
converting conv for conv_u32_s32.comp
Creating conv_u32_s32.mak
converting conv for conv_u32_float.comp
Creating conv_u32_float.mak
converting conv for conv_u32_bit.comp
Creating conv_u32_bit.mak
converting conv for conv_s32_u32.comp
Creating conv_s32_u32.mak
converting conv for conv_s32_float.comp
Creating conv_s32_float.mak
converting conv for conv_s32_bit.comp
Creating conv_s32_bit.mak
converting conv for conv_float_u32.comp
Creating conv_float_u32.mak
converting conv for conv_float_s32.comp
Creating conv_float_s32.mak
converting conv for conv_bit_u32.comp
Creating conv_bit_u32.mak
converting conv for conv_bit_s32.comp
Creating conv_bit_s32.mak
converting conv for conv_bit_float.comp
Creating conv_bit_float.mak
Creating constant.mak
Creating comp.mak
Creating clarkeinv.mak
Creating clarke3.mak
Creating clarke2.mak
Creating charge_pump.mak
Creating carousel.mak
Creating blend.mak
Creating bldc.mak
Creating bitwise.mak
Creating bitslice.mak
Creating biquad.mak
Creating bin2gray.mak
Creating axistest.mak
Creating and2.mak
Creating abs_s32.mak
Creating abs.mak
Reading 0/202 dependency files
Done reading dependencies
Reading 0/216 realtime dependency files
Done reading realtime dependencies
Copying test input hal/components/lincurve.comp
Copying test input hal/components/logic.comp
Copying test input hal/components/bitslice.comp
sed hal/drivers/mesa_uart.comp -e "1 s/mesa_uart/mesa_uart_test/" > ../tests/halcompile/serial-out-of-tree/mesa_uart_test.comp
sed ../docs/src/hal/rand.comp -e "1 s/rand/rand_test/" > ../tests/halcompile/userspace/rand_test.comp
cp ../scripts/rtapi.conf ../tests/uspace/spawnv-root/rtapi.conf
Compiling libnml/inifile/inifile.cc
libnml/inifile/inifile.cc: In member function ‘const char* IniFile::Find(const char*, const char*, int, int*)’:
libnml/inifile/inifile.cc:318:23: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying between 0 and 255 bytes from a string of length 256 [-Wstringop-truncation]
318 | strncpy(elinenext,line,newLinePos);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
Creating shared library liblinuxcncini.so.0
ln -sf liblinuxcncini.so.0 ../lib/liblinuxcncini.so
Compiling libnml/inifile/inivar.cc
libnml/inifile/inivar.cc: In function ‘int main(int, char**)’:
libnml/inifile/inivar.cc:76:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 255 equals destination size [-Wstringop-truncation]
76 | strncpy(_section, argv[t + 1], LINELEN);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libnml/inifile/inivar.cc:65:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 255 equals destination size [-Wstringop-truncation]
65 | strncpy(_variable, argv[t + 1], LINELEN);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libnml/inifile/inivar.cc:55:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 255 equals destination size [-Wstringop-truncation]
55 | strncpy(path, argv[t + 1], LINELEN);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Linking inivar
Compiling libnml/posemath/_posemath.c
Compiling libnml/posemath/posemath.cc
Compiling libnml/posemath/gomath.c
Compiling libnml/posemath/sincos.c
Creating shared library libposemath.so.0
ln -sf libposemath.so.0 ../lib/libposemath.so
Compiling libnml/rcs/rcs_print.cc
libnml/rcs/rcs_print.cc: In function ‘int rcs_vprint(const char*, __va_list_tag*, int)’:
libnml/rcs/rcs_print.cc:311:9: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 99 bytes from a string of length 255 [-Wstringop-truncation]
311 | strncpy(last_error_bufs[last_error_buf_filled], temp_string, 99);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling libnml/rcs/rcs_exit.cc
Compiling libnml/os_intf/_sem.c
Compiling libnml/os_intf/_shm.c
Compiling libnml/os_intf/_timer.c
Compiling libnml/os_intf/sem.cc
Compiling libnml/os_intf/shm.cc
Compiling libnml/os_intf/timer.cc
Compiling libnml/buffer/locmem.cc
Compiling libnml/buffer/memsem.cc
Compiling libnml/buffer/phantom.cc
Compiling libnml/buffer/physmem.cc
Compiling libnml/buffer/recvn.c
Compiling libnml/buffer/sendn.c
Compiling libnml/buffer/shmem.cc
libnml/buffer/shmem.cc: In member function ‘int SHMEM::open()’:
libnml/buffer/shmem.cc:322:10: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 32 bytes from a string of length 199 [-Wstringop-truncation]
322 | strncpy(cptr, BufferName, 32);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
libnml/buffer/shmem.cc:334:13: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 32 bytes from a string of length 199 [-Wstringop-truncation]
334 | strncpy((char *) shm->addr, BufferName, 32);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling libnml/buffer/tcpmem.cc
Compiling libnml/cms/cms.cc
Compiling libnml/cms/cms_aup.cc
Compiling libnml/cms/cms_cfg.cc
libnml/cms/cms_cfg.cc: In function ‘int load_nml_config_file(const char*)’:
libnml/cms/cms_cfg.cc:113:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 80 equals destination size [-Wstringop-truncation]
113 | strncpy(info->file_name, file, 80);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘char* get_buffer_line(const char*, const char*)’:
cc1plus: warning: function may return address of local variable [-Wreturn-local-addr]
libnml/cms/cms_cfg.cc:308:10: note: declared here
308 | char linebuf[CMS_CONFIG_LINELEN]; /* Temporary buffer for line from
| ^~~~~~~
Compiling libnml/cms/cms_in.cc
Compiling libnml/cms/cms_dup.cc
Compiling libnml/cms/cms_pm.cc
Compiling libnml/cms/cms_srv.cc
Compiling libnml/cms/cms_up.cc
Compiling libnml/cms/cms_xup.cc
Compiling libnml/cms/cmsdiag.cc
libnml/cms/cmsdiag.cc: In member function ‘virtual void CMS::setup_diag_proc_info()’:
libnml/cms/cmsdiag.cc:63:12: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 16 bytes from a string of length 199 [-Wstringop-truncation]
63 | strncpy(dpi->name, ProcessName, 16); // process name
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling libnml/cms/tcp_opts.cc
Compiling libnml/cms/tcp_srv.cc
libnml/cms/tcp_srv.cc: In member function ‘void CMS_SERVER_REMOTE_TCP_PORT::switch_function(CLIENT_TCP_PORT*, CMS_SERVER*, long int, long int, long int)’:
libnml/cms/tcp_srv.cc:967:10: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation]
967 | strncpy(temp_buffer + 8, namereply->name, 31);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling libnml/nml/cmd_msg.cc
Compiling libnml/nml/nml_mod.cc
libnml/nml/nml_mod.cc: In member function ‘void NML_MODULE::write_status_out()’:
libnml/nml/nml_mod.cc:805:15: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 64 equals destination size [-Wstringop-truncation]
805 | strncpy (statusOutData->source_file, source_file, 64);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling libnml/nml/nml_oi.cc
Compiling libnml/nml/nml_srv.cc
libnml/nml/nml_srv.cc: In member function ‘virtual REMOTE_SET_DIAG_INFO_REPLY* NML_SERVER_LOCAL_PORT::set_diag_info(REMOTE_SET_DIAG_INFO_REQUEST*)’:
libnml/nml/nml_srv.cc:325:12: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 32 bytes from a string of length 255 [-Wstringop-truncation]
325 | strncpy(dpi->host_sysinfo, _req->host_sysinfo, 32);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling libnml/nml/nml.cc
In member function ‘void NML::print_info(const char*, const char*, const char*)’,
inlined from ‘void NML::print_info(const char*, const char*, const char*)’ at libnml/nml/nml.cc:2106:6:
libnml/nml/nml.cc:2135:9: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 10 equals destination size [-Wstringop-truncation]
2135 | strncpy(last_bufname, bufname, 10);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc:2136:9: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 10 equals destination size [-Wstringop-truncation]
2136 | strncpy(last_procname, procname, 10);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc:2137:9: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 40 equals destination size [-Wstringop-truncation]
2137 | strncpy(last_cfg_file, cfg_file, 40);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc: In constructor ‘NML::NML(const char*, const char*, const char*, int, int)’:
libnml/nml/nml.cc:347:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 40 equals destination size [-Wstringop-truncation]
347 | strncpy(bufname, buf, 40);
| ~~~~~~~^~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc:348:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 40 equals destination size [-Wstringop-truncation]
348 | strncpy(procname, proc, 40);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc:349:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 160 equals destination size [-Wstringop-truncation]
349 | strncpy(cfgfilename, file, 160);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc: In constructor ‘NML::NML(const char*, const char*, const char*, int, int)’:
libnml/nml/nml.cc:347:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 40 equals destination size [-Wstringop-truncation]
347 | strncpy(bufname, buf, 40);
| ~~~~~~~^~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc:348:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 40 equals destination size [-Wstringop-truncation]
348 | strncpy(procname, proc, 40);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc:349:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 160 equals destination size [-Wstringop-truncation]
349 | strncpy(cfgfilename, file, 160);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc: In constructor ‘NML::NML(NML_FORMAT_PTR, const char*, const char*, const char*, int, int)’:
libnml/nml/nml.cc:181:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 40 equals destination size [-Wstringop-truncation]
181 | strncpy(bufname, buf, 40);
| ~~~~~~~^~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc:182:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 40 equals destination size [-Wstringop-truncation]
182 | strncpy(procname, proc, 40);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc:186:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 160 equals destination size [-Wstringop-truncation]
186 | strncpy(cfgfilename, file, 160);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc: In constructor ‘NML::NML(NML_FORMAT_PTR, const char*, const char*, const char*, int, int)’:
libnml/nml/nml.cc:181:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 40 equals destination size [-Wstringop-truncation]
181 | strncpy(bufname, buf, 40);
| ~~~~~~~^~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc:182:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 40 equals destination size [-Wstringop-truncation]
182 | strncpy(procname, proc, 40);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc:186:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 160 equals destination size [-Wstringop-truncation]
186 | strncpy(cfgfilename, file, 160);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc: In function ‘void nmlSetHostAlias(const char*, const char*)’:
libnml/nml/nml.cc:2452:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 64 equals destination size [-Wstringop-truncation]
2452 | strncpy(entry.host, hostName, 64);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
libnml/nml/nml.cc:2453:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 64 equals destination size [-Wstringop-truncation]
2453 | strncpy(entry.alias, hostAlias, 64);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling libnml/nml/nmldiag.cc
Compiling libnml/nml/nmlmsg.cc
Compiling libnml/nml/stat_msg.cc
Compiling libnml/linklist/linklist.cc
Compiling hal/hal_lib.c
Compiling rtapi/uspace_ulapi.c
Creating shared library liblinuxcnchal.so.0
ln -sf liblinuxcnchal.so.0 ../lib/liblinuxcnchal.so
Creating shared library libnml.so.0
ln -sf libnml.so.0 ../lib/libnml.so
Compiling rtapi/uspace_rtapi_app.cc
In function ‘int get_fifo_path(char*, size_t)’,
inlined from ‘int main(int, char**)’ at rtapi/uspace_rtapi_app.cc:534:21:
rtapi/uspace_rtapi_app.cc:496:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 108 equals destination size [-Wstringop-truncation]
496 | strncpy(buf, s, bufsize);
| ~~~~~~~^~~~~~~~~~~~~~~~~
Compiling rtapi/uspace_rtapi_parport.cc
Compiling rtapi/uspace_rtapi_string.c
Compiling rtapi/rtapi_pci.cc
Linking rtapi_app
Compiling rtapi/uspace_rtai.cc
rtapi/uspace_rtai.cc:6:10: fatal error: rtai_lxrt.h: Datei oder Verzeichnis nicht gefunden
6 | #include <rtai_lxrt.h>
| ^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:251: objects/rtapi/uspace_rtai.o] Fehler 1
Last edit: 05 Mar 2021 22:09 by twoflowers.
Please Log in or Create an account to join the conversation.
05 Mar 2021 23:09 - 05 Mar 2021 23:10 #201148
by andypugh
It looks like you have had RTAI on this machine before, and it is assuming that you still do.
uspace can work with RTAI and lxrt (rather well, actually, though it is not a commonly-used combination).
I think that if you delete the /usr/realtime directory things will start compiling cleanly on preempt-rt realtime.
Replied by andypugh on topic rtapi/uspace_rtai.cc:6:10: fatal error: when compiling from git
checking for rtai-config... /usr/realtime/bin/rtai-config
checking for xeno-config... none
checking for realtime API(s) to use... uspace+lxrt
It looks like you have had RTAI on this machine before, and it is assuming that you still do.
uspace can work with RTAI and lxrt (rather well, actually, though it is not a commonly-used combination).
I think that if you delete the /usr/realtime directory things will start compiling cleanly on preempt-rt realtime.
Last edit: 05 Mar 2021 23:10 by andypugh.
Please Log in or Create an account to join the conversation.
- twoflowers
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 120
- Thank you received: 32
05 Mar 2021 23:47 #201150
by twoflowers
Replied by twoflowers on topic rtapi/uspace_rtai.cc:6:10: fatal error: when compiling from git
Wow, that worked now i just have to solve the problem of missing python-gtk2 ...
Please Log in or Create an account to join the conversation.
07 Mar 2021 00:57 #201241
by andypugh
Replied by andypugh on topic rtapi/uspace_rtai.cc:6:10: fatal error: when compiling from git
python_gtksourceview2 and glade_gtk2.3 are available from the linuxcnc repository (ie, if you have the linuxcnc repositories configured, then you can get them with apt or synaptic,
Please Log in or Create an account to join the conversation.
- twoflowers
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 120
- Thank you received: 32
07 Mar 2021 11:18 - 07 Mar 2021 11:19 #201278
by twoflowers
Replied by twoflowers on topic rtapi/uspace_rtai.cc:6:10: fatal error: when compiling from git
I havein my /etc/apt/sources.list, but it's missing a bit more:
But adding beowulf/buster repositories does not solve the problem, either:
Any advise (other than stay with beowulf)?
deb http://linuxcnc.org buster base 2.8-rtpreempt
# apt install python-gtksourceview2 glade-gtk2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
glade-gtk2 : Depends: libgladeui-2-6 (>= 3.22.0) but it is not installable
python-gtksourceview2 : Depends: libgtksourceview2.0-0 (>= 2.10.0) but it is not installable
Depends: python-gobject-2 (>= 2.15.2) but it is not installable
Depends: python-gtk2 (>= 2.8.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
But adding beowulf/buster repositories does not solve the problem, either:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libglib2.0-0 : Breaks: libgladeui-2-6 (< 3.22.2) but 3.22.1-3 is to be installed
libglib2.0-0:i386 : Breaks: libgladeui-2-6 (< 3.22.2) but 3.22.1-3 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Any advise (other than stay with beowulf)?
Last edit: 07 Mar 2021 11:19 by twoflowers.
Please Log in or Create an account to join the conversation.
07 Mar 2021 19:17 #201332
by andypugh
Replied by andypugh on topic rtapi/uspace_rtai.cc:6:10: fatal error: when compiling from git
TBH I don't even know what Chimaera and Beowulf are in this context.
If they don't offer required packages then I think you are a bit stuck.
You could try getting the .debs from Debian and installing manually.
But that could get messy fast.
If they don't offer required packages then I think you are a bit stuck.
You could try getting the .debs from Debian and installing manually.
But that could get messy fast.
Please Log in or Create an account to join the conversation.
Time to create page: 0.078 seconds