This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Files missing and parse errors - toolchain?


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) --------------------------------------------------------------------------------------------------------------------------------------------

Attachment: error.txt
Description: Text document

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]