delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2020/12/10/05:59:23

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
s=badeba3b8450; t=1607597731;
bh=8SAX5ievwoubCAoVQvl14HqZFWOC/d25yu9Kc0je6X4=;
h=X-UI-Sender-Class:Date:From:To:Subject;
b=jfzEHBhrxRaDE2Wew6EFQEvIKLZq8NSNQCItvLiNA6bvavbUrh0rZXcd1xTLsSkOz
GMEn/v6Rtb54uQ9PurJ403/mTpfFUYNdwpgs55OwPVJkxGkzDtIeay56LPasvIg0SH
65Pvveoc4kgYnE6UhP/60hWIqzaNmNZriqKmu3qg=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Message-ID: <5FD1FEA1.7010304@gmx.de>
Date: Thu, 10 Dec 2020 11:55:29 +0100
From: "Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.13) Gecko/20101206 SUSE/3.1.7 Thunderbird/3.1.7
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Difficulties compiling libc from repository using gcc 10.N.0
X-Provags-ID: V03:K1:uhztn7es13h02A6gQIMj2qyq5Azhlsb5Z0uGQ4A3wsl2s0dYQ3d
uRu3+l93iCZq2maHtkL20BLr5PKe4fg+10c3MYgrRa9OovlIM1pXe7E6Xc97gkvUQMaVHKT
6YUzY5/KmT/pDaU0lM2/lI7Mw7phFtA9EDiKQWokkKGCyvfrLGGhvp2lufyGoeXfmklEESl
TTWKEsE8jYiAUF2GbyiDQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:LA5E8KN3TMU=:uPv13hsxTWdMhPY6mVld7g
lTfPZfrYEhWjsOASgfjyz0cjf5YY4QDiCR2tJze1KqmSZKjTfky93yq0UQX1v8wLlk4Q+Tenx
Z9hLW773F0O7QZQoBOIh5A7umim2i2J4Wj0qs1A5QIcPR/18hCJG8w/10nMhWyuCbzjLVWqzj
FBkyXQcLVnWw8FQp9S1D8q1dJ6Kf/kqtFeXW7kd8YGRGO6vw15DNhHp7B71hU/GlzKqjiWdF9
qWN+l3T1K/FW1mRq2d8T2cVntwlnTHEh0KUrhLPXvnXvLJ17QHLpy8vRAJQOxXrHOxlPKcQ+0
LHp1s0+z7emDdPbbJxD4yWX+3zPQ5RihRIOLe1jnRvQJvexGPbY9UGCT/jI2HXkPdG074aZGW
IDcfPJniuKTwGoLYRgFYB1UKERUAe5PCN48tQ8LphDQgO8iqTgZbCR39s6Z5Dx/0u0PMvmLxM
g1Y21/jkI1vUU3m+Kk9B+BOi3vvDpVEjpJUXHQoPOxXASqIsT/XKPt0VuGY0UwoJ6ICIOValF
rQKNCv7j5wzvTqHdzFYTQO1J04mehR6KDu8ViuSxC/fGspCANMOGYIuDx0/uYE7OM7OJhXDRZ
fZgKGw8Ck8Eg0jBOAyOqPc4hkH3NL74ZZaXKZFyZE1QqpMugd0+s7hAtbV44shfmSbVdLmWyH
80AXOIyvPrFJMRp6UUVntmJjU+UvrfZZW2yCKFWm+/oZjaj0bB9qlAIDSWUAkGnxxtEPf0Oty
ceyabmFHreteseJLTKt5vzaOdQVIEHcrN3apPcZ8cvcarP38WsRZ0Q0MU2bBxPplM1OcHZ7v7
ej5bVx/APiyL3lRIsLB0iXcEIG03vERwBe9/CX5nicyF1wKggXTBZ6mAfiFoQYVO3zewu2JPd
Llmb0kQWyhJGm4WH9XlQ==
Reply-To: djgpp AT delorie DOT com

