Beremiz Error
I compiles beremoz and matiets for Debian 8 x64. It's compiles correctly. Beremiz start properly on Debian 8 x 64, when I run the project compilation, I see a message "Generating SoftPLC IEC-61131 ST/ILS/SFC code..." in the console of beremiz and in terminal:
Traceback (most recent call last): File "./beremizStm32/Beremiz.py", line 1238, in run_with_except_hook run_old(args, *kw) File "/home/user/Desktop/Projects/Beremiz/Beremiz_linux/beremizStm32/util/ProcessLogger.py", line 69, in run self.endcallback(self.Proc.pid, err) File "/home/user/Desktop/Projects/Beremiz/Beremiz_linux/beremizStm32/util/ProcessLogger.py", line 178, in finish self.errt.join() File "/usr/lib/python2.7/threading.py", line 938, in join raise RuntimeError("cannot join thread before it is started") RuntimeError: cannot join thread before it is started
I compile the matiec under Debian x64 following the instruction in file "readme.bild". I also cross-compile for windows and beremiz work and compile project correctly on Windows x64, I do not know what the problem is.
Comments (9)
-
-
I applied the patch. Now i have another error. I check XSD file and my compiler. Compiler work correctly, XSD correctly too. All files mentioned in error are in correct directories.
[CC] plc_main.c -> plc_main.o C Build crashed ! Traceback (most recent call last): File "/home/user/Desktop/Projects/Beremiz/beremizStm32/ProjectController.py", line 1008, in _Build if not builder.build() : File "/home/user/Desktop/Projects/Beremiz/beremizStm32/targets/toolchain_gcc.py", line 151, in build (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS) File "/home/user/Desktop/Projects/Beremiz/beremizStm32/util/ProcessLogger.py", line 135, in __init__ self.Proc = subprocess.Popen( self.Command, **popenargs ) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
-
This looks like a different issue. Possibly you have problem in your toolchain_gcc.py or in your PATH setting. Could you post toolchain_gcc.py, PATH, XSD and where all your files are placed?
-
Path to the Beremiz:
/home/user/Desktop/beremiz/beremiz/beremizStm32
Path to the compiler:
/home/user/Desktop/beremiz/beremiz/gcc-arm-unknown-linux-gnueabi_4.9.1_linux
XSD file:
#! <xsd:element name="PL244a"> <xsd:complexType> <xsd:attribute name="Compiler" type="xsd:string" use="optional" default="../gcc-arm-unknown-linux-gnueabi_4.9.1_linux/bin/arm-unknown-linux-gnueabi-gcc"/> <xsd:attribute name="CFLAGS" type="xsd:string" use="optional" default="-pipe -Os -mtune=cortex-a9 -march=armv7-a -mabi=aapcs-linux -msoft-float"/> <xsd:attribute name="Linker" type="xsd:string" use="optional" default="../gcc-arm-unknown-linux-gnueabi_4.9.1_linux/bin/arm-unknown-linux-gnueabi-g++"/> <xsd:attribute name="LDFLAGS" type="xsd:string" use="optional" default=""/> </xsd:complexType> </xsd:element>
Also y try run beremiz by script
#!/bin/bash PATH=/home/user/Desktop/Beremiz/gcc-arm-unknown-linux-gnueabi_4.9.1_linux/bin:$PATH ./Beremiz.py
XSD file for script:
#! <xsd:element name="PL244a"> <xsd:complexType> <xsd:attribute name="Compiler" type="xsd:string" use="optional" default="arm-unknown-linux-gnueabi-gcc"/> <xsd:attribute name="CFLAGS" type="xsd:string" use="optional" default="-pipe -Os -mtune=cortex-a9 -march=armv7-a -mabi=aapcs-linux -msoft-float"/> <xsd:attribute name="Linker" type="xsd:string" use="optional" default="arm-unknown-linux-gnueabi-g++"/> <xsd:attribute name="LDFLAGS" type="xsd:string" use="optional" default=""/> </xsd:complexType> </xsd:element>
All files: https://www.dropbox.com/s/yf743lk0bwaqhaa/Beremiz.zip?dl=0
-
Hi, Andrey. Have you solved your issue?
-
Thanks for asking. I havn't soled it yet. I tryed to create shell script for linux that must build beremiz for windows and for linux, so I got this issue.
-
Hi, Andrey. I'm out of office the until 30. September. If you don't fix your issue until that time, post again here and I try to help you to solve the problem.
-
Hi Andrey. I'm back and if you still have problems running Beremiz. Let's discuss these on beremiz-devel mailing list. You can subscribe to the list here.
-
- changed status to invalid
I close the issue, because it's not a Beremiz bug. If you have any further questions about using/integrating Beremiz. You are welcome to beremiz-devel mailing list.
- Log in to comment
Have you tested the patch from the ML? https://sourceforge.net/p/beremiz/mailman/message/35190162/