This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

make errors during cygwin cross build


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

arscan.c

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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