ArduPilot / ArduPilot/MAVProxy

Difficulty building on alpine linux

Open
#475 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
595
Forks
773
Avg merge
2d 6h
Merged PRs (30d)
18

Description

Hi,

I have just tried to build mavproxy on alpine, eg:

```
apk update && apk add python-pip python-dev gcc libxml2 libxml2-dev py-lxml libxslt libxslt-dev musl-dev
pip install MAVproxy
```

But I run into errors about conflicting functions
```
mavnative/mavnative.c:322:13: error: conflicting types for '__assert_fail'
extern void __assert_fail(const char *__assertion, const char *__file, unsigned int __line, const char *__function)
^~~~~~~~~~~~~
In file included from mavnative/mavnative.c:14:0:
/usr/include/assert.h:19:16: note: previous declaration of '__assert_fail' was here
_Noreturn void __assert_fail (const char *, const char *, int, const char *);
^~~~~~~~~~~~~
error: command 'gcc' failed with exit status 1
```
Any ideas what I should do to build this?

Many thanks,
Ed

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with mavnative/mavnative.c and compare its __assert_fail declaration with Alpine's /usr/include/assert.h. Reproduce the pip install MAVproxy build using the listed apk dependencies. Done means MAVProxy builds successfully on Alpine without the conflicting declaration.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux, python
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.