Build fails on Android using Clang 16 (termux)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
- #580 by @orowith2os — closed without merging
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- c, linux
- Domain
- build-system, operating-systems
Research direction
Start with bubblewrap.c around line 3062 and reproduce the failure with meson compile -C _builddir under Termux using Clang 16. Check how the current directory name is obtained and verify that the project builds successfully on Android without the reported undeclared-function and pointer-conversion errors.
Written by the indexing model from the issue text.
Description
I installed all of the appropriate dependencies for building, save for libselinux. Everything goes well until I get to building bubblewrap. Here is the output:
~/oro/bubblewrap $ meson compile -C _builddir
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /data/data/com.termux/files/usr/bin/ninja -C /data/data/com.termux/files/home/oro/bubblewrap/_builddir
ninja: Entering directory `/data/data/com.termux/files/home/oro/bubblewrap/_builddir'
[7/10] Compiling C object bwrap.p/bubblewrap.c.o
FAILED: bwrap.p/bubblewrap.c.o
cc -Ibwrap.p -I. -I.. -I/data/data/com.termux/files/usr/include -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -O0 -g -D_GNU_SOURCE -Werror=shadow -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -Werror=aggregate-return -Werror=switch-default -Wswitch-enum -Wno-sign-compare -Wno-error=sign-compare -Wno-missing-field-initializers -Wno-error=missing-field-initializers -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -MD -MQ bwrap.p/bubblewrap.c.o -MF bwrap.p/bubblewrap.c.o.d -o bwrap.p/bubblewrap.c.o -c ../bubblewrap.c
../bubblewrap.c:3062:13: error: call to undeclared function 'get_current_dir_name'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
old_cwd = get_current_dir_name ();
^
../bubblewrap.c:3062:11: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
old_cwd = get_current_dir_name ();
^ ~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
[9/10] Linking target tests/test-utils
ninja: build stopped: subcommand failed.
This is using Termux from F-Droid.
- Dominant language
- C
- Stars
- 8.9k
- Forks
- 391
- Avg merge
- 1d 32m
- Merged PRs (30d)
- 7
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from containers/bubblewrap
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
containers/bubblewrap#813 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
containers/bubblewrap#767 · 2 comments ·
Maintainers usually reply within 1 day
-
Related project comparisons in README.md are outdatedMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
containers/bubblewrap#743 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
containers/bubblewrap#298 · 4 comments · 5 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
containers/bubblewrap#811 ·
Maintainers usually reply within 1 day
All issues in containers/bubblewrap
Similar issues
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
Add `pdfcpu` to the pantryPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
tmewett/BrogueCE#929 · 1 comment ·
Maintainers usually reply within 1 day
-
bug game: iwd2 system: GUI
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Maintainers usually reply within 2 days