[General PAC Discussion] bud77:
Hello there

I recently discovered the SaberMod toolchain (4.8), and decided to try to compile PAC with it

I added the toolchains in my manifest, and modified the "TARGET_linux-arm.mk"

Repo sync went fine, but when trying to build, I get these errors :

system/core/adb/framebuffer_service.c: In function 'framebuffer_service':

system/core/adb/framebuffer_service.c:175:60: warning: 'pid' may be used uninitialized in this function [-Wmaybe-uninitialized]

TEMP_FAILURE_RETRY(waitpid(pid, NULL, 0));

^

target thumb C: adbd <= system/core/adb/log_service.c

Import includes file: /home/bud/pacman/out/target/product/bacon/obj/EXECUTABLES/healthd_intermediates/import_includes

Import includes file: /home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libbatteryservice_intermediates/import_includes

Import includes file: /home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libbinder_intermediates/import_includes

Import includes file: /home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libutils_intermediates/import_includes

target thumb C++: libhealthd.default <= system/core/healthd/healthd_board_default.cpp

host C: checkseapp <= external/sepolicy/tools/check_seapp.c

system/core/healthd/healthd_board_default.cpp:19:6: warning: unused parameter 'config' [-Wunused-parameter]

void healthd_board_init(struct healthd_config *config)

^

system/core/healthd/healthd_board_default.cpp:25:5: warning: unused parameter 'props' [-Wunused-parameter]

int healthd_board_battery_update(struct android::BatteryProperties *props)

^

Import includes file: /home/bud/pacman/out/host/linux-x86/obj/EXECUTABLES/minigzip_intermediates/import_includes

host C: libz <= external/zlib/src/adler32.c

host C: libz <= external/zlib/src/compress.c

host C: libz <= external/zlib/src/crc32.c

host C: libz <= external/zlib/src/deflate.c

host C: libz <= external/zlib/src/gzclose.c

host C: libz <= external/zlib/src/gzlib.c

host C: libz <= external/zlib/src/gzread.c

host C: libz <= external/zlib/src/infback.c

host C: libz <= external/zlib/src/gzwrite.c

host C: libz <= external/zlib/src/inflate.c

host C: libz <= external/zlib/src/inftrees.c

host C: libz <= external/zlib/src/inffast.c

host C: libz <= external/zlib/src/trees.c

host C: libz <= external/zlib/src/uncompr.c

host C: libz <= external/zlib/src/zutil.c

host C: dtbToolCM <= device/qcom/common/dtbtool/dtbtool.c

Import includes file: /home/bud/pacman/out/target/product/bacon/obj/RECOVERY_EXECUTABLES/bu_recovery_intermediates/import_includes

target thumb C: libsparse_static <= system/core/libsparse/backed_block.c

target thumb C: libsparse_static <= system/core/libsparse/output_file.c

target thumb C: libsparse_static <= system/core/libsparse/sparse.c

target thumb C: libsparse_static <= system/core/libsparse/sparse_crc32.c

system/core/libsparse/output_file.c: In function 'callback_file_open':

system/core/libsparse/output_file.c:275:51: warning: unused parameter 'out' [-Wunused-parameter]

static int callback_file_open(struct output_file *out, int fd)

^

system/core/libsparse/output_file.c:275:60: warning: unused parameter 'fd' [-Wunused-parameter]

static int callback_file_open(struct output_file *out, int fd)

^

system/core/libsparse/output_file.c: In function 'callback_file_pad':

system/core/libsparse/output_file.c:298:50: warning: unused parameter 'out' [-Wunused-parameter]

static int callback_file_pad(struct output_file *out, int64_t len)

^

system/core/libsparse/output_file.c:298:63: warning: unused parameter 'len' [-Wunused-parameter]

static int callback_file_pad(struct output_file *out, int64_t len)

^

system/core/libsparse/output_file.c: In function 'output_file_open_callback':

system/core/libsparse/output_file.c:642:57: warning: unused parameter 'gz' [-Wunused-parameter]

void *priv, unsigned int block_size, int64_t len, int gz, int sparse,

^

system/core/libsparse/sparse.c: In function 'out_counter_write':

system/core/libsparse/sparse.c:192:54: warning: unused parameter 'data' [-Wunused-parameter]

static int out_counter_write(void *priv, const void *data, int len)

^

target thumb C: libsparse_static <= system/core/libsparse/sparse_err.c

target thumb C: libsparse_static <= system/core/libsparse/sparse_read.c

target thumb C++: libvoldclient <= bootable/recovery-cm/voldclient/commands.cpp

system/core/libsparse/sparse_read.c: In function 'process_raw_chunk':

system/core/libsparse/sparse_read.c:122:4: warning: implicit declaration of function 'read_all' [-Wimplicit-function-declaration]

ret = read_all(fd, copybuf, chunk);

^

system/core/libsparse/sparse_read.c: In function 'process_skip_chunk':

system/core/libsparse/sparse_read.c:178:7: warning: unused parameter 'fd' [-Wunused-parameter]

int fd, unsigned int blocks, unsigned int block, uint32_t *crc32)

^

system/core/libsparse/sparse_read.c:178:45: warning: unused parameter 'block' [-Wunused-parameter]

int fd, unsigned int blocks, unsigned int block, uint32_t *crc32)

^

target thumb C++: libvoldclient <= bootable/recovery-cm/voldclient/dispatcher.cpp

target thumb C++: libvoldclient <= bootable/recovery-cm/voldclient/event_loop.cpp

target thumb C: libmtdutils <= bootable/recovery-cm/mtdutils/mtdutils.c

target thumb C: libmtdutils <= bootable/recovery-cm/mtdutils/mounts.c

target thumb C: libminadbd <= bootable/recovery-cm/minadbd/adb.c

target thumb C: libminadbd <= bootable/recovery-cm/minadbd/fdevent.c

target thumb C: libminadbd <= bootable/recovery-cm/minadbd/transport.c

target thumb C: libminadbd <= bootable/recovery-cm/minadbd/transport_usb.c

target thumb C: libminadbd <= bootable/recovery-cm/minadbd/sockets.c

target thumb C: libminadbd <= bootable/recovery-cm/minadbd/services.c

bootable/recovery-cm/voldclient/event_loop.cpp:191:14: error: unused parameter 'v' [-Werror=unused-parameter]

static void *event_thread_func(void* v) {

^

cc1plus: all warnings being treated as errors

make: *** [/home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libvoldclient_intermediates/event_loop.o] Error 1

make: *** Waiting for unfinished jobs....

bootable/recovery-cm/voldclient/dispatcher.cpp:202:5: error: unused parameter 'len' [-Werror=unused-parameter]

int vold_dispatch(int code, char** tokens, int len) {

^

cc1plus: all warnings being treated as errors

make: *** [/home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libvoldclient_intermediates/dispatcher.o] Error 1

make: *** wait: No child processes. Stop

Those looks like warning, but they are being trated as errors

If someone could help me on this :crying: