Chris Lattner wrote:> LLVM Compiler Infrastructure -- Release 1.3 > http://llvm.cs.uiuc.edu > >We are pleased to announce the release of version 1.3 of the LLVM >Compiler Infrastructure. > > >Great news, thanks. However, I wonder if someone supplies pre-built cfrontend binaries for cygwin? I followed the instructions and tried to build them myself but get gcc -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-p rototypes -pedantic -Wno-long-long -fno-common -Wno-error -DHAVE_CONFIG_H -I . -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include \ -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"3.4-llvm \" -DDEFAULT_TARGET_MACHINE=\"i686-pc-cygwin\" -DSTANDARD_BINDIR_PREFIX=\"/bin/\ " -DTOOLDIR_BASE_PREFIX=\"../../../../\" `test "X${SHLIB_LINK}" = "X" || test " no" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \ -c ../../src/gcc/gcc.c -o gcc.o) ../../src/gcc/gcc.c:942: warning: string length `529' is greater than the length `509' ISO C89 compilers are required to support ../../src/gcc/gcc.c:960: warning: string length `608' is greater than the length `509' ISO C89 compilers are required to support ../../src/gcc/gcc.c:1544: warning: string length `695' is greater than the lengt h `509' ISO C89 compilers are required to support ../../src/gcc/gcc.c: In function `process_command': ../../src/gcc/gcc.c:3694: error: assignment of read-only location ../../src/gcc/gcc.c:3696: error: assignment of read-only location make[1]: *** [gcc.o] Error 1 make[1]: Leaving directory `/usr/pd/llvm/cfrontend/build/gcc' make: *** [all-gcc] Error 2 when building the cfrontend. Any ideas? This is on a Windows XP Pro SP1 machine running a recently updated cygwin with $ gcc --version gcc (GCC) 3.3.3 (cygwin special) Regards, Robert Feldt -- Robert Feldt robert.feldt at htu.se tel: +46-520-475072, mob:+46-733-580580 Ass Prof, Phd, Senior Lecturer of SW Engineering Dept. of Informatics and Mathematics, HTU P.O. Box 957, SE-461 29 Trollhättan, SWEDEN
On Sun, 15 Aug 2004, Robert Feldt wrote:> However, I wonder if someone supplies pre-built cfrontend binaries for > cygwin?Nope, we don't have one yet, sorry.> I followed the instructions and tried to build them myself but get > when building the cfrontend. Any ideas?That is really wierd. Looking at that line of gcc.c, I have no idea how it ever worked. In any case, this patch should help things: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040809/017143.html -Chris -- http://llvm.org/ http://nondot.org/sabre/
Chris Lattner wrote:>On Sun, 15 Aug 2004, Robert Feldt wrote: > > > >>However, I wonder if someone supplies pre-built cfrontend binaries for >>cygwin? >> >> > >Nope, we don't have one yet, sorry. > > > >>I followed the instructions and tried to build them myself but get >>when building the cfrontend. Any ideas? >> >> > >That is really wierd. Looking at that line of gcc.c, I have no idea how >it ever worked. In any case, this patch should help things: > >http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040809/017143.html > > >Thanks, now I can compile llvm-gcc without problems. However, when I go back to rebuild llvm, reconfigure, setting the CFEINSTALL dir, then make it can build the tools ok but not the runtime: make[1]: Entering directory `/usr/pd/llvm/llvm/runtime' make[2]: Entering directory `/usr/pd/llvm/llvm/runtime/GCCLibraries' make[3]: Entering directory `/usr/pd/llvm/llvm/runtime/GCCLibraries/crtend' Compiling crtend.c to bytecode Files/ATI: not found make[3]: *** [/usr/pd/llvm/llvm/runtime/GCCLibraries/crtend/BytecodeObj/crtend.b c] Error 127 make[3]: Leaving directory `/usr/pd/llvm/llvm/runtime/GCCLibraries/crtend' make[2]: *** [crtend/.makeall] Error 2 make[2]: Leaving directory `/usr/pd/llvm/llvm/runtime/GCCLibraries' make[1]: *** [GCCLibraries/.makeall] Error 2 make[1]: Leaving directory `/usr/pd/llvm/llvm/runtime' make: *** [all] Error 1 I don't understand the error message since I see no reference to Files/ATI. Any clues? Regards, Robert