AsahiLinux / m1n1

A bootloader and experimentation playground for Apple Silicon
MIT License
3.61k stars 209 forks source link

warning when building #261

Closed dkwo closed 1 year ago

dkwo commented 2 years ago

When using

unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
make RELEASE=1 ARCH=${CROSS_BUILD:+${XBPS_CROSS_TRIPLET}-} build/m1n1.bin

I noticed

CC    build/kboot.o
src/kboot.c: In function 'dt_append_atc_tunable':
src/kboot.c:812:51: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'const long unsigned int'} [-Wsign-compare]
  812 |         if (tunable->offset + (tunable->size / 8) > tunable_info->reg_size) {
      |                                                   ^
/bin/sh: line 1: git: command not found

as well as

CC    build/tinf/tinflate.o
src/tinf/tinflate.c: In function 'tinf_uncompress':
src/tinf/tinflate.c:559:5: warning: stack usage is 1712 bytes [-Wstack-usage=]
  559 | int tinf_uncompress(void *dest, unsigned int *destLen,
      |     ^~~~~~~~~~~~~~~

The full log https://paste.c-net.org/LaurenceNuthouse The template used to build https://github.com/void-linux/void-packages/pull/39796/commits/079293f3f8f01d308cd77a889d083b0cfca56a7a#diff-7317415753e90f594723d1d7e5dd70eb72d51f299d932ebef79986d96c12b5c2

cyrinux commented 1 year ago

Hi, I feel like it's not the good tracker, but, looks like git is missing in the hostmakedepends list of the template file.