[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Freemint Failed Build
On Thu, 2006-06-01 at 18:07 -0400, Mark Duckworth wrote:
> Hey guys,
>
> Just wanted to let you know that I haven't released any builds because
> it keeps failing at the same spot.
>
> gcc -I../rsc/english -O2 -fomit-frame-pointer -Wall -Wmissing-prototypes
> -Winline -Wshadow -Wpointer-arith -Wcast-qual -Waggregate-return
> -c ../list.c -o list.ogcc -I../rsc/english -O2 -fomit-frame-pointer
> -Wall -Wmissing-prototypes -Winline -Wshadow -Wpointer-arith -Wcast-qual
> -Waggregate-return -c ../phstuff.c -o phstuff.o
> ../phstuff.c:35: parse error before `clear_cpu_caches'
> ../phstuff.c:35: warning: type defaults to `int' in declaration of
> `clear_cpu_caches'
> ../phstuff.c:35: warning: data definition has no type or storage class
> ../phstuff.c: In function `load_and_reloc':
> ../phstuff.c:149: `r' undeclared (first use in this function)
> ../phstuff.c:149: (Each undeclared identifier is reported only once
> ../phstuff.c:149: for each function it appears in.)
> make[5]: *** [phstuff.o] Error 1
> make[5]: Leaving directory
> `/f/root/build_host/freemint/tools/cops/.compile_english'
> make[4]: *** [_stmp_english] Error 2
> make[4]: Leaving directory `/f/root/build_host/freemint/tools/cops'
> make[3]: *** [english] Error 2
> make[3]: Leaving directory `/f/root/build_host/freemint/tools/cops'
> make[2]: *** [all-targets] Error 1
> make[2]: Leaving directory `/f/root/build_host/freemint/tools/cops'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/f/root/build_host/freemint/tools'
> make: *** [all-recursive] Error 1
> The build failed
> root@washi:/root/build_host>
>
> If anyone could lend any suggestions as to why this is wrong or how come
> nobody has fixed it yet or whether or not my system is to blame, I would
> appreciate it.
On second thoughts, here's a patch as there's the other issue of 'r' not
being defined.
Apply this instead to fix both problems.
Alan.
Index: phstuff.c
===================================================================
RCS file: /mint/freemint/tools/cops/phstuff.c,v
retrieving revision 1.5
diff -u -r1.5 phstuff.c
--- phstuff.c 12 Mar 2006 08:39:08 -0000 1.5
+++ phstuff.c 1 Jun 2006 23:11:28 -0000
@@ -30,6 +30,8 @@
#include <mint/ssystem.h>
+#include "cops_rsc.h"
+
#include "phstuff.h"
extern LONG clear_cpu_caches( void );
@@ -146,9 +148,7 @@
/* Programm geladen? */
if (addr)
{
- r = Ssystem(-1, 0,NULL);
-
- if (!r)
+ if (!Ssystem(-1, 0, NULL));
{
/* flush cpu caches */
Ssystem(S_FLUSHCACHE, addr, TDB_len);