Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Build fails on Android using Clang 16 (termux)

Open
#579 8 comments 0 reactions 0 assignees View on GitHub

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

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from containers/bubblewrap

All issues in containers/bubblewrap

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.