From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B63DA3951C65; Tue, 6 Oct 2020 08:10:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B63DA3951C65 From: "alexander at mezon dot ru" To: elfutils-devel@sourceware.org Subject: [Bug libelf/26708] New: lcc compiler can't build elfutils because of nested functions Date: Tue, 06 Oct 2020 08:10:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libelf X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alexander at mezon dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2020 08:10:54 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26708 Bug ID: 26708 Summary: lcc compiler can't build elfutils because of nested functions Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: libelf Assignee: unassigned at sourceware dot org Reporter: alexander at mezon dot ru CC: elfutils-devel at sourceware dot org Target Milestone: --- i'm trying to compile elfutils-0.181 for MCST Elbrus8c platform and got such issue gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR=3D'"/usr/share/locale"' -I. -= I..=20 -I. -I. -I../lib -I.. -I. -I./../libelf -I./../libebl -I./../libdw -I./../libdwelf -I./../debuginfod -std=3Dgnu99 -Wall -Wshadow -Wformat=3D2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wimplicit-fallthrough=3D5 -Werror -Wunused -Wextra -Wstack-usage=3D262144 -D_FORTIFY_SOURCE=3D2 -Wno-error -O2 -g -march=3De= lbrus-v4 -Os -fstack-protector-strong -Wno-error -c -o elf-from-memory.o elf-from-memory.c lcc: "elf-from-memory.c", line 234: error #65: expected a ";" { ^ lcc: "elf-from-memory.c", line 259: warning #12: parsing restarts here after previous syntax error goto libelf_error; ^ lcc: "elf-from-memory.c", line 312: error #159: declaration is incompatible with previous "handle_segment" (declared at line 232) inline bool handle_segment (GElf_Addr vaddr, GElf_Off offset, ^ lcc: "elf-from-memory.c", line 314: error #65: expected a ";" { ^ lcc: "elf-from-memory.c", line 330: warning #12: parsing restarts here after previous syntax error goto read_error; ^ lcc: "elf-from-memory.c", line 58: warning #826: parameter "pagesize" was n= ever referenced [-Wunused-parameter] GElf_Xword pagesize, ^ lcc: "elf-from-memory.c", line 223: warning #3137: variable "found_base" was declared but never referenced [-Wunused-variable] bool found_base =3D false; ^ 3 errors detected in the compilation of "elf-from-memory.c". LCC does not supports nested functions May you have any solution how to fix it? --=20 You are receiving this mail because: You are on the CC list for the bug.=