From: Surinder <satluj@runbox.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] build error probably due to include file paths problem
Date: Mon, 05 Dec 2005 22:05:08 +0530 [thread overview]
Message-ID: <43946C3C.8080200@runbox.com> (raw)
Hi,
I downloaded u-boot-1.1.3.tar from and untarred as
u-boot-1.1.3
sh-3.00$ uname -a
Linux linux 2.6.13-15-default #1 Tue Sep 13 14:56:15 UTC 2005 i686 i686
i386 GNU/Linux
sh-3.00$ cat /etc/issue
Welcome to SUSE LINUX 10.0 (i586) - Kernel \r (\l).
# echo $PATH
/export/em/gnuarm/gnuarm-3.4.3/libexec/gcc/arm-elf/3.4.3:/export/em/gnuarm/gnuarm-3.4.3/arm-elf/bin:/export/em/gnuarm/gnuarm-3.4.3/bin:/home/surinder/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
I got the gnuarm from gnuarm.org
# arm-elf-gcc -v
Reading specs from
/export/em/gnuarm/gnuarm-3.4.3/bin/../lib/gcc/arm-elf/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --target=arm-elf
--prefix=/srv/shared/gnuarm/gnuarm-3.4.3 --enable-interwork
--enable-multilib --with-newlib
--with-headers=../newlib-1.12.0/newlib/libc/include
--enable-languages=c,c++,java --disable-libgcj
Thread model: single
gcc version 3.4.3
# arm-elf-gcc -dumpmachine
arm-elf
changed the CROSS_COMPILE in file u-boot-1.1.3/Makefile
CROSS_COMPILE = arm-elf-
# make distclean
# make omap5912osk_config
Configuring for omap5912osk board...
# make ( it gives a lot of short-load-bytes errors )
cc1: error: invalid option `short-load-bytes'
in README I saw using 'make all' too so tried that
It appears to be unable to find some header files but I could not
figure out the best way to specify that.
I was looking for some INCLUDES kind of variable.
# make all
sh-3.00$ make all
make[1]: Entering directory `/export/em/u-boot/u-boot-1.1.3/tools'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/export/em/u-boot/u-boot-1.1.3/tools'
make[1]: Entering directory `/export/em/u-boot/u-boot-1.1.3/examples'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/export/em/u-boot/u-boot-1.1.3/examples'
make[1]: Entering directory `/export/em/u-boot/u-boot-1.1.3/post'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/export/em/u-boot/u-boot-1.1.3/post'
make[1]: Entering directory `/export/em/u-boot/u-boot-1.1.3/post/cpu'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/export/em/u-boot/u-boot-1.1.3/post/cpu'
make -C tools all
make[1]: Entering directory `/export/em/u-boot/u-boot-1.1.3/tools'
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x11080000
-DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
img2srec.c:55:20: stddef.h: No such file or directory
img2srec.c:56:19: stdio.h: No such file or directory
img2srec.c:57:20: stdlib.h: No such file or directory
img2srec.c:58:19: ctype.h: No such file or directory
img2srec.c:59:20: string.h: No such file or directory
In file included from img2srec.c:60:
../include/elf.h:58: error: parse error before "Elf32_Addr"
../include/elf.h:58: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:59: error: parse error before "Elf32_Off"
../include/elf.h:59: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:60: error: parse error before "Elf32_Sword"
../include/elf.h:60: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:61: error: parse error before "Elf32_Word"
../include/elf.h:61: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:62: error: parse error before "Elf32_Half"
../include/elf.h:62: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:123: error: parse error before "Elf32_Half"
../include/elf.h:124: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:125: error: parse error before "e_version"
../include/elf.h:125: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:126: error: parse error before "e_entry"
../include/elf.h:126: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:127: error: parse error before "e_phoff"
../include/elf.h:127: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:128: error: parse error before "e_shoff"
../include/elf.h:128: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:129: error: parse error before "e_flags"
../include/elf.h:129: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:130: error: parse error before "e_ehsize"
../include/elf.h:130: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:131: error: parse error before "e_phentsize"
../include/elf.h:131: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:132: error: parse error before "e_phnum"
../include/elf.h:132: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:133: error: parse error before "e_shentsize"
../include/elf.h:133: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:134: error: parse error before "e_shnum"
../include/elf.h:134: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:135: error: parse error before "e_shstrndx"
../include/elf.h:135: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:137: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:243: error: parse error before "Elf32_Word"
../include/elf.h:245: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:246: error: parse error before "sh_flags"
../include/elf.h:246: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:247: error: parse error before "sh_addr"
../include/elf.h:247: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:248: error: parse error before "sh_offset"
../include/elf.h:248: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:249: error: parse error before "sh_size"
../include/elf.h:249: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:250: error: parse error before "sh_link"
../include/elf.h:250: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:251: error: parse error before "sh_info"
../include/elf.h:251: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:252: error: parse error before "sh_addralign"
../include/elf.h:252: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:253: error: parse error before "sh_entsize"
../include/elf.h:253: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:254: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:353: error: parse error before "Elf32_Word"
../include/elf.h:354: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:355: error: parse error before "st_size"
../include/elf.h:355: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:358: error: parse error before "st_shndx"
../include/elf.h:358: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:359: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:403: error: parse error before "Elf32_Addr"
../include/elf.h:404: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:405: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:410: error: parse error before "Elf32_Addr"
../include/elf.h:411: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:412: error: parse error before "r_addend"
../include/elf.h:412: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:413: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:422: error: parse error before "Elf32_Word"
../include/elf.h:423: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:424: error: parse error before "p_vaddr"
../include/elf.h:424: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:425: error: parse error before "p_paddr"
../include/elf.h:425: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:426: error: parse error before "p_filesz"
../include/elf.h:426: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:427: error: parse error before "p_memsz"
../include/elf.h:427: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:428: error: parse error before "p_flags"
../include/elf.h:428: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:429: error: parse error before "p_align"
../include/elf.h:429: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:430: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:457: error: parse error before "Elf32_Sword"
../include/elf.h:460: error: parse error before "Elf32_Word"
../include/elf.h:461: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:462: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:463: error: parse error before '}' token
../include/elf.h:463: error: ISO C forbids data definition with no type
or storage class
../include/elf.h:465: error: parse error before "_DYNAMIC"
../include/elf.h:465: error: ISO C forbids data definition with no type
or storage class
img2srec.c:61:20: unistd.h: No such file or directory
img2srec.c:62:19: errno.h: No such file or directory
img2srec.c:81: error: parse error before "CHAR"
img2srec.c:81: warning: type defaults to `int' in declaration of `CHAR'
img2srec.c:81: error: ISO C forbids data definition with no type or
storage class
img2srec.c:82: error: parse error before "BYTE"
img2srec.c:82: warning: type defaults to `int' in declaration of `BYTE'
img2srec.c:82: error: ISO C forbids data definition with no type or
storage class
img2srec.c:83: error: parse error before "WORD"
img2srec.c:83: warning: type defaults to `int' in declaration of `WORD'
img2srec.c:83: error: ISO C forbids data definition with no type or
storage class
img2srec.c:84: error: parse error before "DWORD"
img2srec.c:84: warning: type defaults to `int' in declaration of `DWORD'
img2srec.c:84: error: ISO C forbids data definition with no type or
storage class
img2srec.c:95: error: parse error before '*' token
img2srec.c:96: error: parse error before '*' token
img2srec.c:97: error: parse error before '*' token
img2srec.c:98: error: parse error before '*' token
img2srec.c:98: error: parse error before '*' token
img2srec.c:98: warning: type defaults to `int' in declaration of
`ExtractWord'
img2srec.c:98: error: ISO C forbids data definition with no type or
storage class
img2srec.c:99: error: parse error before '*' token
img2srec.c:99: error: parse error before '*' token
img2srec.c:99: warning: type defaults to `int' in declaration of
`ExtractLong'
img2srec.c:99: error: ISO C forbids data definition with no type or
storage class
img2srec.c:100: error: parse error before '*' token
img2srec.c:100: error: parse error before "count"
img2srec.c:100: warning: type defaults to `int' in declaration of
`ExtractBlock'img2srec.c:100: error: ISO C forbids data definition with
no type or storage class
img2srec.c:101: error: parse error before "BYTE"
img2srec.c:102: error: parse error before "WORD"
img2srec.c:104: error: parse error before "DWORD"
img2srec.c:111: error: parse error before '*' token
img2srec.c: In function `ExtractHex':
img2srec.c:113: error: parse error before "num"
img2srec.c:117: error: `getPtr' undeclared (first use in this function)
img2srec.c:117: error: (Each undeclared identifier is reported only once
img2srec.c:117: error: for each function it appears in.)
img2srec.c:118: error: `num' undeclared (first use in this function)
img2srec.c:120: error: `c' undeclared (first use in this function)
img2srec.c:121: error: `digit' undeclared (first use in this function)
img2srec.c:121: error: called object is not a function
img2srec.c:122: error: called object is not a function
img2srec.c:123: error: called object is not a function
img2srec.c:129: error: `value' undeclared (first use in this function)
img2srec.c: At top level:
img2srec.c:133: error: parse error before '*' token
img2srec.c: In function `ExtractDecimal':
img2srec.c:135: error: parse error before "num"
img2srec.c:139: error: `getPtr' undeclared (first use in this function)
img2srec.c:140: error: `num' undeclared (first use in this function)
img2srec.c:142: error: `c' undeclared (first use in this function)
img2srec.c:143: error: `digit' undeclared (first use in this function)
img2srec.c:143: error: called object is not a function
img2srec.c:149: error: `value' undeclared (first use in this function)
img2srec.c: At top level:
img2srec.c:154: error: parse error before '*' token
img2srec.c: In function `ExtractNumber':
img2srec.c:158: error: `getPtr' undeclared (first use in this function)
img2srec.c:165: error: `value' undeclared (first use in this function)
img2srec.c: At top level:
img2srec.c:174: error: parse error before '*' token
img2srec.c:174: error: parse error before '*' token
img2srec.c:175: warning: return type defaults to `int'
img2srec.c: In function `ExtractWord':
img2srec.c:176: error: parse error before "x"
img2srec.c:177: error: `x' undeclared (first use in this function)
img2srec.c:177: error: `buffer' undeclared (first use in this function)
img2srec.c:179: error: `value' undeclared (first use in this function)
img2srec.c: At top level:
img2srec.c:184: error: parse error before '*' token
img2srec.c:184: error: parse error before '*' token
img2srec.c:185: warning: return type defaults to `int'
img2srec.c: In function `ExtractLong':
img2srec.c:186: error: parse error before "x"
img2srec.c:187: error: `x' undeclared (first use in this function)
img2srec.c:187: error: `buffer' undeclared (first use in this function)
img2srec.c:191: error: `value' undeclared (first use in this function)
img2srec.c: At top level:
img2srec.c:196: error: parse error before '*' token
img2srec.c:196: error: parse error before "count"
img2srec.c:197: warning: return type defaults to `int'
img2srec.c: In function `ExtractBlock':
img2srec.c:198: error: `count' undeclared (first use in this function)
img2srec.c:198: error: `data' undeclared (first use in this function)
img2srec.c:198: error: `buffer' undeclared (first use in this function)
img2srec.c: At top level:
img2srec.c:203: error: parse error before "BYTE"
img2srec.c: In function `WriteHex':
img2srec.c:205: error: parse error before "temp"
img2srec.c:209: error: `pCheckSum' undeclared (first use in this function)
img2srec.c:209: error: `value' undeclared (first use in this function)
img2srec.c:210: error: `temp' undeclared (first use in this function)
img2srec.c:211: error: `pa' undeclared (first use in this function)
img2srec.c: At top level:
img2srec.c:218: error: parse error before "WORD"
img2srec.c: In function `BuildSRecord':
img2srec.c:221: error: parse error before "addrLen"
img2srec.c:226: error: `sType' undeclared (first use in this function)
img2srec.c:230: error: `addrLen' undeclared (first use in this function)
img2srec.c:241: error: `pa' undeclared (first use in this function)
img2srec.c:246: error: `sRLen' undeclared (first use in this function)
img2srec.c:246: error: `nCount' undeclared (first use in this function)
img2srec.c:247: error: `checkSum' undeclared (first use in this function)
img2srec.c:248: error: parse error before "sRLen"
img2srec.c:251: error: `i' undeclared (first use in this function)
img2srec.c:252: error: `addr' undeclared (first use in this function)
img2srec.c:252: error: called object is not a function
img2srec.c:257: error: `data' undeclared (first use in this function)
img2srec.c:262: error: parse error before "checkSum"
img2srec.c: At top level:
img2srec.c:268: error: parse error before "DWORD"
img2srec.c: In function `ConvertELF':
img2srec.c:270: error: `FILE' undeclared (first use in this function)
img2srec.c:270: error: `file' undeclared (first use in this function)
img2srec.c:271: warning: ISO C90 forbids mixed declarations and code
img2srec.c:273: error: parse error before "rxBlock"
img2srec.c:280: error: `getPtr' undeclared (first use in this function)
img2srec.c:281: warning: ISO C90 forbids mixed declarations and code
img2srec.c:286: warning: implicit declaration of function `fopen'
img2srec.c:286: error: `fileName' undeclared (first use in this function)
img2srec.c:286: error: `NULL' undeclared (first use in this function)
img2srec.c:287: warning: implicit declaration of function `fprintf'
img2srec.c:287: error: `stderr' undeclared (first use in this function)
img2srec.c:287: warning: implicit declaration of function `strerror'
img2srec.c:287: warning: format argument is not a pointer (arg 4)
img2srec.c:292: warning: implicit declaration of function `fread'
img2srec.c:292: error: `rxBlock' undeclared (first use in this function)
img2srec.c:292: error: `elfHeader' undeclared (first use in this function)
img2srec.c:296: error: parse error before ')' token
img2srec.c:297: error: parse error before ')' token
img2srec.c:298: error: parse error before ')' token
img2srec.c:299: error: parse error before ')' token
img2srec.c:300: error: parse error before ')' token
img2srec.c:314: warning: implicit declaration of function `fclose'
img2srec.c:320: warning: implicit declaration of function `fseek'
img2srec.c:320: error: `SEEK_SET' undeclared (first use in this function)
img2srec.c:322: error: `sectHeader' undeclared (first use in this function)
img2srec.c:323: error: parse error before ')' token
img2srec.c:324: error: parse error before ')' token
img2srec.c:325: error: parse error before ')' token
img2srec.c:326: error: parse error before ')' token
img2srec.c:327: error: parse error before ')' token
img2srec.c:328: error: parse error before ')' token
img2srec.c:329: error: parse error before ')' token
img2srec.c:330: error: parse error before ')' token
img2srec.c:331: error: parse error before ')' token
img2srec.c:332: error: parse error before ')' token
img2srec.c:340: warning: implicit declaration of function `strrchr'
img2srec.c:346: error: parse error before ')' token
img2srec.c:347: warning: implicit declaration of function `printf'
img2srec.c:350: error: `firstAddr' undeclared (first use in this function)
img2srec.c:351: error: `loadAddr' undeclared (first use in this function)
img2srec.c:356: error: `loadSize' undeclared (first use in this function)
img2srec.c:359: error: `loadDiff' undeclared (first use in this function)
img2srec.c:378: error: `loadOffset' undeclared (first use in this function)
img2srec.c: In function `main':
img2srec.c:399: error: parse error before "offset"
img2srec.c:404: warning: implicit declaration of function `strcmp'
img2srec.c:405: error: `offset' undeclared (first use in this function)
img2srec.c:409: error: `stderr' undeclared (first use in this function)
img2srec.c: At top level:
../include/elf.h:465: warning: array '_DYNAMIC' assumed to have one element
make[1]: *** [img2srec.o] Error 1
make[1]: Leaving directory `/export/em/u-boot/u-boot-1.1.3/tools'
make: *** [tools] Error 2
sh-3.00$
next reply other threads:[~2005-12-05 16:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-05 16:35 Surinder [this message]
2005-12-05 17:20 ` [U-Boot-Users] build error probably due to include file paths problem Anders Larsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43946C3C.8080200@runbox.com \
--to=satluj@runbox.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.