Failed Build/Compile On Cygwin

Open
#575 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
c
Domain
build-system

Research direction

The build fails while compiling quickjs.c in js_def_malloc_usable_size, with the compiler reporting an undeclared malloc_usable_size; the payload also points to Makefile:372. Start by reading that function and the platform-specific build settings for Cygwin. Determine how the allocator size call should be handled on Cygwin, then confirm the build gets past this compilation error.

Written by the indexing model from the issue text.

Description

I Cant Compile With Make On Cygwin ::::::::::::::::::::::::

mkdir -p .obj .obj/intl .obj/temporal .obj/examples .obj/tests
gcc -g -Wall -MMD -MF .obj/quickjs.check.o.d -Wno-array-bounds -Wno-format-truncation -Wno-infinite-recursion -fwrapv  -D_GNU_SOURCE -DCONFIG_VERSION=\"2026-06-04\" -DCONFIG_TEMPORAL_INTL -DCONFIG_CHECK_JSVALUE -c -o .obj/quickjs.check.o quickjs.c
quickjs.c: In function ‘js_def_malloc_usable_size’:
quickjs.c:2176:12: error: implicit declaration of function ‘malloc_usable_size’; did you mean ‘js_malloc_usable_size’? [-Wimplicit-function-declaration]
 2176 |     return malloc_usable_size((void *)ptr);
      |            ^~~~~~~~~~~~~~~~~~
      |            js_malloc_usable_size
make: *** [Makefile:372: .obj/quickjs.check.o] Error 1

Please Fix It ...

Dominant language
C
Stars
11.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

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 bellard/quickjs

All issues in bellard/quickjs

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.