Files missing and parse errors - toolchain?

Rowan Potgieter baldo.forum@gmail.com
Mon Aug 14 08:04:00 GMT 2006


Hi guys

I'm having a hard time when running make for my kernel.
I've saved the entire problem in a text file attached because theres
quite alot, loads of parse errors and undeclared functions. I'm almost
certain that this is related to my toolchain or gcc version I'll paste
a bit of the error below but you can check the txt file for more
details.

make[2]: Entering directory
`/home/satvika/stareast/snapgear/snapgear/lib/libnet'
arm-linux-gcc -mbig-endian -O2  -fno-builtin -DEMBED -nostdinc
-I/home/satvika/stareast/snapgear/snapgear/lib/glibc/build/include
-I/home/satvika/stareast/snapgear/snapgear -Dlinux -D__linux__ -Dunix
-I/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include
-idirafter /opt/crosstool/gcc-3.4.4-glibc-2.3.3/armeb-linux/lib/gcc/armeb-linux/3.4.4//include
-DL_openraw -o openraw.o -c net.c
net.c:12:19: stdio.h: No such file or directory
net.c:13:20: unistd.h: No such file or directory
net.c:14:20: stdlib.h: No such file or directory
net.c:15:22: sys/stat.h: No such file or directory
net.c:16:23: sys/types.h: No such file or directory
net.c:17:22: sys/wait.h: No such file or directory
net.c:18:22: sys/time.h: No such file or directory
net.c:19:20: dirent.h: No such file or directory
net.c:20:19: errno.h: No such file or directory
net.c:21:21: termios.h: No such file or directory
net.c:22:20: string.h: No such file or directory
net.c:23:23: sys/ioctl.h: No such file or directory
net.c:25:19: fcntl.h: No such file or directory
net.c:34:24: sys/socket.h: No such file or directory
In file included from
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:28,
                 from net.c:35:

..........tons of errors here................

net.c:36:20: net/if.h: No such file or directory
net.c:39:24: netinet/in.h: No such file or directory
net.c:40:23: arpa/inet.h: No such file or directory
net.c:42:20: signal.h: No such file or directory
net.c: In function `open_raw_socket':
net.c:65: error: `SOCK_DGRAM' undeclared (first use in this function)
net.c:65: error: `IPPROTO_IP' undeclared (first use in this function)
make[2]: *** [libnet.a(openraw.o)] Error 1
make[2]: Leaving directory `/home/satvika/stareast/snapgear/snapgear/lib/libnet'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/satvika/stareast/snapgear/snapgear/lib'
make: *** [subdirs] Error 1

and thats it.  has anybody had similar problems or know what this is
related to? Thanks guys


-- 
--------------------------------------------------------------------------------------------------------------------------------------------
 When you say 'I wrote a program that crashed Windows', people just
stare at you blankly and say 'Hey, I got those with the system, *for
free*'. (L. Torvalds)
--------------------------------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
make[2]: Entering directory `/home/satvika/stareast/snapgear/snapgear/lib/libnet'
arm-linux-gcc -mbig-endian -O2  -fno-builtin -DEMBED -nostdinc -I/home/satvika/stareast/snapgear/snapgear/lib/glibc/build/include -I/home/satvika/stareast/snapgear/snapgear -Dlinux -D__linux__ -Dunix -I/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include -idirafter /opt/crosstool/gcc-3.4.4-glibc-2.3.3/armeb-linux/lib/gcc/armeb-linux/3.4.4//include -DL_openraw -o openraw.o -c net.c
net.c:12:19: stdio.h: No such file or directory
net.c:13:20: unistd.h: No such file or directory
net.c:14:20: stdlib.h: No such file or directory
net.c:15:22: sys/stat.h: No such file or directory
net.c:16:23: sys/types.h: No such file or directory
net.c:17:22: sys/wait.h: No such file or directory
net.c:18:22: sys/time.h: No such file or directory
net.c:19:20: dirent.h: No such file or directory
net.c:20:19: errno.h: No such file or directory
net.c:21:21: termios.h: No such file or directory
net.c:22:20: string.h: No such file or directory
net.c:23:23: sys/ioctl.h: No such file or directory
net.c:25:19: fcntl.h: No such file or directory
net.c:34:24: sys/socket.h: No such file or directory
In file included from /home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:28,
                 from net.c:35:
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/dst.h:30: error: parse error before "atomic_t"
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/dst.h:30: warning: no semicolon at end of struct or union
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/dst.h:67: error: parse error before '}' token
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/dst.h:77: error: parse error before "__u32"
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/dst.h:85: error: parse error before "atomic_t"
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/dst.h:85: warning: no semicolon at end of struct or union
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/dst.h:86: warning: data definition has no type or storage class
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/dst.h:87: error: parse error before '}' token
In file included from /home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/linux/sched.h:14,
                 from /home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/inetpeer.h:14,
                 from /home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:29,
                 from net.c:35:
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/linux/timex.h:173: error: field `time' has incomplete type
In file included from /home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/linux/sched.h:18,
                 from /home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/inetpeer.h:14,
                 from /home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:29,
                 from net.c:35:
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/asm/semaphore.h:18: error: parse error before "wait_queue_head_t"
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/asm/semaphore.h:18: warning: no semicolon at end of struct or union
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/asm/semaphore.h: In function `sema_init':
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/asm/semaphore.h:47: error: dereferencing pointer to incomplete type
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/asm/semaphore.h:48: error: dereferencing pointer to incomplete type
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/asm/semaphore.h:49: error: dereferencing pointer to incomplete type
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/asm/semaphore.h: In function `sem_getcount':
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/asm/semaphore.h:130: error: dereferencing pointer to incomplete type
In file included from /home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:29,
                 from net.c:35:
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/inetpeer.h: In function `inet_putpeer':
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/inetpeer.h:49: error: `jiffies' undeclared (first use in this function)
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/inetpeer.h:49: error: (Each undeclared identifier is reported only once
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/inetpeer.h:49: error: for each function it appears in.)
In file included from net.c:35:
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:37:2: warning: #warning This file is not supposed to be used outside of kernel.
In file included from net.c:35:
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h: At top level:
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:66: error: field `dst' has incomplete type
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:125: error: parse error before "old_gw"
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:130: error: parse error before "u32"
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:135: error: parse error before "addr"
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:138: error: parse error before '*' token
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:139: warning: "struct netlink_callback" declared inside parameter list
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:139: warning: its scope is only this definition or declaration, which is probably not what you want
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:143: error: parse error before "u32"
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h: In function `ip_route_output':
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:145: error: `daddr' undeclared (first use in this function)
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:145: error: `saddr' undeclared (first use in this function)
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:145: error: `oif' undeclared (first use in this function)
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:145: error: `tos' undeclared (first use in this function)
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:147: error: `rp' undeclared (first use in this function)
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h: At top level:
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:161: error: parse error before "tos"
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h: In function `rt_tos2priority':
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:163: error: `tos' undeclared (first use in this function)
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h: At top level:
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:166: error: parse error before "u32"
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h: In function `ip_route_connect':
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:169: error: `rp' undeclared (first use in this function)
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:169: error: `dst' undeclared (first use in this function)
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:169: error: `src' undeclared (first use in this function)
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:169: error: `tos' undeclared (first use in this function)
/home/satvika/stareast/snapgear/snapgear/linux-2.4.x/include/net/route.h:169: error: `oif' undeclared (first use in this function)
net.c:36:20: net/if.h: No such file or directory
net.c:39:24: netinet/in.h: No such file or directory
net.c:40:23: arpa/inet.h: No such file or directory
net.c:42:20: signal.h: No such file or directory
net.c: In function `open_raw_socket':
net.c:65: error: `SOCK_DGRAM' undeclared (first use in this function)
net.c:65: error: `IPPROTO_IP' undeclared (first use in this function)
make[2]: *** [libnet.a(openraw.o)] Error 1
make[2]: Leaving directory `/home/satvika/stareast/snapgear/snapgear/lib/libnet'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/satvika/stareast/snapgear/snapgear/lib'
make: *** [subdirs] Error 1
 
-------------- next part --------------
--
For unsubscribe information see http://sourceware.org/lists.html#faq


More information about the crossgcc mailing list