[LLVMbugs] Re: Can't build llvm-gcc at FreeBSD after last chages in llvm-gcc/gcc/llvm-types.c

Chris Lattner sabre at nondot.org
Sun Jul 18 14:14:23 PDT 2004


On Mon, 19 Jul 2004, Vladimir Merzliakov wrote:

> After changes in llvm-gcc/gcc/llvm-types.c:
> http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040705/015778.html
>
> I can't build llvm-gcc.
>
> Build generate message:
> ---8X-------------------------------------
> checking for BSD-compatible nm... nm
> checking how to recognise dependant libraries... Assertion failed: (0 &&
> "Unknown mode for pointer type!"), function llvm_type_get_size, file
> ../../src/llvm-gcc/gcc/llvm-types.c, line 67.
> <stdin>:0: internal compiler error: Abort trap
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://llvm.cs.uiuc.edu> for instructions.
> pass_all
> checking for i386-unknown-freebsd5.1-ranlib... (cached) ranlib

Can you try this patch please?

===================================================================
RCS file: /home/vadve/shared/PublicCVS/llvm-gcc/gcc/toplev.c,v
retrieving revision 1.5
diff -u -r1.5 toplev.c
--- toplev.c    7 May 2004 19:20:26 -0000       1.5
+++ toplev.c    18 Jul 2004 21:00:12 -0000
@@ -4523,7 +4523,7 @@
   if (!errorcount)
     {
       /* Set up the back-end if requested.  */
-      if (!no_backend)
+      if (!no_backend || EMIT_LLVM)
        backend_init ();

       /* Language-dependent initialization.  Returns true on success.  */


-Chris

>
> ---X8-------------------------------------
>
> And later terminated with error:
> ---8X-------------------------------------
> checking how to run the C++ preprocessor... /lib/cpp
> configure: error: C++ preprocessor "/lib/cpp" fails sanity check
> See `config.log' for more details.
> gmake: *** [configure-target-libstdc++-v3] Error 1
>
> ---X8-------------------------------------
>
> I am attempt use gcc3.5 (current GCC CVS mainline) and gcc3.4.1 release
>
> Vladimir
>
>

-Chris

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




More information about the llvm-bugs mailing list