Hi yu shan,

It was when I was working on it a couple days ago. 

On Jan 6, 2025, 10:44 AM, at 10:44 AM, yu shan wei <mp...@vip.163.com> wrote:
>r4065, This is not the latest version
>
> 
>
>yu shan wei
>
> 
>
> 
>
>Sender:<kaz...@projectkitsune.com>
>
>Time:Monday, January 6, 2025, 23:05
>
>Recipient:<elftoolchain-developers@lists.sourceforge.net>
>
>Subject:[Elftoolchain-developers] Build failure (FreeBSD x64 version
>12.4)
>
> 
>
>Greetings,
>
>Using clang13 on FreeBSD 12.4 RELEASE, we failed at building libdwarf:
>
>cc  -O2 -pipe   -g -MD  -MF.depend.libdwarf_lineno.o
>-MTlibdwarf_lineno.o -std=gnu99 -Wno-format-zero-length
>-fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k
>-W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
>-Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
>-Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline
>-Wnested-externs -Wredundant-decls -Wold-style-definition
>-Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety
>-Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable
>-Wno-error=unused-but-set-variable  -Qunused-arguments    -I.
>-I/usr/home/kazuo/devel/elftoolchain-code-r4065-trunk/libdwarf
>-I/usr/home/kazuo/devel/elftoolchain-code-r4065-trunk/libdwarf/../common
>-I/usr/home/kazuo/devel/elftoolchain-code-r4065-trunk/libdwarf/../libelf
>-c libdwarf_lineno.c -o libdwarf_lineno.o
>libdwarf_lineno.c:648:16: error: comparison of integers of different
>signs: 'int' and 'Dwarf_Unsigned' (aka 'unsigned long')
>[-Werror,-Wsign-compare]
>        for (i = 0; i < li->li_inclen; i++) {
>                    ~ ^ ~~~~~~~~~~~~~
>libdwarf_lineno.c:690:16: error: comparison of integers of different
>signs: 'int' and 'Dwarf_Unsigned' (aka 'unsigned long')
>[-Werror,-Wsign-compare]
>        for (i = 0; i < li->li_lflen; i++) {
>                    ~ ^ ~~~~~~~~~~~~
>libdwarf_lineno.c:480:12: error: variable 'ret' is uninitialized when
>used here [-Werror,-Wuninitialized]
>                                return ret;
>                                       ^~~
>libdwarf_lineno.c:446:32: note: initialize the variable 'ret' to
>silence this warning
>        int dwarf_size, fmt, i, j, ret;
>                                      ^
>I can try to get around it by disabling Werror but that looks like a
>big yikes.
>
>
>_______________________________________________
>Elftoolchain-developers mailing list
>Elftoolchain-developers@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/elftoolchain-developers
>
>
>
>------------------------------------------------------------------------
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Elftoolchain-developers mailing list
>Elftoolchain-developers@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/elftoolchain-developers



_______________________________________________
Elftoolchain-developers mailing list
Elftoolchain-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/elftoolchain-developers

Reply via email to