[OLSR-users] Cross compiling issue with ARM cross compiler

Claudio Lavecchia (spam-protected)
Fri Jun 11 15:05:18 CEST 2004


Hello everybody,
 
I am still having the cross-compilation problem I exposed in my previous
mail.
 
I am trying to cross-compile the OLSR package for my iPaq. I updated my
toolchain to use the one in
<ftp://ftp.arm.linux.org.uk/pub/linux/arm/toolchain>
ftp://ftp.arm.linux.org.uk/pub/linux/arm/toolchain as suggested by Andreas.
 
I am compiling on Redhat Linux 7.3, linux kernel version 2.14.18-3
 
The errors seem to be due to something in toolchain header files conflicting
with something else, but I cannot understand how to fix the problem. 
 
At the end of the mail you'll find the compilation log.
 
I found other people reporting the same kind of problems in other mailing
lists, but no solutions.
 
I would be really glad if someone could point me to the solution of give me
a hint of what's happening, as this problem is actually slowing down the
development of my project.
 
Thank you very much...
 
Claudio
 
-----------------------COMPILATION STACK TRACE
--------------------------------------------------------
 
[(spam-protected) unik-olsrd-0.4.3]# make
CC=/usr/local/arm/arm-linux/bin/gcc
/usr/local/arm/arm-linux/bin/gcc -Wall -DDEBUG   -c -o src/interface.o
src/interface.c
In file included from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:28,
                 from src/defs.h:28,
                 from src/interface.c:23:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/dst.h:3
0: parse error before "atomic_t"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/dst.h:6
7: parse error before '}' token
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/dst.h:7
7: parse error before "__u32"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/dst.h:8
5: parse error before "atomic_t"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/dst.h:8
7: parse error before '}' token
In file included from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/sched
.h:13,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/inetpee
r.h:14,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:29,
                 from src/defs.h:28,
                 from src/interface.c:23:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/times
.h:5: parse error before "clock_t"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/times
.h:7: parse error before "tms_cutime"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/times
.h:8: parse error before "tms_cstime"
In file included from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/sched
.h:18,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/inetpee
r.h:14,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:29,
                 from src/defs.h:28,
                 from src/interface.c:23:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/asm/semapho
re.h:18: parse error before "wait_queue_head_t"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/asm/semapho
re.h: In function `sema_init':
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/asm/semapho
re.h:47: dereferencing pointer to incomplete type
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/asm/semapho
re.h:48: dereferencing pointer to incomplete type
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/asm/semapho
re.h:49: dereferencing pointer to incomplete type
In file included from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/signa
l.h:4,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/sched
.h:26,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/inetpee
r.h:14,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:29,
                 from src/defs.h:28,
                 from src/interface.c:23:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/asm/signal.
h: At top level:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/asm/signal.
h:27: conflicting types for `sigset_t'
/usr/local/arm/include/sys/select.h:38: previous declaration of `sigset_t'
In file included from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/signa
l.h:5,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/sched
.h:26,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/inetpee
r.h:14,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:29,
                 from src/defs.h:28,
                 from src/interface.c:23:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/asm/siginfo
.h:26: parse error before "pid_t"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/asm/siginfo
.h:38: parse error before "pid_t"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/asm/siginfo
.h:41: parse error before '}' token
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/asm/siginfo
.h:45: parse error before "pid_t"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/asm/siginfo
.h:48: parse error before "_utime"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/asm/siginfo
.h:49: parse error before "_stime"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/asm/siginfo
.h:62: parse error before '}' token
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/asm/siginfo
.h:63: parse error before '}' token
In file included from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/sched
.h:79,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/inetpee
r.h:14,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:29,
                 from src/defs.h:28,
                 from src/interface.c:23:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/time.
h:9: redefinition of `struct timespec'
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/time.
h:88: redefinition of `struct timeval'
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/time.
h:93: redefinition of `struct timezone'
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/time.
h:124: redefinition of `struct itimerval'
In file included from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/sched
.h:82,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/inetpee
r.h:14,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:29,
                 from src/defs.h:28,
                 from src/interface.c:23:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/timer
.h:17: field `list' has incomplete type
In file included from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:29,
                 from src/defs.h:28,
                 from src/interface.c:23:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/inetpee
