30

J'avais déjà relu le fil du ticket, et merci pour le lien. Je l'ai cherché, pas trouvé ...

31

Ca a l'air de marcher. happy

32

Folco (./31) :
Ca a l'air de marcher. happy

Euh, en fait, tout est relatif disons :
[Folco@folco pcontrol2]$ ./build.sh                             
In file included from pcontrol.c:3:                             
/usr/local/tigcc/include/c/kernel.h:139: error: expected ')' before 'hd'
/usr/local/tigcc/include/c/kernel.h:141: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_RAM_CALL_17'                                          
/usr/local/tigcc/include/c/kernel.h:143: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token                                               
/usr/local/tigcc/include/c/kernel.h:156: error: expected ')' before 'hd'        
/usr/local/tigcc/include/c/kernel.h:158: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_RAM_CALL_1F'                                          
/usr/local/tigcc/include/c/kernel.h:160: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_RAM_CALL_20'                                          
/usr/local/tigcc/include/c/kernel.h:162: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_RAM_CALL_29'                                          
In file included from /usr/local/tigcc/include/c/alloc.h:4,                     
                 from /usr/local/tigcc/include/c/kernel.h:173,                  
                 from pcontrol.c:3:                                             
/usr/local/tigcc/include/c/default.h:188:1: warning: "__rom_call_addr_concat" redefined                                                                         
In file included from /usr/local/tigcc/include/c/kernel.h:58,                   
                 from pcontrol.c:3:                                             
/usr/local/tigcc/include/c/romsymb.h:6:1: warning: this is the location of the previous definition                                                              
In file included from /usr/local/tigcc/include/c/alloc.h:4,                     
                 from /usr/local/tigcc/include/c/kernel.h:173,                  
                 from pcontrol.c:3:                                             
/usr/local/tigcc/include/c/default.h:286:1: warning: "AMS_1xx" redefined        
In file included from pcontrol.c:3:                                             
/usr/local/tigcc/include/c/kernel.h:130:1: warning: this is the location of the previous definition                                                             
In file included from /usr/local/tigcc/include/c/alloc.h:4,                     
                 from /usr/local/tigcc/include/c/kernel.h:173,                  
                 from pcontrol.c:3:                                             
/usr/local/tigcc/include/c/default.h:292:1: warning: "AMS_2xx" redefined        
In file included from pcontrol.c:3:                                             
/usr/local/tigcc/include/c/kernel.h:131:1: warning: this is the location of the previous definition                                                             
In file included from /usr/local/tigcc/include/c/alloc.h:4,                     
                 from /usr/local/tigcc/include/c/kernel.h:173,                  
                 from pcontrol.c:3:                                             
/usr/local/tigcc/include/c/default.h:293:1: warning: "AMS_3xx" redefined        
In file included from pcontrol.c:3:                                             
/usr/local/tigcc/include/c/kernel.h:132:1: warning: this is the location of the previous definition                                                             
In file included from /usr/local/tigcc/include/c/alloc.h:4,                     
                 from /usr/local/tigcc/include/c/kernel.h:173,                  
                 from pcontrol.c:3:                                             
/usr/local/tigcc/include/c/default.h:317: error: conflicting types for '__pshort'                                                                               
/usr/local/tigcc/include/c/kernel.h:125: error: previous declaration of '__pshort' was here                                                                     
/usr/local/tigcc/include/c/default.h:327: error: conflicting types for '__pushort'                                                                              
/usr/local/tigcc/include/c/kernel.h:124: error: previous declaration of '__pushort' was here                                                                    
/usr/local/tigcc/include/c/default.h:329: error: redefinition of typedef '__plong'                                                                              
/usr/local/tigcc/include/c/kernel.h:126: error: previous declaration of '__plong' was here                                                                      
/usr/local/tigcc/include/c/default.h:330: error: redefinition of typedef '__pulong'
/usr/local/tigcc/include/c/kernel.h:127: error: previous declaration of '__pulong' was here
In file included from /usr/local/tigcc/include/c/default.h:415,
                 from /usr/local/tigcc/include/c/alloc.h:4,
                 from /usr/local/tigcc/include/c/kernel.h:173,
                 from pcontrol.c:3:
/usr/local/tigcc/include/c/nostub.h:81:24: error: operator '*' has no left operand
In file included from /usr/local/tigcc/include/c/kernel.h:194,
                 from pcontrol.c:3:
