<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=us-ascii" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<b>Reid,<br>
<br>
I followed the steps but got stuck as described below:<br>
<br>
Reid Spencer wrote:</b>
<blockquote cite="mid1162786496.11568.357.camel@bashful.x10sys.com"
 type="cite">
  <pre wrap="">Hi Robert,

Please make sure that you:

1. Completely rebuild LLVM (make clean; make reconfigure; make
tools-only)
  </pre>
</blockquote>
<b>This all worked great.</b><br>
<blockquote cite="mid1162786496.11568.357.camel@bashful.x10sys.com"
 type="cite">
  <pre wrap="">2. Completely rebuild llvm-gcc (wipe out the build dir with rm -rf,
configure llvm-gcc 
   and rebuild it)
  </pre>
</blockquote>
<b>Okay, got the same error as before.</b><br>
<blockquote cite="mid1162786496.11568.357.camel@bashful.x10sys.com"
 type="cite">
  <pre wrap="">
If you've done that, then please enter the debugger and get a stack
trace for us. 
You will need to:

1. Capture the xgcc compile command that failed
  </pre>
</blockquote>
<b>I captured this command and it is:</b><br>
<br>
/home/mykland/llvm-gcc/obj/gcc/xgcc -B/home/mykland/llvm-gcc/obj/gcc/
-B/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/bin/
-B/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/lib/
-isystem
/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/include
-isystem
/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/sys-include
-O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC
-g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I.
-I../../llvm-gcc4-1.8-source/gcc -I../../llvm-gcc4-1.8-source/gcc/.
-I../../llvm-gcc4-1.8-source/gcc/../include
-I../../llvm-gcc4-1.8-source/gcc/../libcpp/include 
-I/home/mykland/llvm/include -I/home/mykland/llvm/include -DL_muldi3
-fvisibility=hidden -DHIDE_EXPORTS -c
../../llvm-gcc4-1.8-source/gcc/libgcc2.c -o libgcc/./_muldi3.o<br>
<br>
<b>My problem is that when I rerun the command it doesn't fail in the
same way.  Several things can't be found anymore.  The first time the
command runs inside the makefile environment the messages look like
this:</b><br>
<br>
/home/mykland/llvm-gcc/obj/gcc/xgcc -B/home/mykland/llvm-gcc/obj/gcc/
-B/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/bin/
-B/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/lib/
-isystem
/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/include
-isystem
/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/sys-include
-O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC
-g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I.
-I../../llvm-gcc4-1.8-source/gcc -I../../llvm-gcc4-1.8-source/gcc/.
-I../../llvm-gcc4-1.8-source/gcc/../include
-I../../llvm-gcc4-1.8-source/gcc/../libcpp/include 
-I/home/mykland/llvm/include -I/home/mykland/llvm/include -DL_muldi3
-fvisibility=hidden -DHIDE_EXPORTS -c
../../llvm-gcc4-1.8-source/gcc/libgcc2.c -o libgcc/./_muldi3.o<br>
../../llvm-gcc4-1.8-source/gcc/libgcc2.c:541: internal compiler error:
Segmentation fault<br>
Please submit a full bug report,<br>
with preprocessed source if appropriate.<br>
See <a class="moz-txt-link-rfc1738" href="http://llvm.org/bugs"><URL:http://llvm.org/bugs></a> for instructions.<br>
make[2]: *** [libgcc/./_muldi3.o] Error 1<br>
make[2]: Leaving directory `/home/mykland/llvm-gcc/obj/gcc'<br>
make[1]: *** [libgcc.a] Error 2<br>
make[1]: Leaving directory `/home/mykland/llvm-gcc/obj/gcc'<br>
make: *** [all-gcc] Error 2<br>
<br>
<b>Afterwards, when I run it on the command line after the make has
failed the error messages look like this:</b><br>
<br>
mykland@ascenium:~/llvm-gcc/obj> /home/mykland/llvm-gcc/obj/gcc/xgcc
-B/home/mykland/llvm-gcc/obj/gcc/
-B/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/bin/
-B/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/lib/
-isystem
/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/include
-isystem
/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/sys-include
-O2  -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC
-g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I.
-I../../llvm-gcc4-1.8-source/gcc -I../../llvm-gcc4-1.8-source/gcc/.
-I../../llvm-gcc4-1.8-source/gcc/../include
-I../../llvm-gcc4-1.8-source/gcc/../libcpp/include 
-I/home/mykland/llvm/include -I/home/mykland/llvm/include -DL_muldi3
-fvisibility=hidden -DHIDE_EXPORTS -c
../../llvm-gcc4-1.8-source/gcc/libgcc2.c -o libgcc/./_muldi3.o<br>
../../llvm-gcc4-1.8-source/gcc/libgcc2.c:35:23: error: auto-host.h: No
such file or directory<br>
../../llvm-gcc4-1.8-source/gcc/libgcc2.c:40:21: error: tconfig.h: No
such file or directory<br>
../../llvm-gcc4-1.8-source/gcc/libgcc2.c:43:16: error: tm.h: No such
file or directory<br>
In file included from ../../llvm-gcc4-1.8-source/gcc/libgcc2.c:64:<br>
../../llvm-gcc4-1.8-source/gcc/libgcc2.h:214:3: error: #error "expand
the table"../../llvm-gcc4-1.8-source/gcc/libgcc2.c: In function
‘__mulhi3’:<br>
../../llvm-gcc4-1.8-source/gcc/libgcc2.c:535: error: ‘BITS_PER_UNIT’
undeclared (first use in this function)<br>
../../llvm-gcc4-1.8-source/gcc/libgcc2.c:535: error: (Each undeclared
identifier is reported only once<br>
../../llvm-gcc4-1.8-source/gcc/libgcc2.c:535: error: for each function
it appears in.)<br>
<br>
<b>...or with the -v command added they look like this:</b><br>
<br>
mykland@ascenium:~/llvm-gcc/obj> /home/mykland/llvm-gcc/obj/gcc/xgcc
-B/home/mykland/llvm-gcc/obj/gcc/
-B/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/bin/
-B/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/lib/
-isystem
/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/include
-isystem
/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/sys-include
-O2  -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC
-g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I.
-I../../llvm-gcc4-1.8-source/gcc -I../../llvm-gcc4-1.8-source/gcc/.
-I../../llvm-gcc4-1.8-source/gcc/../include
-I../../llvm-gcc4-1.8-source/gcc/../libcpp/include 
-I/home/mykland/llvm/include -I/home/mykland/llvm/include -DL_muldi3
-fvisibility=hidden -DHIDE_EXPORTS -c
../../llvm-gcc4-1.8-source/gcc/libgcc2.c -o libgcc/./_muldi3.o -v<br>
Reading specs from /home/mykland/llvm-gcc/obj/gcc/specs<br>
Target: i686-pc-linux-gnu<br>
Configured with: ../llvm-gcc4-1.8-source/configure
--prefix=/home/mykland/llvm-gcc/obj/../install/
--enable-llvm=/home/mykland/llvm --enable-languages=c,c++
--disable-threads<br>
Thread model: single<br>
gcc version 4.0.1 LLVM (Apple Computer, Inc. build 5400)<br>
 /home/mykland/llvm-gcc/obj/gcc/cc1 -quiet -v -I. -I.
