[LLVMdev] Compiling errors for tracelib.c

Chris Lattner sabre at nondot.org
Fri Jan 28 11:40:13 PST 2005


On Fri, 28 Jan 2005, Henrik Bach wrote:
> Is there something wrong with my llvm-gcc compiler?:
> c:/projects/src/llvm-4/llvm/runtime/libtrace/tracelib.c:54: warning: type 
> defaults to `int' in declaration of `PRIMES'
> c:/projects/src/llvm-4/llvm/runtime/libtrace/tracelib.c:56: warning: data 
> definition has no type or storage class

It looks like that file had non-portable code in it.  Can you try updating 
and see if it works now?

-Chris

> c:/projects/src/llvm-4/llvm/runtime/libtrace/tracelib.c:57: error: syntax 
> error before "CurrentSizeEntry"
> c:/projects/src/llvm-4/llvm/runtime/libtrace/tracelib.c:57: warning: type 
> defaults to `int' in declaration of `CurrentSizeEntry'
> c:/projects/src/llvm-4/llvm/runtime/libtrace/tracelib.c:57: warning: data 
> definition has no type or storage class
> c:/projects/src/llvm-4/llvm/runtime/libtrace/tracelib.c:59: error: syntax 
> error before "MAX_NUM_PROBES"
> c:/projects/src/llvm-4/llvm/runtime/libtrace/tracelib.c:59: warning: type 
> defaults to `int' in declaration of `MAX_NUM_PROBES'
> c:/projects/src/llvm-4/llvm/runtime/libtrace/tracelib.c:59: warning: data 
> definition has no type or storage class
> c:/projects/src/llvm-4/llvm/runtime/libtrace/tracelib.c: In function 
> `FindIndex':
>
> c:/projects/src/llvm-4/llvm/runtime/libtrace/tracelib.c:173: error: `uint' 
> undeclared (first use in this function)
> c:/projects/src/llvm-4/llvm/runtime/libtrace/tracelib.c:173: error: (Each 
> undeclared identifier is reported only once
> c:/projects/src/llvm-4/llvm/runtime/libtrace/tracelib.c:173: error: for each 
> function it appears in.)
> c:/projects/src/llvm-4/llvm/runtime/libtrace/tracelib.c:173: error: syntax 
> error before "numProbes"
> c:/projects/src/llvm-4/llvm/runtime/libtrace/tracelib.c:181: error: 
> `numProbes' undeclared (first use in this function)
> make[2]: *** 
> [/C/projects/build/MinGW/llvm-4-1/runtime/libtrace/Debug/tracelib.bc] Error 1
> ------------------------
>
>
>
> =============================================================
> Henrik Bach
> LLVM Open Source Developer
>
> e-mail: henrik_bach_llvm at hotmail.com
> =============================================================
> 'Nothing is impossible; The impossible just takes longer time :)'
> - Inventor of a new energy saver light bulp from Denmark.
>
> No software patents - Thank you Poland: 
> http://www.nosoftwarepatents.com/en/m/intro/app0411.html
> Got Freedom?
> Software Freedom Day - 28th of August
> http://www.softwarefreedomday.org/
> =============================================================
>
> _________________________________________________________________
> Undgå pop-ups med MSN Toolbar -  http://toolbar.msn.dk hent den gratis!
>
> _______________________________________________
> 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