make errors during cygwin cross build

RakeshN rakeshn@kpit.com
Mon Sep 11 02:47:00 GMT 2000


I am building a cross coompiler for windows on linux.

I have put the sources in /usr/local/src.

Then i do 

cd ..
mkdir linux-x-cygwin32
cd linux-x-cygwin32.

Then i configure as 

../src/configure --target=i386-cygwin32 . 

After this ....

I issued the make command as

make

The make gave me an error in arscan.c. This file is in /usr/local/src/make/arscan.c.

The error is ....

conflicts:  2 shift/reduce
../../src/make/arscan.c:444: warning: preprocessing directive not recognized within macro arg
../../src/make/arscan.c:444: warning: preprocessing directive not recognized within macro arg
../../src/make/arscan.c:444: warning: preprocessing directive not recognized within macro arg
../../src/make/arscan.c: In function `ar_name_equal':
../../src/make/arscan.c:439: undefined or invalid # directive
../../src/make/arscan.c:441: undefined or invalid # directive
../../src/make/arscan.c:442: parse error before `2'
../../src/make/arscan.c:443: undefined or invalid # directive
../../src/make/arscan.c:444: parse error before `#'
../../src/make/arscan.c:444: `cray' undeclared (first use in this function)
../../src/make/arscan.c:444: (Each undeclared identifier is reported only once
../../src/make/arscan.c:444: for each function it appears in.)
../../src/make/arscan.c:444: parse error before `1'
../../src/make/arscan.c:444: parse error before `#'
../../src/make/arscan.c:444: parse error before `1'
../../src/make/arscan.c:444: parse error before `)'
../../src/make/arscan.c:444: `__s1_len' undeclared (first use in this function)
../../src/make/arscan.c:444: `__s2_len' undeclared (first use in this function)
../../src/make/arscan.c:444: parse error before `)'
../../src/make/arscan.c: At top level:
../../src/make/arscan.c:448: parse error before `&&'
../../src/make/arscan.c:448: warning: data definition has no type or storage class
../../src/make/arscan.c:448: parse error before `}'
../../src/make/arscan.c:448: conflicting declarations of `__result'
../../src/make/arscan.c:448: `__result' previously declared here
../../src/make/arscan.c:448: `name' undeclared here (not in a function)
../../src/make/arscan.c:448: `__s2' undeclared here (not in a function)
../../src/make/arscan.c:448: initializer element is not constant
../../src/make/arscan.c:448: parse error before `if'
../../src/make/arscan.c:448: conflicting declarations of `__result'
../../src/make/arscan.c:448: `__result' previously defined here
../../src/make/arscan.c:448: warning: data definition has no type or storage class
../../src/make/arscan.c:448: parse error before `}'
../../src/make/arscan.c:448: warning: data definition has no type or storage class
../../src/make/arscan.c:448: parse error before `}'
../../src/make/arscan.c:448: redefinition of `__result'
../../src/make/arscan.c:448: `__result' previously defined here
../../src/make/arscan.c:448: `__s1' undeclared here (not in a function)
../../src/make/arscan.c:448: `mem' undeclared here (not in a function)
../../src/make/arscan.c:448: initializer element is not constant
../../src/make/arscan.c:448: parse error before `if'
../../src/make/arscan.c:448: conflicting declarations of `__result'
../../src/make/arscan.c:448: `__result' previously defined here
../../src/make/arscan.c:448: warning: data definition has no type or storage class
../../src/make/arscan.c:448: parse error before `}'
make[1]: *** [arscan.o] Error 1
make: *** [all-make] Error 2


I am also attaching the file arscan.c. 

Can anyone please guide me on this....



 

Thanks

-------------- next part --------------
A non-text attachment was scrubbed...
Name: arscan.c
Type: text/x-c
Size: 13597 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20000911/aa8d2d50/attachment.bin>


More information about the crossgcc mailing list