public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* gcc 14+ and m68k build failure
@ 2024-06-02 15:58 Joel Sherrill
  2024-06-03 16:44 ` Hans-Bernhard Bröker
  2024-06-04  1:02 ` Pietro Monteiro
  0 siblings, 2 replies; 4+ messages in thread
From: Joel Sherrill @ 2024-06-02 15:58 UTC (permalink / raw)
  To: Newlib

[-- Attachment #1: Type: text/plain, Size: 1311 bytes --]

Hi

GCC 14+ fail to build a few newlib targets. I am looking into m68k-rtems
(m68k-elf) first. If there is a common thread, it appears to be related to
targets which do not have long double in all multilibs.

First, how do you see more than "CC..file.c"?

The error for m68k starts with this:

ake[3]: Entering directory
'/home/joel/test-gcc/b-m68k-rtems6-gcc/m68k-rtems6/newlib'
  CC       libm/complex/libm_a-ccoshl.o
../../../gcc/newlib/libm/complex/ccoshl.c: In function 'ccoshl':
../../../gcc/newlib/libm/complex/ccoshl.c:43:13: error: implicit
declaration of function 'coshl'; did you mean 'coshf'?
[-Wimplicit-function-declaration]
   43 |         w = coshl(x) * cosl(y) + (sinhl(x) * sinl(y)) * I;
      |             ^~~~~
      |             coshf
../../../gcc/newlib/libm/complex/ccoshl.c:43:24: error: implicit
declaration of function 'cosl'; did you mean 'cosf'?
[-Wimplicit-function-declaration]
   43 |         w = coshl(x) * cosl(y) + (sinhl(x) * sinl(y)) * I;


I suspect that since only one multilib for m68k has multilib and that is
picked at compile time, the multilib here isn't enabling the prototypes for
long double. That idea seems right but the code doesn't seem to always
follow up to avoid trying to compile files like the above which assume long
double.

Ideas appreciated.

--joel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-04  1:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-02 15:58 gcc 14+ and m68k build failure Joel Sherrill
2024-06-03 16:44 ` Hans-Bernhard Bröker
2024-06-04  1:02 ` Pietro Monteiro
2024-06-04  1:41   ` Pietro Monteiro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).