I have tried to compile the the repository code of libc and the compiler stoped with the follwing error message:

C:/DJGPP-2.05/BIN/make.exe -C common
gcc ... -c dbgcom.c
dbgcom.c: Assembler messages:
dbgcom.c:1342: Error: symbol `.Ldoes_not_has_read_right' is already defined
dbgcom.c:1346: Error: symbol `.Ldoes_not_has_write_right' is already defined
make[3]: *** [../../makefile.inc:90: dbgcom.o] Error 1
make[2]: *** [makefile.sub:2: all_subs] Error 2
make[1]: *** [../makefile.lib:7: all] Error 2
make: *** [makefile:45: subs] Error 2

I have tried this using gcc1010 and gcc1020.  Both fails.  If I use gcc920
everything works fine.  In all cases bnu234b has been used and no other one
has been tried.


Of course there are a lot of other warnings that aborts the compilation like:
d:/djgpp/include/time.h: In function 'asctime':
ctime.c:1553:55: warning: '%d' directive writing between 1 and 11 bytes into a region of size between 0 and 12 [-Wformat-overflow=]
  1553 |   (void) sprintf(result, "%.3s %.3s%3d %02d:%02d:%02d %d\n",
       |                                                       ^~
ctime.c:1553:26: note: directive argument in the range [-2147481748, 2147483647]
  1553 |   (void) sprintf(result, "%.3s %.3s%3d %02d:%02d:%02d %d\n",
       |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ctime.c:1553:10: note: 'sprintf' output between 17 and 68 bytes into a destination of size 26
  1553 |   (void) sprintf(result, "%.3s %.3s%3d %02d:%02d:%02d %d\n",
       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1554 |                  wday_name[timeptr->tm_wday],
       |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1555 |                  mon_name[timeptr->tm_mon],
       |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
  1556 |                  timeptr->tm_mday, timeptr->tm_hour,
       |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1557 |                  timeptr->tm_min, timeptr->tm_sec,
       |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1558 |                  TM_YEAR_BASE + timeptr->tm_year);
       |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
d:/djgpp/include/time.h: In function 'ctime':
ctime.c:1553:55: warning: '%d' directive writing between 1 and 11 bytes into a region of size between 0 and 12 [-Wformat-overflow=]
  1553 |   (void) sprintf(result, "%.3s %.3s%3d %02d:%02d:%02d %d\n",
       |                                                       ^~
ctime.c:1553:26: note: directive argument in the range [-2147481748, 2147483647]
  1553 |   (void) sprintf(result, "%.3s %.3s%3d %02d:%02d:%02d %d\n",
       |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ctime.c:1553:10: note: 'sprintf' output between 17 and 68 bytes into a destination of size 26
  1553 |   (void) sprintf(result, "%.3s %.3s%3d %02d:%02d:%02d %d\n",
       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1554 |                  wday_name[timeptr->tm_wday],
       |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1555 |                  mon_name[timeptr->tm_mon],
       |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
  1556 |                  timeptr->tm_mday, timeptr->tm_hour,
       |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1557 |                  timeptr->tm_min, timeptr->tm_sec,
       |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1558 |                  TM_YEAR_BASE + timeptr->tm_year);
       |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


or:
d:/djgpp/include/io.h: In function '_chmod':
_chmod.c:28:14: warning: array subscript 1 is outside array bounds of 'int[1]' [-Warray-bounds]
    28 |     r.x.cx = *(&func + 1);  /* Value to set */
       |              ^~~~~~~~~~~~
_chmod.c:14:34: note: while referencing 'func'
    14 | _chmod(const char *filename, int func, ...)
       |                              ~~~~^~~~

The -Warray-bounds appears quite a lot due to our way to address neighborhood variables as can
be seen in the example above.  May be some with some spare time can fix these occurencies.

Regards,
Juan M. Guerrero

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019