Open Zavitit opened 1 month ago
hello,
Looks like a well know issue on alpine, it needs to include #include <sys/time.h>. Would you like to make a PR to correct this ? or I can do it later today
I started doing some changes with the
ok np, I will look at it tonight
@khancyr have you had a chance to look at this issue?
Sorry about the status change is was a miss-click 😅
Hello,
I forget... sorry. I will do it soon and add some test so alpine don't break again
@Zavitit could you test that @khancyr 's patches fix the problem, please?
Should be good for SITL. Linux target still have a lot of issues
unfortunately this fails for me but it looks like it might be a compatibility issue with the python version installed on my docker (3.11) what version where you using to test?
the crash i get when running ./waf compter
...
expanding uavcan.equipment.gnss.RTCMStream
expanding uavcan.equipment.gnss.Fix
expanding uavcan.equipment.gnss.ECEFPositionVelocity
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/lib/python3.11/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
^^^^^^^^^^^^^^^^^^^
File "/ardupilot/src/modules/DroneCAN/dronecan_dsdlc/dronecan_dsdlc.py", line 118, in expand_message
output = em.expand(msg_header_template, get_empy_env_broadcast(msg))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/em.py", line 5961, in expand
result = interp.expand(data, locals, name, dispatcher=None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/em.py", line 4681, in expand
self.string(data, locals, dispatcher)
File "/root/.local/lib/python3.11/site-packages/em.py", line 4830, in string
while not self.safe(scanner, True, locals, dispatcher):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/em.py", line 4862, in safe
if dispatcher():
^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/em.py", line 4843, in safe
return self.parse(scanner, locals)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/em.py", line 4870, in parse
token = scanner.one()
^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/em.py", line 3999, in one
token.scan(self)
File "/root/.local/lib/python3.11/site-packages/em.py", line 2648, in scan
self.subscan(scanner, self.type)
File "/root/.local/lib/python3.11/site-packages/em.py", line 2664, in subscan
token = scanner.one()
^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/em.py", line 3999, in one
token.scan(self)
File "/root/.local/lib/python3.11/site-packages/em.py", line 2648, in scan
self.subscan(scanner, self.type)
File "/root/.local/lib/python3.11/site-packages/em.py", line 2664, in subscan
token = scanner.one()
^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/em.py", line 3999, in one
token.scan(self)
File "/root/.local/lib/python3.11/site-packages/em.py", line 2648, in scan
self.subscan(scanner, self.type)
File "/root/.local/lib/python3.11/site-packages/em.py", line 2664, in subscan
token = scanner.one()
^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/em.py", line 3995, in one
raise ParseError("unknown markup sequence: `%s%s`%s" % (self.config.prefix, first, self.factory.addendum(first)))
em.ParseError: unknown markup sequence: `@)`; the `@)` markup has been removed, just use `)` instead
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/ardupilot/src/modules/DroneCAN/dronecan_dsdlc/dronecan_dsdlc.py", line 194, in <module>
x = result.get()
^^^^^^^^^^^^
File "/usr/lib/python3.11/multiprocessing/pool.py", line 774, in get
raise self._value
em.ParseError: unknown markup sequence: `@)`; the `@)` markup has been removed, just use `)` instead
dronecangen returned 1 error code
Waf: Leaving directory `/ardupilot/src/build/sitl'
Build failed
-> task in 'dronecan' failed (exit status 1):
{task 130332061951024: dronecangen ardupilot,com,cuav,dronecan,mppt,tests,uavcan -> }
(run with -v to display more information)
@Zavitit the empy version should be pinned to known-working version. Check the install script to see which one.
Bug report
As was mentioned in #27227 for some reason building SITL on alpine failed with the error in that issue
@peterbarker fixed the issue that was stated there but SITL still won't build properly I've added a comment there (that ill quote here at the end) with the details of the docker I'm using and the error I've encountered I'd really appreciate help with this problem
Version Copter 4.5
Platform [ ] All [ ] AntennaTracker [X ] Copter [ ] Plane [ ] Rover [ ] Submarine
Airframe type cotacopter
Hardware type Cube
Logs adding the comment from the previous issue:
@peterbarker Thank you very much for the help but unfortunately I'm still having this issue
I'm adding my Dockerfile maybe I'm just doing something wrong?
i did some manual experimentation and just rerunning the
./waf copter
command resulted in around 5 targets that won't compile output for the last run: