|
From: Miro K. <mir...@gm...> - 2025-11-30 09:15:57
|
Hi, I tried to reproduce your problem on my m68-atari-mintelf-gcc 13.4.0 and all worked fine (I even edited the Makefile as per your example). Do you have mintlib installed? It's a bit counter intuitive but libcmini requires mintlib for some of its parts. I suspect that isblank might be one of such examples. P.S. Hope to see http://atari.daroou.fr online again soon! :-) On Sat, 29 Nov 2025 at 06:17, Daroou via Freemint-discuss < fre...@li...> wrote: > Bonjour, > > > I'm currently testing Vincent Rivière's m68k-atari-mintelf cross-tools > (under cygwin) > > 'Hello world' compiles perfectly with Mintlib. > > However, I want to use LIBCmini for my programs. > > https://github.com/freemint/libcmini > > GCC ELF refuses to compile LIBCmini because of this error: > > [Makefile] > > ONLY_68K=Y > BUILD_CF=N > BUILD_FAST=N > BUILD_SOFT_FLOAT=Y > BUILD_SHORT=Y > COMPILE_ELF=Y > STDIO_WITH_LONG_LONG=N > > > $ m68k-atari-mintelf-gcc --version > > m68k-atari-mintelf-gcc (GCC MiNT ELF 20240130) 13.2.0 > Copyright (C) 2023 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > make clean > > make libs > > CC build/./objs/isblank.o > sources/isblank.c: In function 'isblank': > sources/isblank.c:4:6: error: infinite recursion detected > [-Werror=infinite-recursion] > 4 | int (isblank)(int c) > | ^~~~~~~ > sources/isblank.c:6:16: note: recursive call > 6 | return isblank(c); > | ^~~~~~~~~~ > cc1: all warnings being treated as errors > make: *** [Makefile:162: build/./objs/isblank.o] Error 1 > > > [isblank.c] > > #include <ctype.h> > #include "ctypeint.h" > > int (isblank)(int c) > { > return isblank(c); > } > [/isblank.c] > > > > > Compiles perfectly with standard GCC > > [Makefile] > > ONLY_68K=Y > BUILD_CF=N > BUILD_FAST=N > BUILD_SOFT_FLOAT=Y > BUILD_SHORT=Y > COMPILE_ELF=N > STDIO_WITH_LONG_LONG=N > > > $ m68k-atari-mint-gcc --version > > m68k-atari-mint-gcc (GCC) 4.6.4 (MiNT 20200504) > Copyright (C) 2011 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > make clean > > make libs > > [...] > > CC build/./objs/setstack.o > AR build/./libcmini.a > CC build/./objs/iio/doprnt.o > AR build/./libiiomini.a > > make clean > > make all > > [...] > > CC build/./objs/setstack.o > AR build/./libcmini.a > CC build/./objs/iio/doprnt.o > AR build/./libiiomini.a > CC build/crt0.o > CC build/minicrt0.o > > > Thank you for your help. > > Merci. > > > > _______________________________________________ > Freemint-discuss mailing list > Fre...@li... > https://lists.sourceforge.net/lists/listinfo/freemint-discuss > -- http://mikro.atari.org |