-I../../llvm-gcc4-1.8-source/gcc -I../../llvm-gcc4-1.8-source/gcc/.
-I../../llvm-gcc4-1.8-source/gcc/../include
-I../../llvm-gcc4-1.8-source/gcc/../libcpp/include
-I/home/mykland/llvm/include -I/home/mykland/llvm/include -iprefix
/home/mykland/llvm-gcc/obj/gcc/../lib/gcc/i686-pc-linux-gnu/4.0.1/
-isystem /home/mykland/llvm-gcc/obj/gcc/include -DIN_GCC -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -DL_muldi3 -DHIDE_EXPORTS -isystem
/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/include
-isystem
/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/sys-include
-isystem ./include ../../llvm-gcc4-1.8-source/gcc/libgcc2.c -quiet
-dumpbase libgcc2.c -mtune=pentiumpro -auxbase-strip libgcc/./_muldi3.o
-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -version -fPIC
-fvisibility=hidden -o /tmp/ccsulgFx.s<br>
ignoring nonexistent directory
"/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/include"<br>
ignoring nonexistent directory
"/home/mykland/llvm-gcc/obj/../install//i686-pc-linux-gnu/sys-include"<br>
ignoring nonexistent directory "./include"<br>
ignoring nonexistent directory
"/home/mykland/llvm-gcc/obj/gcc/../lib/gcc/i686-pc-linux-gnu/4.0.1/include"<br>
ignoring nonexistent directory
"/home/mykland/llvm-gcc/obj/gcc/../lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../i686-pc-linux-gnu/include"<br>
ignoring nonexistent directory
"/home/mykland/llvm-gcc/obj/../install//include"<br>
ignoring nonexistent directory
"/home/mykland/llvm-gcc/obj/../install//lib/gcc/i686-pc-linux-gnu/4.0.1/include"<br>
ignoring nonexistent directory
"/home/mykland/llvm-gcc/obj/../install//lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../i686-pc-linux-gnu/include"<br>
ignoring duplicate directory "."<br>
ignoring duplicate directory "../../llvm-gcc4-1.8-source/gcc/."<br>
ignoring duplicate directory "/home/mykland/llvm/include"<br>
#include "..." search starts here:<br>
#include <...> search starts here:<br>
 .<br>
 ../../llvm-gcc4-1.8-source/gcc<br>
 ../../llvm-gcc4-1.8-source/gcc/../include<br>
 ../../llvm-gcc4-1.8-source/gcc/../libcpp/include<br>
 /home/mykland/llvm/include<br>
 /home/mykland/llvm-gcc/obj/gcc/include<br>
 /usr/local/include<br>
 /usr/include<br>
