[LLVMdev] Building Cygwin binaries

Chris Lattner sabre at nondot.org
Sat May 14 06:00:30 PDT 2005


On Sat, 14 May 2005, Aaron Gray wrote:

> I have got GCC 3.4.3 and binutils 2.15 installed on Cygwin.

> Had to copy as.exe to gccas.exe to get llvm-gcc to get this far.

This is the problem.  Don't do that :).  llvm-gcc produces .ll files which 
are 'assembled' by gccas.  These files won't be understood by the system 
assembler.  If you download the LLVM distro and build it, it should build 
a gccas.exe file for you.

-Chris

> I am getting the following error message(s) :-
>
> /usr/build/llvm-gcc/gcc/xgcc -B/usr/build/llvm-gcc/gcc/ 
> -B/usr/llvm-gcc/i686-pc-
> cygwin/bin/ -B/usr/llvm-gcc/i686-pc-cygwin/lib/ -isystem 
> /usr/llvm-gcc/i686-pc-c
> ygwin/include -isystem /usr/llvm-gcc/i686-pc-cygwin/sys-include -O2 
> -I../../../s
> rc/llvm-gcc/gcc/../winsup/w32api/include 
> -I../../../src/llvm-gcc/gcc/../winsup/i
> nclude -I../../../src/llvm-gcc/gcc/../winsup/cygwin/include -DIN_GCC 
> -DDEFAULT_
> TARGET_MACHINE=\"i686-pc-cygwin\"   -W -Wall -Wwrite-strings 
> -Wstrict-prototypes
> -Wmissing-prototypes -isystem ./include   -g  -DIN_LIBGCC2 
> -D__GCC_FLOAT_NOT_NE
> EDED  -I. -I. -I../../../src/llvm-gcc/gcc -I../../../src/llvm-gcc/gcc/. 
> -I../../
> ../src/llvm-gcc/gcc/../include   -DL_muldi3 -c 
> ../../../src/llvm-gcc/gcc/libgcc2
> .c -o libgcc/./_muldi3.o
> /tmp/cctoZeMj.s: Assembler messages:
> /tmp/cctoZeMj.s:1: Error: no such instruction: `gnu C version 3.4-llvm 
> 20030924
> (experimental)(i686-pc-cygwin)'
> /tmp/cctoZeMj.s:2: Error: no such instruction: `compiled by GNU C version 
> 3.4.3.
> '
> /tmp/cctoZeMj.s:3: Error: no such instruction: `ggc heuristics:--param 
> ggc-min-e
> xpand=30 --param ggc-min-heapsize=4096'
> /tmp/cctoZeMj.s:4: Error: no such instruction: `options 
> passed:-I../../../src/ll
> vm-gcc/gcc/../winsup/w32api/include'
> /tmp/cctoZeMj.s:5: Error: junk at end of line, first unrecognized character 
> is `
> -'
> /tmp/cctoZeMj.s:6: Error: junk at end of line, first unrecognized character 
> is `
> -'
> /tmp/cctoZeMj.s:7: Error: junk at end of line, first unrecognized character 
> is `
> -'
> /tmp/cctoZeMj.s:8: Error: junk at end of line, first unrecognized character 
> is `
> -'
> /tmp/cctoZeMj.s:9: Error: junk at end of line, first unrecognized character 
> is `
> -'
> /tmp/cctoZeMj.s:10: Error: junk at end of line, first unrecognized character 
> is
> `-'
> /tmp/cctoZeMj.s:11: Error: junk at end of line, first unrecognized character 
> is
> `-'
> /tmp/cctoZeMj.s:12: Error: junk at end of line, first unrecognized character 
> is
> `-'
> /tmp/cctoZeMj.s:13: Error: junk at end of line, first unrecognized character 
> is
> `-'
> /tmp/cctoZeMj.s:14: Error: no such instruction: `options 
> enabled:-feliminate-unu
> sed-debug-types -fdefer-pop'
> /tmp/cctoZeMj.s:15: Error: junk at end of line, first unrecognized character 
> is
> `-'
> /tmp/cctoZeMj.s:16: Error: junk at end of line, first unrecognized character 
> is
>
> < ----------------------------- snip ---------------------------->
>
> /tmp/cc4867fH.s:668: Error: bad expression
> /tmp/cc4867fH.s:668: Error: junk at end of line, first unrecognized character 
> is
> `}'
> /tmp/cc4867fH.s:669: Error: no such instruction: `store {}* %dbg.tmp.15,{}** 
> %db
> g.0'
> /tmp/cc4867fH.s:670: Error: no such instruction: `br label %return'
> /tmp/cc4867fH.s:672: Error: junk at end of line, first unrecognized character 
> is
> `%'
> /tmp/cc4867fH.s:672: Error: bad expression
> /tmp/cc4867fH.s:672: Error: junk at end of line, first unrecognized character 
> is
> `}'
> /tmp/cc4867fH.s:673: Error: junk at end of line, first unrecognized character 
> is
> `%'
> /tmp/cc4867fH.s:673: Error: bad expression
> /tmp/cc4867fH.s:673: Error: junk at end of line, first unrecognized character 
> is
> `}'
> /tmp/cc4867fH.s:674: Error: no such instruction: `store {}* %dbg.tmp.17,{}** 
> %db
> g.0'
> /tmp/cc4867fH.s:675: Error: junk at end of line, first unrecognized character 
> is
> `%'
> /tmp/cc4867fH.s:676: Error: suffix or operands invalid for `ret'
> /tmp/cc4867fH.s:677: Error: junk at end of line, first unrecognized character 
> is
> `}'
> /tmp/cc4867fH.s:679: Error: no such instruction: `created by "GCC: (GNU) 
> 3.4-llv
> m 20030924 (experimental)"'
> make[2]: *** [libgcc/./_muldi3.o] Error 1
> make[2]: Leaving directory `/usr/build/llvm-gcc/gcc'
> make[1]: *** [libgcc.a] Error 2
> make[1]: Leaving directory `/usr/build/llvm-gcc/gcc'
> make: *** [all-gcc] Error 2
>
> The temporary file gets deleted otherwise I would attach it.
>
> Hope you can help,
>
> Aaron
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
>

-Chris

-- 
http://nondot.org/sabre/
http://llvm.cs.uiuc.edu/




More information about the llvm-dev mailing list