/usr/local/tigcc/include/c/graph.h:8:1: warning: "LCD_MEM" redefined
In file included from pcontrol.c:3:
/usr/local/tigcc/include/c/kernel.h:97:1: warning: this is the location of the previous definition
In file included from /usr/local/tigcc/include/c/kernel.h:194,
                 from pcontrol.c:3:
/usr/local/tigcc/include/c/graph.h:9:1: warning: "LCD_SIZE" redefined
In file included from pcontrol.c:3:
/usr/local/tigcc/include/c/kernel.h:101:1: warning: this is the location of theprevious definition
/usr/local/tigcc/include/c/kernel.h:212:20: error: stdint.h: No such file or directory
In file included from /usr/local/tigcc/include/c/kernel.h:214,
                 from pcontrol.c:3:
/usr/local/tigcc/include/c/stdlib.h:41: error: conflicting types for '_RAM_CALL_2B'
/usr/local/tigcc/include/c/kernel.h:166: error: previous declaration of '_RAM_CALL_2B' was here
In file included from /usr/local/tigcc/include/c/kernel.h:214,
                 from pcontrol.c:3:
/usr/local/tigcc/include/c/stdlib.h:50:1: warning: "exit" redefined
In file included from pcontrol.c:3:
/usr/local/tigcc/include/c/kernel.h:163:1: warning: this is the location of theprevious definition
pcontrol.c: In function '__main':
pcontrol.c:8: warning: unused variable 'CurrentItem'

hum, désolé, je vais regarder. ^^

33

Tu n'as pas mis les gardes
#ifndef KERNEL_NEW
#include <default.h>
#endif

dans chaque header de TIGCCLIB, comme décrit dans le ticket #9.

MAIS... à lire ./22, j'avais l'impression que tu avais réutilisé ce topic pour une application AMS, et il n'en est manifestement rien, puisque c'est pcontrol que tu essaies de compiler
=> repasse au kernel.h de PpHd, qui fonctionne, et ne t'embête pas avec le mien wink
(et désolé de t'avoir fait perdre du temps sad )
avatar
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
Co-admin de TI-Planet.

34

Tu devrais utiliser le support du kernel officiel de TIGCCLIB au lieu de perdre ton temps avec des bidouilles non supportées comme kernel.h.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

35

La ferme.
avatar
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
Co-admin de TI-Planet.

36

Lionel Debroux (./33) :
(et désolé de t'avoir fait perdre du temps frown.gif )

Eh le support et le débogage, je te rassure, chez moi c'est gratuit comme un peu partout hein ^^ (et heureusement, sinon j'aurais largement plus de passif que d'actif grin)

Kevin -> tu fournis pas les headers pour PedroM ni pour les libs dynamiques, ainsi que l'ensemble des ramcalls.
Au fait, je crois que les exemples de TIGCC sont outdated.

37

C'est le mode kernel qui est outdated. grin

Pour les libs, il devrait y avoir un header par lib (et pour les RAM_CALLs, un ramcalls.h), à inclure explicitement, qui ne remplace pas les headers de TIGCCLIB, pas un kernel.h qui mélange tout, ROM_CALLs, RAM_CALLs, libs. Ces headers devraient ensuite être livrés avec le SDK du kernel ou de la lib, pas avec TIGCCLIB.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

38

Comme mon kernel.h en assembleur : tout-en-un. romcalls relogés, offset etc, macros et énumérations. Pas à se faire chier avec 50 aideurs qui se foutent le boxon entre eux... Avec ma manière de faire, j'ai jamais eu le moindre souci tongue

39

il devrait y avoir un header par lib (et pour les RAM_CALLs, un ramcalls.h)

"Il devrait" y avoir un header pour les RAM_CALLs, mais TIGCC n'en a pas wink
avatar
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
Co-admin de TI-Planet.

40

TIGCC n'en a pas parce que:
Kevin Kofler (./37) :
Ces headers devraient ensuite être livrés avec le SDK du kernel ou de la lib, pas avec TIGCCLIB.


TIGCCLIB, c'est pour des programmes portables, pas pour utiliser des fonctionnalités spécifiques à PreOs.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

41

On parle d'une cible "PedroM" dans le contexte de ce topic.

42

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)

43

Envoie mon ton /usr/local/tigcc/include/c/default.h et ton preos.h

44

Mail envoyé, merci. smile