End of search list.<br>
GNU C version 4.0.1 LLVM (Apple Computer, Inc. build 5400)
(i686-pc-linux-gnu)<br>
        compiled by GNU C version 4.1.0 (SUSE Linux).<br>
GGC heuristics: --param ggc-min-expand=99 --param
ggc-min-heapsize=129349<br>
Compiler executable checksum: b890601e6422e9101b52d960e6263283<br>
../../llvm-gcc4-1.8-source/gcc/libgcc2.c:35:23: error: auto-host.h: No
such file or directory<br>
../../llvm-gcc4-1.8-source/gcc/libgcc2.c:40:21: error: tconfig.h: No
such file or directory<br>
../../llvm-gcc4-1.8-source/gcc/libgcc2.c:43:16: error: tm.h: No such
file or directory<br>
In file included from ../../llvm-gcc4-1.8-source/gcc/libgcc2.c:64:<br>
../../llvm-gcc4-1.8-source/gcc/libgcc2.h:214:3: error: #error "expand
the table"../../llvm-gcc4-1.8-source/gcc/libgcc2.c: In function
‘__mulhi3’:<br>
../../llvm-gcc4-1.8-source/gcc/libgcc2.c:535: error: ‘BITS_PER_UNIT’
undeclared (first use in this function)<br>
../../llvm-gcc4-1.8-source/gcc/libgcc2.c:535: error: (Each undeclared
identifier is reported only once<br>
../../llvm-gcc4-1.8-source/gcc/libgcc2.c:535: error: for each function
it appears in.)<br>
<br>
<b>What now?<br>
<br>
Regards,<br>
<br>
-- Robert.</b><br>
<blockquote cite="mid1162786496.11568.357.camel@bashful.x10sys.com"
 type="cite">
  <pre wrap="">2. Run that command manually with the -v option to print out the
commands it is running
3. Debug gcc/cc1 and run it with the arguments shown in step 2
4. Get a stack trace with "where"

Reid.

On Sun, 2006-11-05 at 20:15 -0800, Robert Mykland wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I was having video problems, so upgraded my Linux box from SUSE 9.3, 
where LLVM frontend 4 source built fine, to SUSE 10.1, where I got the 
error message:

../../llvm-gcc4-1.8-source/gcc/libgcc2.c:541: internal compiler error: 
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <a class="moz-txt-link-rfc1738" href="http://llvm.org/bugs"><URL:http://llvm.org/bugs></a> for instructions.

This version of SUSE uses version 4.1.0 of the gcc compiler.

What now?

-- Robert.

_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->
_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>


  </pre>
</blockquote>
</body>
</html>