r.h: In function `inet_putpeer':
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/inetpee
r.h:49: `jiffies' undeclared (first use in this function)
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/inetpee
r.h:49: (Each undeclared identifier is reported only once
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/inetpee
r.h:49: for each function it appears in.)
In file included from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/rtnet
link.h:4,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:31,
                 from src/defs.h:28,
                 from src/interface.c:23:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/netli
nk.h: At top level:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/netli
nk.h:20: parse error before "sa_family_t"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/netli
nk.h:24: parse error before '}' token
In file included from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/route
.h:26,
                 from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:32,
                 from src/defs.h:28,
                 from src/interface.c:23:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/if.h:
89: field `ifru_addr' has incomplete type
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/if.h:
90: field `ifru_dstaddr' has incomplete type
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/if.h:
91: field `ifru_broadaddr' has incomplete type
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/if.h:
92: field `ifru_netmask' has incomplete type
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/if.h:
93: field `ifru_hwaddr' has incomplete type
In file included from
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:32,
                 from src/defs.h:28,
                 from src/interface.c:23:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/route
.h:33: field `rt_dst' has incomplete type
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/route
.h:34: field `rt_gateway' has incomplete type
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/linux/route
.h:35: field `rt_genmask' has incomplete type
In file included from src/defs.h:28,
                 from src/interface.c:23:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:37:2: warning: #warning This file is not supposed to be used outside of
kernel.
In file included from src/defs.h:28,
                 from src/interface.c:23:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:66: field `dst' has incomplete type
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:119: parse error before "old_gw"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:124: parse error before "u32"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:129: parse error before "addr"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:132: parse error before '*' token
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:137: parse error before "u32"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
: In function `ip_route_output':
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:139: `daddr' undeclared (first use in this function)
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:139: `saddr' undeclared (first use in this function)
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:139: `oif' undeclared (first use in this function)
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:139: `tos' undeclared (first use in this function)
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:141: `rp' undeclared (first use in this function)
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
: At top level:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:155: parse error before "tos"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
: In function `rt_tos2priority':
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:157: `tos' undeclared (first use in this function)
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
: At top level:
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:160: parse error before "u32"
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
: In function `ip_route_connect':
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:163: `rp' undeclared (first use in this function)
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:163: `dst' undeclared (first use in this function)
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:163: `src' undeclared (first use in this function)
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:163: `tos' undeclared (first use in this function)
/usr/local/arm/arm-linux/lib/gcc-lib/../../arm-linux/sys-include/net/route.h
:163: `oif' undeclared (first use in this function)
In file included from src/defs.h:32,
                 from src/interface.c:23:
/usr/local/arm/include/stdlib.h: At top level:
/usr/local/arm/include/stdlib.h:485: unnamed fields of type other than
struct or union are not allowed
In file included from src/defs.h:36,
                 from src/interface.c:23:
/usr/local/arm/include/time.h:143: redefinition of `struct itimerspec'
In file included from src/defs.h:41,
                 from src/interface.c:23:
src/olsr_protocol.h:261: redefinition of `struct tcmsg'
In file included from src/interface.h:28,
                 from src/packet.h:28,
                 from src/hna_set.h:29,
                 from src/routing_table.h:26,
                 from src/process_routes.h:23,
                 from src/defs.h:42,
                 from src/interface.c:23:
/usr/local/arm/include/net/if.h:45: parse error before numeric constant
/usr/local/arm/include/net/if.h:111: redefinition of `struct ifmap'
/usr/local/arm/include/net/if.h:126: redefinition of `struct ifreq'
/usr/local/arm/include/net/if.h:176: redefinition of `struct ifconf'
In file included from src/process_routes.h:23,
                 from src/defs.h:42,
                 from src/interface.c:23:
src/routing_table.h:57: field `v6' has incomplete type
src/interface.c: In function `ifinit':
src/interface.c:83: `IFF_UP' undeclared (first use in this function)
src/interface.c:90: `IFF_BROADCAST' undeclared (first use in this function)
src/interface.c:96: `IFF_POINTOPOINT' undeclared (first use in this
function)
src/interface.c:103: `IFF_LOOPBACK' undeclared (first use in this function)
src/interface.c: In function `set_flag':
src/interface.c:379: `IFF_UP' undeclared (first use in this function)
src/interface.c:379: `IFF_RUNNING' undeclared (first use in this function)
make: *** [src/interface.o] Error 1
[(spam-protected) unik-olsrd-0.4.3]# 


 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20040611/a24430dc/attachment.html>


More information about the Olsr-users mailing list