LLVM-GCC build failed

Hi

I am using LLVM and LLVM-GCC from SVN (version number: 122880). And I am using arm-2009q1-176-arm-none-linux-gnueabi-i686-mingw32.tar.bz2 or arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2. I tried the automated scripts (create-snapshots.sh and build-install-linux.sh) that are in the LLVM repository for building crosstoll for ARM (http://llvm.org/svn/llvm-project/llvm/trunk/utils/crosstool/) but get the following error for building llvm-gcc (llvm built successfully):

When I use arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2: my build fails by the following error:

/usr/local/crosstool/codesourcery/arm-2009q1/bin/arm-none-linux-gnueabi-gcc: cannot
execute binary file

make[2]: *** [crtbegin.o] Error 1

When I use arm-2009q1-176-arm-none-linux-gnueabi-i686-mingw32.tar.bz2, I get the following error:

Assembler messages:^M
Error: can’t open /cygdrive/d/DOCUME~2/AZIM/LOCALS~1/Temp/cc19Hfjy.s for reading
: No such file or directory^M
make[2]: *** [crtbegin.o] Error 1

Can anyone please tell me why the error?

Thanks,
Akramul

They're pretty clear and definitely not related to llvm. One says that you can't execute the arm-gcc binary you have from codesourcery the other says that you can't open a temporary .s file for some reason.

I'd guess permissions are hosed on your machines, but I don't know.

Good luck.

-eric


Now I get the following error:


checking for ld that supports -Wl,–gc-sections… configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libstdc+±v3] Error 1
make[1]: Leaving directory `/MinGW/llvm-project/obj/llvm-gcc-4.2’
make: *** [all] Error 2


Can anyone please tell me how to resolve the problem?

Akramul
— On Sat, 8/1/11, Eric Christopher echristo@apple.com wrote:



> From: Eric Christopher echristo@apple.com
> Subject: Re: [LLVMdev] LLVM-GCC build failed
> To: “akramul azim” bijoy123_8@yahoo.com
> Cc: llvmdev@cs.uiuc.edu
> Date: Saturday, 8 January, 2011, 7:21 PM
>
> On Jan 8, 2011, at 8:04 AM, akramul azim wrote:
>
> > Hi
> >
> > I am using LLVM and LLVM-GCC from SVN (version number: 122880). And I am using arm-2009q1-176-arm-none-linux-gnueabi-i686-mingw32.tar.bz2 or arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2. I tried the automated scripts (create-snapshots.sh and build-install-linux.sh) that are in the LLVM repository for building crosstoll for ARM (http://llvm.org/svn/llvm-project/llvm/trunk/utils/crosstool/) but get the following error for building llvm-gcc (llvm built successfully):
> >
> > When I use arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2: my build fails by the following error:
> >
> > /usr/local/crosstool/codesourcery/arm-2009q1/bin/arm-none-linux-gnueabi-gcc: cannot
> > execute binary file
> >
> > make[2]: *** [crtbegin.o] Error 1
> >
> > When I use arm-2009q1-176-arm-none-linux-gnueabi-i686-mingw32.tar.bz2, I get the following error:
> >
> > Assembler messages:^M
> > Error: can’t open /cygdrive/d/DOCUME~2/AZIM/LOCALS~1/Temp/cc19Hfjy.s for reading
> > : No such file or directory^M
> > make[2]: *** [crtbegin.o] Error 1
> >
> > Can anyone please tell me why the error?
> >
>
> They’re pretty clear and definitely not related to llvm. One says that you can’t execute the arm-gcc binary you have from codesourcery the other says that you can’t open a temporary .s file for some reason.
>
> I’d guess permissions are hosed on your machines, but I don’t know.
>
> Good luck.
>
> -eric

|