termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.34k stars 3.07k forks source link

[Bug]: build binutils-libs fail #22355

Closed YitianDevelop closed 16 hours ago

YitianDevelop commented 23 hours ago

Problem description

I've tried both docker and my Archlinux host, and both the library builds fail. here is some part of outputs,but it should not be the reason why this occur.

/home/yan/.termux-build/binutils-libs/src/libiberty/sha1.c:62:23: warning: declaration of 'struct sha1_ctx' will not be visible outside of this function [-Wvisibility]
   62 | sha1_init_ctx (struct sha1_ctx *ctx)
      |                       ^
/home/yan/.termux-build/binutils-libs/src/libiberty/sha1.c:64:6: error: incomplete definition of type 'struct sha1_ctx'
   64 |   ctx->A = 0x67452301;
      |   ~~~^
/home/yan/.termux-build/binutils-libs/src/libiberty/sha1.c:62:23: note: forward declaration of 'struct sha1_ctx'
   62 | sha1_init_ctx (struct sha1_ctx *ctx)
      |                       ^
/home/yan/.termux-build/binutils-libs/src/libiberty/sha1.c:65:6: error: incomplete definition of type 'struct sha1_ctx'

...


config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing default-2 commands
config.status: executing default commands
make[1]: Leaving directory '/home/yan/.termux-build/binutils-libs/build'
make: *** [Makefile:1028: all] Error 2

What steps will reproduce the bug?

./build-package.sh libllvm -a aarch64 or ./build-package.sh binutils-libs -a aarch64

What is the expected behavior?

it should build successfully.

System information

I build it on docker(I also try to build it on my ArchLinux)
YitianDevelop commented 23 hours ago

I have tried the ./clean.sh

licy183 commented 16 hours ago

I can't reproduce it locally with ./build-package.sh binutils-libs -a aarch64.

YitianDevelop commented 15 hours ago

I can't reproduce it locally with ./build-package.sh binutils-libs -a aarch64.

Thank you very much for your reply, this is very important to me and I will rebuild the environment. Have a great day.