Skip to content

Compile issues when building under iSH on an iPad #42

Description

@hughbarney

cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g -c command.c
cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g -c display.c
cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g -c complete.c
cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g -c data.c
cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g -c gap.c
cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g -c key.c
cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g -c search.c
cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g -c buffer.c
cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g -c replace.c
cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g -c window.c
cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g -c undo.c
cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g -c funcmap.c
cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g -c utils.c
cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g -c hilite.c
cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g -D FLISP_FEMTO_EXTENSION -c lisp.c -o femto_lisp.o
lisp.c: In function 'gc':
lisp.c:273:53: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
273 | fl_debug(interp, "collecting garbage, memory: %lu/%lu", interp->memory->fromOffset, interp->memory->capacity);
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| long unsigned int size_t {aka unsigned int}
| %u
lisp.c:273:57: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
273 | fl_debug(interp, "collecting garbage, memory: %lu/%lu", interp->memory->fromOffset, interp->memory->capacity);
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| long unsigned int size_t {aka unsigned int}
| %u
lisp.c:335:35: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
335 | fl_debug(interp, "collected %lu objects, skipped %lu, constants %lu, saved %lu bytes, memory: %lu/%lu",
| ~~^
| |
| long unsigned int
| %u
336 | stats.moved, stats.skipped, stats.constant,
| ~~~~~~~~~~~
| |
| size_t {aka unsigned int}
lisp.c:335:56: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=]

lisp.c:335:56: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
335 | fl_debug(interp, "collected %lu objects, skipped %lu, constants %lu, saved %lu bytes, memory: %lu/%lu",
| ~~^
| |
| long unsigned int
| %u
336 | stats.moved, stats.skipped, stats.constant,
| ~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}
lisp.c:335:71: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
335 | fl_debug(interp, "collected %lu objects, skipped %lu, constants %lu, saved %lu bytes, memory: %lu/%lu",
| ~~^
| |
| long unsigned int
| %u
336 | stats.moved, stats.skipped, stats.constant,
| ~~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}
lisp.c:335:82: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
335 | fl_debug(interp, "collected %lu objects, skipped %lu, constants %lu, saved %lu bytes, memory: %lu/%lu",
| ~~^
| |
| long unsigned int
| %u
336 | stats.moved, stats.skipped, stats.constant,
337 | interp->memory->fromOffset - interp->memory->toOffset,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}
lisp.c:335:101: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
335 | fl_debug(interp, "collected %lu objects, skipped %lu, constants %lu, saved %lu bytes, memory: %lu/%lu",
| ~~^
| |
| long unsigned int
| %u
......
338 | interp->memory->toOffset, interp->memory->capacity
| ~~~~~~~~~~~~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}

lisp.c:335:56: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
335 | fl_debug(interp, "collected %lu objects, skipped %lu, constants %lu, saved %lu bytes, memory: %lu/%lu",
| ~~^
| |
| long unsigned int
| %u
336 | stats.moved, stats.skipped, stats.constant,
| ~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}
lisp.c:335:71: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
335 | fl_debug(interp, "collected %lu objects, skipped %lu, constants %lu, saved %lu bytes, memory: %lu/%lu",
| ~~^
| |
| long unsigned int
| %u
336 | stats.moved, stats.skipped, stats.constant,
| ~~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}
lisp.c:335:82: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
335 | fl_debug(interp, "collected %lu objects, skipped %lu, constants %lu, saved %lu bytes, memory: %lu/%lu",
| ~~^
| |
| long unsigned int
| %u
336 | stats.moved, stats.skipped, stats.constant,
337 | interp->memory->fromOffset - interp->memory->toOffset,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}
lisp.c:335:101: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
335 | fl_debug(interp, "collected %lu objects, skipped %lu, constants %lu, saved %lu bytes, memory: %lu/%lu",
| ~~^
| |
| long unsigned int
| %u
......
338 | interp->memory->toOffset, interp->memory->capacity
| ~~~~~~~~~~~~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}

338 | interp->memory->toOffset, interp->memory->capacity
| ~~~~~~~~~~~~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}
lisp.c:335:105: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
335 | fl_debug(interp, "collected %lu objects, skipped %lu, constants %lu, saved %lu bytes, memory: %lu/%lu",
| ~~^
| |
| long unsigned int
| %u
......
338 | interp->memory->toOffset, interp->memory->capacity
| ~~~~~~~~~~~~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}
lisp.c: In function 'newStreamObject':
lisp.c:605:38: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
605 | exception(interp, FLISP_OOM, "failed to allocate %lu bytes for stream path", len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~
| |
| size_t {aka unsigned int}
lisp.c:156:87: note: in definition of macro 'exception'
156 | #define exception(interp, result, ...) exceptionWithObject(interp, nil, result, VA_ARGS)
| ^~~~~~~~~~~
lisp.c:605:60: note: format string is defined here
605 | exception(interp, FLISP_OOM, "failed to allocate %lu bytes for stream path", len);
| ~~^
| |
| long unsigned int
| %u
lisp.c: In function 'addCharToBuf':
lisp.c:793:42: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
793 | exception(interp, FLISP_OOM, "failed to allocate %ld bytes for readString buffer", interp->capacity);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}
lisp.c:156:87: note: in definition of macro 'exception'
156 | #define exception(interp, result, ...) exceptionWithObject(interp, nil, result, VA_ARGS)
| ^~~~~~~~~~~
lisp.c:793:64: note: format string is defined here
793 | exception(interp, FLISP_OOM, "failed to allocate %ld bytes for readString buffer", interp->capacity);
| ~~^
| |
| long int
| %d
cc -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -std=c11 -Wall -pedantic -pedantic-errors -g \

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions