[LLVMdev] problems with llvmgcc

Xiaodong Li xli3 at csil-suna48.cs.uiuc.edu
Thu Oct 31 09:48:01 PST 2002


Dear Prof. Adve,

Now I can use llvmgcc to compile a .c file into .bc file. But I still have
trouble simply run the .bc code. Below is the sequence I got when I tried.
I really don't know what's going on here. Please let me know how can I fix
it.

Thanks,
xiaodong


xli3|csil-suna48|~/cs426|[13]% llvmgcc scalarize.c -o scalarize
xli3|csil-suna48|~/cs426|[14]% scalarize
Cannot load value of type void!
Cannot load value of type void!
testSimple: 0
Cannot load value of type void!
Cannot load value of type void!
Cannot load value of type void!
Cannot load value of type void!
Cannot load value of type void!
Cannot load value of type void!
Cannot load value of type void!
EXCEPTION OCCURRED [Segmentation Fault]:
-#0. int "main"(int argc=1, sbyte * * argv=0x100466010)
        call void %testCyclic( )
>#1. void "testCyclic"()
        %reg113 = load uint** %cast239          ; <uint*> [#uses=1]
Breakpoint hit!
#16     %reg113 = load uint** %cast239          ; <uint*> [#uses=1]
#16     %reg113 = load uint** %cast239          ; <uint*> [#uses=1]
lli>




On Wed, 30 Oct 2002, Vikram S. Adve wrote:

> The problem with llvmgcc invoking as instead of llvm-as has been fixed.
> 3 llvm-specific executables needed to be copied into a default location
> where gcc can find them if it does not find them as configured (gcc was
> configured for the paths on our research machines and copied over).  Let
> us know if you have additional problems.
>
> --Vikram
>
>
>
> > -----Original Message-----
> > From: llvmdev-admin at cs.uiuc.edu
> > [mailto:llvmdev-admin at cs.uiuc.edu] On Behalf Of Xiaodong Li
> > Sent: Wednesday, October 30, 2002 9:31 AM
> > To: Chris Lattner
> > Cc: Xiaodong Li; llvmdev at cs.uiuc.edu
> > Subject: Re: [LLVMdev] problems with llvmgcc
> >
> >
> > Thanks, Chris,
> >
> > Below is the output of 'llvmgcc he.c -v'
> >
> > xli3|csil-suna27|~/cs426|[35]% llvmgcc he.c -v
> > Reading specs from
> > /usr/dcs/projects/cs426/Software/gcc_install/bin/../lib/gcc-li
> > b/llvm/3.1/specs
> > Configured with: /home/vadve/lattner/cvs/gcc/configure
> > --srcdir=/home/vadve/lattner/cvs/gcc
> > --prefix=/home/vadve/lattner/cvs/gcc_install_sparc
> > --target=llvm --enable-languages=c
> > --includedir=/home/vadve/lattner/cvs/gcc_install_sparc/llvm/include
> > --with-as=/home/vadve/lattner/cvs/gcc_install_sparc/bin/llvm-as
> > --with-ld=/home/vadve/lattner/cvs/gcc_install_sparc/bin/llvm-ld
> > gcc version 3.1 20010410 (experimental)
> >
> > /usr/dcs/projects/cs426/Software/gcc_install/bin/../lib/gcc-li
> > b/llvm/3.1/cc1
> > -lang-c -v -iprefix
> > /usr/dcs/projects/cs426/Software/gcc_install/bin/../lib/gcc-li
> > b/llvm/3.1/
> > -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0
> > -D__llvm__ -D__llvm__ -Asystem=unix -Asystem=bsd
> > -D__STDC_HOSTED__=1 he.c -quiet -dumpbase he.c -version -o
> > /var/tmp//ccobi9kx.s GNU CPP version 3.1 20010410
> > (experimental) (cpplib) (llvm) GNU C version 3.1 20010410
> > (experimental) (llvm)
> >         compiled by GNU C version 2.95.3 20010315 (release).
> > ignoring nonexistent directory
> > "/usr/dcs/projects/cs426/Software/gcc_install/llvm/sys-include"
> > ignoring nonexistent directory
> > "/home/vadve/lattner/cvs/gcc_install_sparc/lib/gcc-lib/llvm/3.
> > 1/include"
> > ignoring nonexistent directory
> > "/home/vadve/lattner/cvs/gcc_install_sparc/lib/gcc-lib/llvm/3.
> > 1/../../../../llvm/sys-include"
> > ignoring nonexistent directory
> > "/home/vadve/lattner/cvs/gcc_install_sparc/lib/gcc-lib/llvm/3.
> > 1/../../../../llvm/include"
> > #include "..." search starts here:
> > #include <...> search starts here:
> > /usr/dcs/projects/cs426/Software/gcc_install/lib/gcc-lib/llvm/
> > 3.1/include
> >  /usr/dcs/projects/cs426/Software/gcc_install/llvm/include
> > End of search list.
> >  as -o /var/tmp//ccohciE3.o /var/tmp//ccobi9kx.s
> > as: error opening '/var/tmp//ccohciE3.o': file exists!
> > Use -f command line argument to force output
> >
> > I think the as is the following one:
> > /home/vadve/lattner/cvs/gcc_install_sparc/bin/llvm-as
> > But actually, this path DOESN'T exist. I don't know why is
> > that, please help with that. Thanks a lot.
> >
> > Jerry
> >
> > On Tue, 29 Oct
> > 2002, Chris
> > Lattner wrote:
> >
> > > > I just tried to compile a simple file hello.c. But each
> > time I used
> > > > llvmgcc hello.c, it gave me the following error:
> > > >
> > > > xli3|csil-suna33|~/cs426|[13]% llvmgcc hello.c
> > > > as: error opening '/var/tmp//ccapglpE.o': file exists!
> > > > Use -f command line argument to force output
> > >
> > > First try doing an 'rm -f /var/tmp/*' and try again.  If that still
> > > doesn't work, please post the output of: 'llvmgcc hello.c -v'
> > >
> > > It may be possible that the wrong 'as' is installed on
> > CSIL.  llvmgcc
> > > should print out a path to an 'as' utility as part of the
> > -v output.
> > > If you can figure out where it is, please post the results
> > of 'as -v'
> > > where the as invoked is the same one GCC is running.  If
> > this doesn't
> > > make sense, just post the 'llvmgcc -v' output and I'll help
> > you from
> > > there...
> > >
> > > Thanks,
> > >
> > > -Chris
> > >
> > > --
> > > http://llvm.cs.uiuc.edu/ http://www.nondot.org/~sabre/Projects/
> > >
> > >
> >
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
> >
>
>




More information about the llvm-dev mailing list