Hello,
I have a problem regarding builing yaffs utils. During compilation
all of u* types can not be resolved. How to handle this?
In file included from yutilsenv.h:26:0,
from yportenv.h:84,
from yaffs_guts.h:19,
from mkyaffsimage.c:31:
yaffs_hweight.h:21:20: error: unknown type name âu8â
yaffs_hweight.h:22:21: error: unknown type name âu32â
In file included from mkyaffsimage.c:31:0:
yaffs_guts.h:136:2: error: unknown type name âu8â
yaffs_guts.h:155:2: error: unknown type name âu8â
yaffs_guts.h:211:2: error: unknown type name âu8â
yaffs_guts.h:212:2: error: unknown type name âu8â
yaffs_guts.h:213:2: error: unknown type name âu8â
yaffs_guts.h:214:2: error: unknown type name âu8â
yaffs_guts.h:215:2: error: unknown type name âu8â
yaffs_guts.h:216:2: error: unknown type name âu8â
yaffs_guts.h:217:2: error: unknown type name âu8â
yaffs_guts.h:218:2: error: unknown type name âu8â
yaffs_guts.h:219:2: error: unknown type name âu8â
yaffs_guts.h:220:2: error: unknown type name âu8â
yaffs_guts.h:221:2: error: unknown type name âu8â
yaffs_guts.h:222:2: error: unknown type name âu8â
yaffs_guts.h:293:2: error: unknown type name âu32â
yaffs_guts.h:295:2: error: unknown type name âu32â
yaffs_guts.h:296:2: error: unknown type name âu32â
yaffs_guts.h:298:2: error: unknown type name âu32â
yaffs_guts.h:300:2: error: unknown type name âu32â
yaffs_guts.h:302:2: error: unknown type name âu32â
yaffs_guts.h:303:2: error: unknown type name âu32â
yaffs_guts.h:315:2: error: unknown type name âu16â
yaffs_guts.h:319:2: error: unknown type name âu32â
yaffs_guts.h:321:2: error: unknown type name âu32â
yaffs_guts.h:322:2: error: unknown type name âu32â
yaffs_guts.h:323:2: error: unknown type name âu32â
yaffs_guts.h:324:2: error: unknown type name âu32â
yaffs_guts.h:325:2: error: unknown type name âu32â
yaffs_guts.h:328:2: error: unknown type name âu32â
yaffs_guts.h:336:2: error: unknown type name âu32â
yaffs_guts.h:338:2: error: unknown type name âu32â
yaffs_guts.h:339:2: error: unknown type name âu32â
yaffs_guts.h:340:2: error: unknown type name âu32â
yaffs_guts.h:342:2: error: unknown type name âu32â
yaffs_guts.h:343:2: error: unknown type name âu32â
yaffs_guts.h:345:2: error: unknown type name âu32â
yaffs_guts.h:346:2: error: unknown type name âu32â
yaffs_guts.h:351:2: error: unknown type name âu32â
yaffs_guts.h:388:2: error: unknown type name âu32â
yaffs_guts.h:399:2: error: unknown type name âu8â
yaffs_guts.h:400:2: error: unknown type name âu8â
yaffs_guts.h:401:2: error: unknown type name âu8â
yaffs_guts.h:402:2: error: unknown type name âu8â
yaffs_guts.h:403:2: error: unknown type name âu8â
yaffs_guts.h:404:2: error: unknown type name âu8â
yaffs_guts.h:405:2: error: unknown type name âu8â
yaffs_guts.h:406:2: error: unknown type name âu8â
yaffs_guts.h:412:2: error: unknown type name âu8â
yaffs_guts.h:415:2: error: unknown type name âu8â
yaffs_guts.h:420:2: error: unknown type name âu8â
yaffs_guts.h:422:2: error: unknown type name âu8â
yaffs_guts.h:425:2: error: unknown type name âu8â
yaffs_guts.h:427:2: error: unknown type name âu8â
yaffs_guts.h:430:2: error: unknown type name âu8â
yaffs_guts.h:431:2: error: unknown type name âu16â
yaffs_guts.h:449:2: error: unknown type name âu32â
yaffs_guts.h:451:2: error: unknown type name âu32â
yaffs_guts.h:460:2: error: unknown type name âu32â
yaffs_guts.h:461:2: error: unknown type name âu32â
yaffs_guts.h:462:2: error: unknown type name âu32â
yaffs_guts.h:463:2: error: unknown type name âu32â
yaffs_guts.h:464:2: error: unknown type name âu32â
yaffs_guts.h:467:2: error: unknown type name âu32â
yaffs_guts.h:488:2: error: unknown type name âu32â
yaffs_guts.h:489:2: error: unknown type name âu32â
yaffs_guts.h:492:2: error: unknown type name âu8â
yaffs_guts.h:493:2: error: unknown type name âu8â
yaffs_guts.h:494:2: error: unknown type name âu8â
yaffs_guts.h:495:2: error: unknown type name âu8â
yaffs_guts.h:496:2: error: unknown type name âu8â
yaffs_guts.h:497:2: error: unknown type name âu8â
yaffs_guts.h:498:2: error: unknown type name âu8â
yaffs_guts.h:509:2: error: unknown type name âu8â
yaffs_guts.h:525:2: error: unknown type name âu32â
yaffs_guts.h:550:2: error: unknown type name âu8â
yaffs_guts.h:551:2: error: unknown type name âu8â
yaffs_guts.h:558:11: error: unknown type name âu8â
yaffs_guts.h:561:26: error: unknown type name âu8â
yaffs_guts.h:569:9: error: unknown type name âu8â
yaffs_guts.h:572:24: error: unknown type name âu8â
yaffs_guts.h:577:11: error: unknown type name âu32â
yaffs_guts.h:629:2: error: unknown type name âu16â
yaffs_guts.h:632:2: error: unknown type name âu16â
yaffs_guts.h:635:2: error: unknown type name âu32â
yaffs_guts.h:636:2: error: unknown type name âu32â
yaffs_guts.h:637:2: error: unknown type name âu32â
yaffs_guts.h:640:2: error: unknown type name âu32â
yaffs_guts.h:641:2: error: unknown type name âu32â
yaffs_guts.h:642:2: error: unknown type name âu32â
yaffs_guts.h:658:2: error: unknown type name âu8â
yaffs_guts.h:666:2: error: unknown type name âu32â
yaffs_guts.h:667:2: error: unknown type name âu32â
yaffs_guts.h:674:2: error: unknown type name âu8â
yaffs_guts.h:683:2: error: unknown type name âu32â
yaffs_guts.h:694:2: error: unknown type name âu32â
yaffs_guts.h:699:2: error: unknown type name âu32â
yaffs_guts.h:700:2: error: unknown type name âu32â
yaffs_guts.h:760:2: error: unknown type name âu32â
yaffs_guts.h:761:2: error: unknown type name âu32â
yaffs_guts.h:762:2: error: unknown type name âu32â
yaffs_guts.h:763:2: error: unknown type name âu32â
yaffs_guts.h:764:2: error: unknown type name âu32â
yaffs_guts.h:765:2: error: unknown type name âu32â
yaffs_guts.h:766:2: error: unknown type name âu32â
yaffs_guts.h:767:2: error: unknown type name âu32â
yaffs_guts.h:768:2: error: unknown type name âu32â
yaffs_guts.h:769:2: error: unknown type name âu32â
yaffs_guts.h:770:2: error: unknown type name âu32â
yaffs_guts.h:771:2: error: unknown type name âu32â
yaffs_guts.h:772:2: error: unknown type name âu32â
yaffs_guts.h:773:2: error: unknown type name âu32â
yaffs_guts.h:774:2: error: unknown type name âu32â
yaffs_guts.h:775:2: error: unknown type name âu32â
yaffs_guts.h:776:2: error: unknown type name âu32â
yaffs_guts.h:777:2: error: unknown type name âu32â
yaffs_guts.h:778:2: error: unknown type name âu32â
yaffs_guts.h:779:2: error: unknown type name âu32â
yaffs_guts.h:780:2: error: unknown type name âu32â
yaffs_guts.h:781:2: error: unknown type name âu32â
yaffs_guts.h:792:2: error: unknown type name âu32â
yaffs_guts.h:807:2: error: unknown type name âu32â
yaffs_guts.h:808:2: error: unknown type name âu32â
yaffs_guts.h:809:2: error: unknown type name âu32â
yaffs_guts.h:848:42: error: unknown type name âu8â
yaffs_guts.h:850:26: error: unknown type name âu8â
yaffs_guts.h:855:28: error: unknown type name âu32â
yaffs_guts.h:855:38: error: unknown type name âu32â
yaffs_guts.h:856:9: error: unknown type name âu32â
yaffs_guts.h:868:8: error: unknown type name âu32â
yaffs_guts.h:868:18: error: unknown type name âu32â
yaffs_guts.h:868:27: error: unknown type name âu32â
yaffs_guts.h:871:63: error: unknown type name âu32â
yaffs_guts.h:881:31: error: unknown type name âu32â
yaffs_guts.h:881:41: error: unknown type name âu32â
yaffs_guts.h:882:12: error: unknown type name âu32â
yaffs_guts.h:887:31: error: unknown type name âu32â
yaffs_guts.h:887:41: error: unknown type name âu32â
yaffs_guts.h:888:12: error: unknown type name âu32â
yaffs_guts.h:888:21: error: unknown type name âu32â
yaffs_guts.h:915:20: error: unknown type name âu8â
yaffs_guts.h:919:1: error: unknown type name âu8â
yaffs_guts.h:920:55: error: unknown type name âu8â
yaffs_guts.h:943:9: error: unknown type name âu32â
yaffs_guts.h:946:29: error: unknown type name âu8â
yaffs_guts.h:955:12: error: unknown type name âu32â
yaffs_guts.h:957:1: error: unknown type name âu32â
yaffs_guts.h:963:21: error: unknown type name âu32â
mkyaffsimage.c:115:1: error: unknown type name âu16â
mkyaffsimage.c: In function âyaffs_calc_name_sumâ:
mkyaffsimage.c:117:2: error: unknown type name âu16â
mkyaffsimage.c:118:2: error: unknown type name âu16â
mkyaffsimage.c:120:2: error: unknown type name âu8â
mkyaffsimage.c:120:15: error: âu8â undeclared (first use in this
function)
mkyaffsimage.c:120:15: note: each undeclared identifier is
reported only once for each function it appears in
mkyaffsimage.c:120:19: error: expected expression before â)â token
mkyaffsimage.c: At top level:
mkyaffsimage.c:132:1: error: unknown type name âu8â
mkyaffsimage.c: In function âyaffs_calc_eccâ:
mkyaffsimage.c:134:2: warning: passing argument 1 of
âyaffs_ecc_calcâ from incompatible pointer type [enabled by
default]
yaffs_ecc.h:35:6: note: expected âconst unsigned char *â but
argument is of type âconst int *â
mkyaffsimage.c:134:2: warning: passing argument 2 of
âyaffs_ecc_calcâ from incompatible pointer type [enabled by
default]
yaffs_ecc.h:35:6: note: expected âunsigned char *â but argument is
of type âint *â
mkyaffsimage.c:135:2: warning: passing argument 1 of
âyaffs_ecc_calcâ from incompatible pointer type [enabled by
default]
yaffs_ecc.h:35:6: note: expected âconst unsigned char *â but
argument is of type âconst int *â
mkyaffsimage.c:135:2: warning: passing argument 2 of
âyaffs_ecc_calcâ from incompatible pointer type [enabled by
default]
yaffs_ecc.h:35:6: note: expected âunsigned char *â but argument is
of type âint *â
mkyaffsimage.c: In function âyaffs_calc_tags_eccâ:
mkyaffsimage.c:141:21: warning: initialization from incompatible
pointer type [enabled by default]
mkyaffsimage.c: At top level:
mkyaffsimage.c:230:24: error: unknown type name âu8â
mkyaffsimage.c:230:34: error: unknown type name âu32â
mkyaffsimage.c:230:46: error: unknown type name âu32â
mkyaffsimage.c:230:60: error: unknown type name âu32â
mkyaffsimage.c: In function âwrite_object_headerâ:
mkyaffsimage.c:308:2: error: unknown type name âu8â
mkyaffsimage.c:354:2: warning: implicit declaration of function
âwrite_chunkâ [-Wimplicit-function-declaration]
mkyaffsimage.c:354:2: warning: nested extern declaration of
âwrite_chunkâ [-Wnested-externs]
mkyaffsimage.c: In function âprocess_directoryâ:
mkyaffsimage.c:434:9: error: unknown type name âu8â
mkyaffsimage.c: At top level:
mkyaffsimage.c:115:12: warning: âyaffs_calc_name_sumâ defined but
not used [-Wunused-function]
mkyaffsimage.c:132:13: warning: âyaffs_calc_eccâ defined but not
used [-Wunused-function]
mkyaffsimage.c:138:13: warning: âyaffs_calc_tags_eccâ defined but
not used [-Wunused-function]
mkyaffsimage.c:183:13: warning: âyaffs_load_tags_to_spareâ defined
but not used [-Wunused-function]
mkyaffsimage.c:203:13: warning: âlittle_to_big_endianâ defined but
not used [-Wunused-function]
mkyaffsimage.c: In function âprocess_directoryâ:
mkyaffsimage.c:420:16: warning: ignoring return value of
âreadlinkâ, declared with attribute warn_unused_result
[-Wunused-result]
make: *** [mkyaffsimage.o] Error 1
vagrant@precise-yaffs:~/kernel/yaffs2/utils$ less log
vagrant@precise-yaffs:~/kernel/yaffs2/utils$ make &> log
vagrant@precise-yaffs:~/kernel/yaffs2/utils$ less log
vagrant@precise-yaffs:~/kernel/yaffs2/utils$ make clean
rm -f yaffs_hweight.o yaffs_ecc.o mkyaffsimage.o mkyaffs2image.o
yaffs_packedtags2.o yaffs_packedtags2.c yaffs_ecc.c yaffs_ecc.h
yaffs_guts.h yaffs_packedtags2.h yaffs_trace.h yaffs_hweight.c
yportenv.h yaffs_hweight.h yaffs_list.h mkyaffsimage mkyaffs2image
core
vagrant@precise-yaffs:~/kernel/yaffs2/utils$ make &> log
vagrant@precise-yaffs:~/kernel/yaffs2/utils$ less log
mkyaffsimage.c:120:19: error: expected expression before â)â token
mkyaffsimage.c: At top level:
mkyaffsimage.c:132:1: error: unknown type name âu8â
mkyaffsimage.c: In function âyaffs_calc_eccâ:
mkyaffsimage.c:134:2: warning: passing argument 1 of
âyaffs_ecc_calcâ from incompatible pointer type [enabled by
default]
yaffs_ecc.h:35:6: note: expected âconst unsigned char *â but
argument is of type âconst int *â
mkyaffsimage.c:134:2: warning: passing argument 2 of
âyaffs_ecc_calcâ from incompatible pointer type [enabled by
default]
yaffs_ecc.h:35:6: note: expected âunsigned char *â but argument is
of type âint *â
mkyaffsimage.c:135:2: warning: passing argument 1 of
âyaffs_ecc_calcâ from incompatible pointer type [enabled by
default]
yaffs_ecc.h:35:6: note: expected âconst unsigned char *â but
argument is of type âconst int *â
mkyaffsimage.c:135:2: warning: passing argument 2 of
âyaffs_ecc_calcâ from incompatible pointer type [enabled by
default]
yaffs_ecc.h:35:6: note: expected âunsigned char *â but argument is
of type âint *â
mkyaffsimage.c: In function âyaffs_calc_tags_eccâ:
mkyaffsimage.c:141:21: warning: initialization from incompatible
pointer type [enabled by default]
mkyaffsimage.c: At top level:
mkyaffsimage.c:230:24: error: unknown type name âu8â
mkyaffsimage.c:230:34: error: unknown type name âu32â
mkyaffsimage.c:230:46: error: unknown type name âu32â
mkyaffsimage.c:230:60: error: unknown type name âu32â
mkyaffsimage.c: In function âwrite_object_headerâ:
mkyaffsimage.c:308:2: error: unknown type name âu8â
mkyaffsimage.c:354:2: warning: implicit declaration of function
âwrite_chunkâ [-Wimplicit-function-declaration]
mkyaffsimage.c:354:2: warning: nested extern declaration of
âwrite_chunkâ [-Wnested-externs]
mkyaffsimage.c: In function âprocess_directoryâ:
mkyaffsimage.c:434:9: error: unknown type name âu8â
mkyaffsimage.c: At top level:
mkyaffsimage.c:115:12: warning: âyaffs_calc_name_sumâ defined but
not used [-Wunused-function]
mkyaffsimage.c:132:13: warning: âyaffs_calc_eccâ defined but not
used [-Wunused-function]
mkyaffsimage.c:138:13: warning: âyaffs_calc_tags_eccâ defined but
not used [-Wunused-function]
mkyaffsimage.c:183:13: warning: âyaffs_load_tags_to_spareâ defined
but not used [-Wunused-function]
mkyaffsimage.c:203:13: warning: âlittle_to_big_endianâ defined but
not used [-Wunused-function]
mkyaffsimage.c: In function âprocess_directoryâ:
mkyaffsimage.c:420:16: warning: ignoring return value of
âreadlinkâ, declared with attribute warn_unused_result
[-Wunused-result]
make: *** [mkyaffsimage.o] Error 1
Ziemowit
--
Pozdrawiam / Best regards
Ziemowit Podwysocki
Junior Software Engineer
Mobile: +48 798 984 706
ziemowit.podwysocki@globallogic.com
GlobalLogic S.A.
Ul. Strzegomska 46b
53-611 Wrocław
NIP: PL8942924978