41Fermer43
FarewellLe 03/05/2009 à 22:55
Bon, alors j'arrive pas à compiler avec mon printf, voicile log :
log
[tigcc: /usr/local/tigcc/bin/gcc -v -Os -Wall -W -Wwrite-strings -ffunction-sections -fdata-sections -B/usr/local/tigcc/bin/ -I/usr/local/tigcc/include/c pcontrol.c -S -o pcontrol.s
Using built-in specs.
Target: m68k-coff
Configured with: ../../download/gcc.ti/configure --prefix=/var/tmp/tigcc-0.96b08r1-2-root-root/usr/local/tigcc --target=m68k-coff --with-gnu-as --disable-nls --disable-multilib --disable-shared --enable-static --disable-threads --disable-win32-registry --disable-checking --disable-werror --disable-pch --disable-mudflap --disable-libssp
Thread model: single
gcc version 4.1.2 20060728 (prerelease) (TIGCC 4.1.2-pre9)
/usr/local/tigcc/bin/cc1 -quiet -v -I/usr/local/tigcc/include/c -D__TIGCC_ENV__ -D__INT_SHORT__ pcontrol.c -quiet -dumpbase pcontrol.c -auxbase-strip pcontrol.s -Os -Wall -W -Wwrite-strings -version -ffunction-sections -fdata-sections -o pcontrol.s
#include "..." search starts here:
#include <...> search starts here:
/usr/local/tigcc/include/c
End of search list.
GNU C version 4.1.2 20060728 (prerelease) (TIGCC 4.1.2-pre9) (m68k-coff)
compiled by GNU C version 4.1.1 20070105 (Red Hat 4.1.1-51).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 0009d5d375ba6629202d044e04d343c9
In file included from ped-base.h:41,
from stdio.h:5,
from pcontrol.c:9:
/usr/local/tigcc/include/c/default.h:188:1: warning: "__rom_call_addr_concat" redefined
In file included from pcontrol.c:3:
preos.h:178:1: warning: this is the location of the previous definition
In file included from ped-base.h:41,
from stdio.h:5,
from pcontrol.c:9:
/usr/local/tigcc/include/c/default.h:194:1: warning: "_rom_call_addr_concat" redefined
In file included from pcontrol.c:3:
preos.h:177:1: warning: this is the location of the previous definition
In file included from ped-base.h:41,
from stdio.h:5,
from pcontrol.c:9:
/usr/local/tigcc/include/c/default.h:317: error: conflicting types for '__pshort'
preos.h:231: error: previous declaration of '__pshort' was here
/usr/local/tigcc/include/c/default.h:327: error: conflicting types for '__pushort'
preos.h:230: error: previous declaration of '__pushort' was here
/usr/local/tigcc/include/c/default.h:329: error: redefinition of typedef '__plong'
preos.h:232: error: previous declaration of '__plong' was here
/usr/local/tigcc/include/c/default.h:330: error: redefinition of typedef '__pulong'
preos.h:233: error: previous declaration of '__pulong' was here
In file included from pcontrol.c:9:
stdio.h:13: error: redefinition of typedef '__vcbprintf__type__'
preos.h:283: error: previous declaration of '__vcbprintf__type__' was here
In file included from pcontrol.c:9:
stdio.h:17:1: warning: "TMP_MAX" redefined
In file included from pcontrol.c:3:
preos.h:1726:1: warning: this is the location of the previous definition
stdio.h:21: error: conflicting types for 'FILE'
preos.h:278: error: previous declaration of 'FILE' was here
stdio.h:22: error: nested redefinition of 'enum SeekModes'
stdio.h:22: error: redeclaration of 'enum SeekModes'
stdio.h:22: error: redeclaration of enumerator 'SEEK_SET'
preos.h:336: error: previous definition of 'SEEK_SET' was here
stdio.h:22: error: redeclaration of enumerator 'SEEK_CUR'
preos.h:336: error: previous definition of 'SEEK_CUR' was here
stdio.h:22: error: redeclaration of enumerator 'SEEK_END'
preos.h:336: error: previous definition of 'SEEK_END' was here
stdio.h:25: error: redefinition of typedef 'size_t'
preos.h:244: error: previous declaration of 'size_t' was here
stdio.h:30: error: redefinition of typedef 'va_list'
preos.h:277: error: previous declaration of 'va_list' was here
In file included from pcontrol.c:9:
stdio.h:47:1: warning: "freopen" redefined
In file included from pcontrol.c:3:
preos.h:1732:1: warning: this is the location of the previous definition
In file included from pcontrol.c:9:
stdio.h:50:1: warning: "clearerr" redefined
In file included from pcontrol.c:3:
preos.h:1727:1: warning: this is the location of the previous definition
In file included from pcontrol.c:9:
stdio.h:52:1: warning: "feof" redefined
In file included from pcontrol.c:3:
preos.h:1728:1: warning: this is the location of the previous definition
In file included from pcontrol.c:9:
stdio.h:54:1: warning: "ferror" redefined
In file included from pcontrol.c:3:
preos.h:1729:1: warning: this is the location of the previous definition
In file included from pcontrol.c:9:
stdio.h:56:1: warning: "fflush" redefined
In file included from pcontrol.c:3:
preos.h:1730:1: warning: this is the location of the previous definition
In file included from pcontrol.c:9:
stdio.h:58:1: warning: "rewind" redefined
In file included from pcontrol.c:3:
preos.h:1741:1: warning: this is the location of the previous definition
In file included from pcontrol.c:9:
stdio.h:60:1: warning: "ungetc" redefined
In file included from pcontrol.c:3:
preos.h:1746:1: warning: this is the location of the previous definition
In file included from pcontrol.c:9:
stdio.h:94:1: warning: "remove" redefined
In file included from pcontrol.c:3:
preos.h:1740:1: warning: this is the location of the previous definition
stdio.h:100: error: conflicting types for 'tmpnam'
preos.h:399: error: previous declaration of 'tmpnam' was here
In file included from pcontrol.c:9:
stdio.h:108:1: warning: "vcbprintf" redefined
In file included from pcontrol.c:3:
preos.h:1747:1: warning: this is the location of the previous definition
stdio.h:112: error: expected declaration specifiers or '...' before '(' token
stdio.h:112: error: expected declaration specifiers or '...' before '(' token
stdio.h:112: error: expected declaration specifiers or '...' before '(' token
stdio.h:112: error: expected declaration specifiers or '...' before '(' token
stdio.h:113: error: static declaration of 'pedrom__0005' follows non-static declaration
stdio.h:109: error: previous declaration of 'pedrom__0005' was here
stdio.h: In function 'pedrom__0005':
stdio.h:113: error: number of arguments doesn't match prototype
stdio.h:109: error: prototype declaration
stdio.h:113: error: 's' undeclared (first use in this function)
stdio.h:113: error: 'f' undeclared (first use in this function)
stdio.h:113: error: 'a' undeclared (first use in this function)
stdio.h: At top level:
stdio.h:115: error: expected declaration specifiers or '...' before '(' token
stdio.h:115: error: expected declaration specifiers or '...' before '(' token
stdio.h:115: error: expected declaration specifiers or '...' before '(' token
stdio.h:115: error: expected declaration specifiers or '...' before '(' token
stdio.h:116: error: redefinition of 'pedrom__0005'
stdio.h:113: error: previous definition of 'pedrom__0005' was here
stdio.h: In function 'pedrom__0005':
stdio.h:116: error: number of arguments doesn't match prototype
stdio.h:113: error: prototype declaration
stdio.h:116: error: 'f' undeclared (first use in this function)
stdio.h:116: error: 'a' undeclared (first use in this function)
stdio.h: At top level:
stdio.h:118: error: expected identifier or '(' before 'void'
stdio.h:118: error: expected ')' before '(' token
stdio.h:126: error: expected identifier or '(' before 'long'
stdio.h:126: error: expected ')' before '(' token
stdio.h:126: error: expected ')' before '==' token
stdio.h:129: error: expected declaration specifiers or '...' before '(' token
stdio.h:129: error: expected declaration specifiers or '...' before '*' token
stdio.h:129: error: expected declaration specifiers or '...' before 'SEEK_SET'
stdio.h:130: error: static declaration of 'pedrom__000a' follows non-static declaration
stdio.h:64: error: previous declaration of 'pedrom__000a' was here
stdio.h: In function 'pedrom__000a':
stdio.h:130: error: number of arguments doesn't match prototype
stdio.h:64: error: prototype declaration
stdio.h:130: error: 'f' undeclared (first use in this function)
stdio.h:130: error: 'p' undeclared (first use in this function)
pcontrol.c: In function '_main': pcontrol.c:18: warning: unused variable 'ItemNewStatus'

Visiblement, il va chercher des headers de tigcc, alors que je lui ai rien demandé ...
Voici ma commande de compilation :
tigcc -v -Wa,-l -Os -Wall -W -Wwrite-strings -ffunction-sections -fdata-sections \
	pcontrol.c	\
	strings.c	\
	menus.c		\
	funcs.c		\
	graph.c

Que peut-il donc bien se passer ? sad

(t1 j'ai une de ces envies de revenir à l'assembleur, tout ça c'est des problèmes inexistants grin)