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


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

binutils for arm-wince-pe build broken on cygwin?


Hi guys!

I stumbled on a problem while trying to build a binutils snapshot from 20050202 + a few patches for arm-wince-pe target on a cygwin host.
I looked around and could not find the solution.
So I downloaded the snapshot from 20060331 (today), and tried to build it pristine, but the problem persists.
I am guessing it has something to do with incorrect line ending format handling.
Can anyone give me a hint?


---------
Symptoms:

gcc -DHAVE_CONFIG_H -I. -I/cygdrive/d/gcc/binutils-060331/ld -I. -D_GNU_SOURCE -I. -I/cygdrive/d/gcc/binutils-060331/ld
-I../bfd -I/cygdrive/d/gcc/binutils-060331/ld/../bfd -I/cygdrive/d/gcc/binutils-060331/ld/../include -I/cygdrive/d/gcc/b
inutils-060331/ld/../intl -I../intl -g -O2 -DLOCALEDIR="\"/cygdrive/d/gcc/wince/share/locale\"" -W -Wall -Wstrict-pr
ototypes -Wmissing-prototypes -Werror -g -O2 -c earmpe.c
earmpe.c: In function `gld_armpe_get_script':
earmpe.c:1774: error: missing terminating " character
earmpe.c:1776: error: stray '\' in program
earmpe.c:1776: warning: implicit declaration of function `nOUTPUT_FORMAT'
earmpe.c:1776: error: `arm' undeclared (first use in this function)
earmpe.c:1776: error: (Each undeclared identifier is reported only once
earmpe.c:1776: error: for each function it appears in.)
earmpe.c:1776: error: `little' undeclared (first use in this function)
earmpe.c:1778: error: stray '\' in program
earmpe.c:1778: error: parse error before "n"
earmpe.c:1772: warning: empty body in an if-statement
earmpe.c:1780: error: stray '\' in program
earmpe.c:1780: error: `n' undeclared (first use in this function)
earmpe.c:1782: error: stray '\' in program
earmpe.c:1782: error: stray '\' in program
earmpe.c:1782: error: missing terminating " character
earmpe.c:1784: error: stray '\' in program
earmpe.c:1786: error: stray '\' in program
earmpe.c:1788: error: stray '\' in program
<snip lots of same>


earmpe.c around line 1774 looks like:


if (link_info.relocatable && config.build_constructors) return "/* Script for ld -Ur: link w/out relocation, do create constructors */\n\

\n\
OUTPUT_FORMAT(pe-arm-little)
\n\

\n\

\n\
SEARCH_DIR(\"/cygdrive/d/gcc/wince/arm-wince-pe/lib\");
\n\
<snip>
---------------------------------
Notice the extra empty lines without a continuation escape. Looking at a tree I have build a few months ago, I see that
those empty newlines should not be there.
I think earmpe.c is build from pe.em by genscripts.sh.


$ gcc -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --lib
dir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,
java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --d
isable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=b
oehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug : (reconfi
gured)
Thread model: posix
gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)


Cygwin was installed through setup.exe utility from today.

Cheers,
Pedro Alves


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