public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Building gcc on X86_64
@ 2006-11-17 17:28 Smith-Rowland, Edward M
  0 siblings, 0 replies; 6+ messages in thread
From: Smith-Rowland, Edward M @ 2006-11-17 17:28 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 578 bytes --]


I'm trying to bootstrap gcc on x86_64.

Here is my configure line:

../gcc/configure --prefix=/home/ed/bin-4.3 --enable-languages=c,c++,fortran --with-gmp-dir=/home/ed/gcc/gmp-4.2.1 --with-mpfr-dir=/home/ed/gcc/mpfr-2.2.0

I just unpacked the GMP and MPFR source directories in the gcc source tree.

My question is why does the configure check require the mpfr library to already be built when I put two source directories?  It seems like it should just check the headers.  Then it should configure and build those packages using the most useful flags for GCC.

Ed

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: config.log --]
[-- Type: text/x-log; name="config.log", Size: 1594 bytes --]

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:614: checking host system type
configure:635: checking target system type
configure:653: checking build system type
configure:708: checking for a BSD compatible install
configure:761: checking whether ln works
configure:785: checking whether ln -s works
configure:1850: checking for gcc
configure:1963: checking whether the C compiler (gcc  ) works
configure:1979: gcc -o conftest    conftest.c  1>&5
configure:2005: checking whether the C compiler (gcc  ) is a cross-compiler
configure:2010: checking whether we are using GNU C
configure:2019: gcc -E conftest.c
configure:2038: checking whether gcc accepts -g
configure:2105: checking for gnatbind
configure:2170: checking whether compiler driver understands Ada
configure:2202: checking how to compare bootstrapped objects
configure:2300: checking for correct version of gmp.h
configure:2313: gcc -c -g -O2 -I/home/ed/gcc/mpfr-2.2.0 -I/home/ed/gcc/gmp-4.2.1  conftest.c 1>&5
configure:2328: checking for correct version of mpfr.h
configure:2343: gcc -o conftest -g -O2 -I/home/ed/gcc/mpfr-2.2.0 -I/home/ed/gcc/gmp-4.2.1   conftest.c  /home/ed/gcc/mpfr-2.2.0/libmpfr.a 1>&5
gcc: /home/ed/gcc/mpfr-2.2.0/libmpfr.a: No such file or directory
configure: failed program was:
#line 2330 "configure"
#include "confdefs.h"
#include <gmp.h>
#include <mpfr.h>
int main() {

#if MPFR_VERSION_MAJOR < 2 || (MPFR_VERSION_MAJOR == 2 && MPFR_VERSION_MINOR < 2)
  choke me
#endif
  mpfr_t n; mpfr_init(n);

; return 0; }

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Building gcc on x86_64
  2009-03-19 14:21 Sergei Dyshel
  2009-03-19 14:26 ` John (Eljay) Love-Jensen
@ 2009-03-19 23:22 ` Ian Lance Taylor
  1 sibling, 0 replies; 6+ messages in thread
From: Ian Lance Taylor @ 2009-03-19 23:22 UTC (permalink / raw)
  To: Sergei Dyshel; +Cc: gcc-help

Sergei Dyshel <SERGEID@il.ibm.com> writes:

> ../../../../trunk/libgcc/../gcc/libgcc2.c:33:21:
> warning: ../.././gcc/tconfig.h is shorter than expected

This seems like a mildly alarming warning.  It implies a discrepancy
between stat and read.  That should never happen on GNU/Linux, unless
you are changing the files during the compilation or something along
those lines.  Something is wrong somewhere.

Ian

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Building gcc on x86_64
  2009-03-19 14:26 ` John (Eljay) Love-Jensen
@ 2009-03-19 14:38   ` Sergei Dyshel
  0 siblings, 0 replies; 6+ messages in thread
From: Sergei Dyshel @ 2009-03-19 14:38 UTC (permalink / raw)
  To: John (Eljay) Love-Jensen, gcc-help

I don't think so. This appears in config.log:

../../trunk/configure --prefix=/Develop/sergei/vanilla

I also have to mention that the error occurs on the same machine as this
error:
<http://gcc.gnu.org/ml/gcc-help/2009-03/msg00162.html>

Sergei

"John (Eljay) Love-Jensen" <eljay@adobe.com> wrote on 19/03/2009 16:23:36:

> It appears you are either running configure in the SAME directory as
> the GCC source (./configure), or in a SUBDIRECTORY of the GCC source
> (../configure).
>
> As documented <http://gcc.gnu.org/install/configure.html>, neither
> is supported.
>
> If you get either to work, that would be interesting.  I've never
> been able to get either to work.
>
> The above may-or-may-not be relevant to the specific problem you
encountered.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Building gcc on x86_64
  2009-03-19 14:21 Sergei Dyshel
@ 2009-03-19 14:26 ` John (Eljay) Love-Jensen
  2009-03-19 14:38   ` Sergei Dyshel
  2009-03-19 23:22 ` Ian Lance Taylor
  1 sibling, 1 reply; 6+ messages in thread
From: John (Eljay) Love-Jensen @ 2009-03-19 14:26 UTC (permalink / raw)
  To: Sergei Dyshel, gcc-help

Hi Sergei,

It appears you are either running configure in the SAME directory as the GCC source (./configure), or in a SUBDIRECTORY of the GCC source (../configure).

As documented <http://gcc.gnu.org/install/configure.html>, neither is supported.

If you get either to work, that would be interesting.  I've never been able to get either to work.

The above may-or-may-not be relevant to the specific problem you encountered.

HTH,
--Eljay

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Building gcc on x86_64
@ 2009-03-19 14:21 Sergei Dyshel
  2009-03-19 14:26 ` John (Eljay) Love-Jensen
  2009-03-19 23:22 ` Ian Lance Taylor
  0 siblings, 2 replies; 6+ messages in thread
From: Sergei Dyshel @ 2009-03-19 14:21 UTC (permalink / raw)
  To: gcc-help


Hi,

I have a problem building GCC trunk revision 144962 (from 2009-03-19) on
x86_64, running Red Hat 64-bit. Any help will be appreciated.

Sergei

gcc -v output:

Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
--host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)

configuration options:

./configure --disable-multilib --with-system-zlib --enable-__cxa_atexit
--without
-system-libunwind --with-cpu=generic --host=x86_64-redhat-linux
--build=x86_64-redhat-linux --disable-dssi

'make' output:

make[3]: Entering directory
`/Develop/sergei/vanilla/build/x86_64-redhat-linux/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
/Develop/sergei/vanilla/build/./gcc/xgcc
-B/Develop/sergei/vanilla/build/./gcc/
-B/Develop/sergei/vanilla/x86_64-redhat-linux/bin/
-B/Develop/sergei/vanilla/x86_64-redhat-linux/lib/
-isystem /Develop/sergei/vanilla/x86_64-redhat-linux/include
-isystem /Develop/sergei/vanilla/x86_64-redhat-linux/sys-include -g -O2 -O2
-g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wcast-qual -Wold-style-definition  -isystem ./include
-fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I.
-I. -I../.././gcc -I../../../../trunk/libgcc -I../../../../trunk/libgcc/.
-I../../../../trunk/libgcc/../gcc -I../../../../trunk/libgcc/../include
-I../../../../trunk/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT
-DHAVE_CC_TLS -DUSE_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep
-DL_muldi3 -c ../../../../trunk/libgcc/../gcc/libgcc2.c \

../../../../trunk/libgcc/../gcc/libgcc2.c:33:21:
warning: ../.././gcc/tconfig.h is shorter than expected
In file included from ../.././gcc/tconfig.h:8,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:33:
../../../../trunk/libgcc/../include/ansidecl.h:114:1: error: unterminated
#ifndef
../../../../trunk/libgcc/../gcc/libgcc2.c:34:21:
warning: ../../../../trunk/libgcc/../gcc/tsystem.h is shorter than expected
In file included from ../../../../trunk/libgcc/../gcc/tsystem.h:47,..
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:..
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:103:1: error:
unterminated comment
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:51:1: error:
unterminated #ifndef
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:31:1: error:
unterminated #if
In file included from ../../../../trunk/libgcc/../gcc/tsystem.h:48,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/Develop/sergei/vanilla/build/./gcc/include/float.h:31:1: error:
unterminated #ifndef
In file included from ../../../../trunk/libgcc/../gcc/tsystem.h:87,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/Develop/sergei/vanilla/build/./gcc/include/stdarg.h:119:1: error:
unterminated #ifndef
/Develop/sergei/vanilla/build/./gcc/include/stdarg.h:96:1: error:
unterminated #if
/Develop/sergei/vanilla/build/./gcc/include/stdarg.h:73:1: error:
unterminated #else
/Develop/sergei/vanilla/build/./gcc/include/stdarg.h:48:1: error:
unterminated #ifdef
/Develop/sergei/vanilla/build/./gcc/include/stdarg.h:32:1: error:
unterminated #ifndef
/Develop/sergei/vanilla/build/./gcc/include/stdarg.h:31:1: error:
unterminated #ifndef
In file included from /usr/include/stdio.h:28,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/features.h:22:1: error: unterminated comment
/usr/include/features.h:19:1: error: unterminated #ifndef
In file included from /usr/include/stdio.h:34,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:103:1: error:
unterminated comment
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:51:1: error:
unterminated #ifndef
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:31:1: error:
unterminated #if
In file included from /usr/include/bits/types.h:27,
                 from /usr/include/stdio.h:36,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/features.h:22:1: error: unterminated comment
/usr/include/features.h:19:1: error: unterminated #ifndef
In file included from /usr/include/bits/types.h:31,
                 from /usr/include/stdio.h:36,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:103:1: error:
unterminated comment
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:51:1: error:
unterminated #ifndef
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:31:1: error:
unterminated #if
In file included from /usr/include/stdio.h:36,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/bits/types.h:34: error: expected ג€˜=ג€™, ג€˜,ג€™, ג€˜;ג€™, ג
€˜asmג€™ or ג€˜__attribute__ג€™ before ג€˜typedefג€™
In file included from /usr/include/stdio.h:36,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,;
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:;
/usr/include/bits/types.h:112:3: error: invalid preprocessing directive
#defi
/usr/include/bits/types.h:108:1: error: unterminated #if
/usr/include/bits/types.h:24:1: error: unterminated #ifndef
In file included from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/stdio.h:49: error: expected ג€˜=ג€™, ג€˜,ג€™, ג€˜;ג€™, ג€˜asmג
€™ or ג€˜__attribute__ג€™ before ג€˜typedefג€™
/usr/include/stdio.h:65: error: expected ג€˜=ג€™, ג€˜,ג€™, ג€˜;ג€™, ג€˜asmג
€™ or ג€˜__attribute__ג€™ before ג€˜typedefג€™
In file included from /usr/include/_G_config.h:9,
                 from /usr/include/libio.h:32,:
                 from /usr/include/stdio.h:75,:
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/bits/types.h:108:1: error: unterminated #if
/usr/include/bits/types.h:24:1: error: unterminated #ifndef
In file included from /usr/include/_G_config.h:14,
                 from /usr/include/libio.h:32,:
                 from /usr/include/stdio.h:75,:
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:103:1: error:
unterminated comment
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:51:1: error:
unterminated #ifndef
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:31:1: error:
unterminated #if
In file included from /usr/include/wchar.h:48,
                 from /usr/include/_G_config.h:24,.
                 from /usr/include/libio.h:32,:
                 from /usr/include/stdio.h:75,:
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:103:1: error:
unterminated comment
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:51:1: error:
unterminated #ifndef
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:31:1: error:
unterminated #if
In file included from /usr/include/_G_config.h:24,.
                 from /usr/include/libio.h:32,:
                 from /usr/include/stdio.h:75,:
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/wchar.h:91:1: error: unterminated #ifdef
/usr/include/wchar.h:24:1: error: unterminated #ifndef
In file included from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:75,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/_G_config.h:28: error: expected specifier-qualifier-list
before ג€˜__off_tג€™
/usr/include/_G_config.h:33: error: expected specifier-qualifier-list
before ג€˜__off64_tג€™
In file included from /usr/include/gconv.h:26,
                 from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,:
                 from /usr/include/stdio.h:75,:
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/features.h:22:1: error: unterminated comment
/usr/include/features.h:19:1: error: unterminated #ifndef
In file included from /usr/include/wchar.h:48,
                 from /usr/include/gconv.h:28,
                 from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,:
                 from /usr/include/stdio.h:75,:
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:103:1: error:
unterminated comment
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:51:1: error:
unterminated #ifndef
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:31:1: error:
unterminated #if
In file included from /usr/include/gconv.h:28,
                 from /usr/include/_G_config.h:44,.
                 from /usr/include/libio.h:32,:
                 from /usr/include/stdio.h:75,:
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/wchar.h:91:1: error: unterminated #ifdef
/usr/include/wchar.h:24:1: error: unterminated #ifndef
In file included from /usr/include/gconv.h:31,
                 from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,:
                 from /usr/include/stdio.h:75,:
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:103:1: error:
unterminated comment
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:51:1: error:
unterminated #ifndef
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:31:1: error:
unterminated #if
In file included from /usr/include/_G_config.h:44,.
                 from /usr/include/libio.h:32,:
                 from /usr/include/stdio.h:75,:
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/gconv.h:72: error: expected declaration specifiers or ג€˜...ג
€™ before ג€˜size_tג€™
/usr/include/gconv.h:88: error: expected declaration specifiers or ג€˜...ג
€™ before ג€˜size_tג€™
/usr/include/gconv.h:97: error: expected declaration specifiers or ג€˜...ג
€™ before ג€˜size_tג€™
In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,:
                 from /usr/include/stdio.h:75,:
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/gconv.h:23:1: error: unterminated #ifndef
In file included from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:75,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/_G_config.h:45: error: expected specifier-qualifier-list
before ג€˜typedefג€™
In file included from /usr/include/libio.h:53,
                 from /usr/include/stdio.h:75,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/Develop/sergei/vanilla/build/./gcc/include/stdarg.h:119:1: error:
unterminated #ifndef
/Develop/sergei/vanilla/build/./gcc/include/stdarg.h:96:1: error:
unterminated #if
/Develop/sergei/vanilla/build/./gcc/include/stdarg.h:73:1: error:
unterminated #else
/Develop/sergei/vanilla/build/./gcc/include/stdarg.h:48:1: error:
unterminated #ifdef
/Develop/sergei/vanilla/build/./gcc/include/stdarg.h:32:1: error:
unterminated #ifndef
/Develop/sergei/vanilla/build/./gcc/include/stdarg.h:31:1: error:
unterminated #ifndef
In file included from /usr/include/libio.h:62,
                 from /usr/include/stdio.h:75,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/sys/cdefs.h:46:44: error: missing binary operator before token
"("
/usr/include/sys/cdefs.h:50:44: error: missing binary operator before token
"("
/usr/include/sys/cdefs.h:124:1: error: unterminated #ifndef
/usr/include/sys/cdefs.h:20:1: error: unterminated #ifndef
In file included from /usr/include/stdio.h:75,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/libio.h:133:32: error: unterminated comment
/usr/include/libio.h:29:1: error: unterminated #ifndef
In file included from ../../../../trunk/libgcc/../gcc/tsystem.h:90,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/stdio.h:147:34: error: unterminated comment
/usr/include/stdio.h:72:1: error: unterminated #ifdef
/usr/include/stdio.h:24:1: error: unterminated #ifndef
In file included from /usr/include/sys/types.h:27,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:93,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/features.h:22:1: error: unterminated comment
/usr/include/features.h:19:1: error: unterminated #ifndef
In file included from /usr/include/sys/types.h:31,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:93,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/bits/types.h:108:1: error: unterminated #if
/usr/include/bits/types.h:24:1: error: unterminated #ifndef
In file included from /usr/include/time.h:73,
                 from /usr/include/sys/types.h:133,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:93,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/bits/types.h:108:1: error: unterminated #if
/usr/include/bits/types.h:24:1: error: unterminated #ifndef
In file included from /usr/include/time.h:90,
                 from /usr/include/sys/types.h:133,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:93,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/bits/types.h:108:1: error: unterminated #if
/usr/include/bits/types.h:24:1: error: unterminated #ifndef
In file included from /usr/include/time.h:102,
                 from /usr/include/sys/types.h:133,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:93,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/bits/types.h:108:1: error: unterminated #if
/usr/include/bits/types.h:24:1: error: unterminated #ifndef
In file included from /usr/include/sys/types.h:133,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:93,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/time.h:143:18: error: unterminated comment
/usr/include/time.h:131:1: error: unterminated #ifdef
/usr/include/time.h:24:1: error: unterminated #ifndef
In file included from /usr/include/sys/types.h:147,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:93,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:103:1: error:
unterminated comment
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:51:1: error:
unterminated #ifndef
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:31:1: error:
unterminated #if
In file included from ../../../../trunk/libgcc/../gcc/tsystem.h:93,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/sys/types.h:158:20: error: missing binary operator before
token "("
/usr/include/sys/types.h:177:1: error: unterminated #if
/usr/include/sys/types.h:158:1: error: unterminated #if
/usr/include/sys/types.h:24:1: error: unterminated #ifndef
In file included from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
../../../../trunk/libgcc/../gcc/tsystem.h:96:19:
warning: /usr/include/errno.h is shorter than expected
In file included from /usr/include/errno.h:29,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:96,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/features.h:22:1: error: unterminated comment
/usr/include/features.h:19:1: error: unterminated #ifndef
In file included from /usr/include/asm-x86_64/errno.h:4,
                 from /usr/include/asm/errno.h:5,
                 from /usr/include/linux/errno.h:4,.
                 from /usr/include/bits/errno.h:25,.
                 from /usr/include/errno.h:36,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:96,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:
/usr/include/asm-generic/errno.h:84:26: error: unterminated comment
/usr/include/asm-generic/errno.h:1:1: error: unterminated #ifndef
In file included from /usr/include/string.h:26,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:103,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
/usr/include/features.h:22:1: error: unterminated comment
/usr/include/features.h:19:1: error: unterminated #ifndef
In file included from /usr/include/string.h:33,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:103,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:103:1: error:
unterminated comment
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:51:1: error:
unterminated #ifndef
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:31:1: error:
unterminated #if
In file included from ../../../../trunk/libgcc/../gcc/tsystem.h:103,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
/usr/include/string.h:23:1: error: unterminated #ifndef
In file included from /usr/include/stdlib.h:25,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:104,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
/usr/include/features.h:22:1: error: unterminated comment
/usr/include/features.h:19:1: error: unterminated #ifndef
In file included from /usr/include/stdlib.h:33,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:104,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:103:1: error:
unterminated comment
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:51:1: error:
unterminated #ifndef
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:31:1: error:
unterminated #if
In file included from ../../../../trunk/libgcc/../gcc/tsystem.h:104,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
/usr/include/stdlib.h:135:24: error: unterminated comment
/usr/include/stdlib.h:37:1: error: unterminated #ifndef
/usr/include/stdlib.h:23:1: error: unterminated #ifndef
In file included from /usr/include/unistd.h:26,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:105,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
/usr/include/features.h:22:1: error: unterminated comment
/usr/include/features.h:19:1: error: unterminated #ifndef
In file included from ../../../../trunk/libgcc/../gcc/tsystem.h:105,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
/usr/include/unistd.h:89:1: error: unterminated comment
/usr/include/unistd.h:23:1: error: unterminated #ifndef
In file included from /usr/include/limits.h:27,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:108,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
/usr/include/features.h:22:1: error: unterminated comment
/usr/include/features.h:19:1: error: unterminated #ifndef
In file included from ../../../../trunk/libgcc/../gcc/tsystem.h:108,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
/usr/include/limits.h:125:26: error: no include path in which to search for
limits.h
/usr/include/limits.h:128:1: error: unterminated comment
In file included from /usr/include/time.h:29,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:111,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
/usr/include/features.h:22:1: error: unterminated comment
/usr/include/features.h:19:1: error: unterminated #ifndef
In file included from /usr/include/time.h:39,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:111,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:103:1: error:
unterminated comment
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:51:1: error:
unterminated #ifndef
/Develop/sergei/vanilla/build/./gcc/include/stddef.h:31:1: error:
unterminated #if
In file included from /usr/include/bits/time.h:39,.
                 from /usr/include/time.h:43,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:111,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
/usr/include/bits/types.h:108:1: error: unterminated #if
/usr/include/bits/types.h:24:1: error: unterminated #ifndef
In file included from /usr/include/time.h:57,
                 from ../../../../trunk/libgcc/../gcc/tsystem.h:111,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
/usr/include/bits/types.h:108:1: error: unterminated #if
/usr/include/bits/types.h:24:1: error: unterminated #ifndef
In file included from ../../../../trunk/libgcc/../gcc/tsystem.h:111,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
/usr/include/time.h:143:18: error: unterminated comment
/usr/include/time.h:131:1: error: unterminated #ifdef
/usr/include/time.h:24:1: error: unterminated #ifndef
In file included from ../../../../trunk/libgcc/../gcc/libgcc2.c:34:,
../../../../trunk/libgcc/../gcc/tsystem.h:135:23:
warning: ../../../../trunk/libgcc/../include/filenames.h is shorter than
expected
../../../../trunk/libgcc/../gcc/libgcc2.c:35:23:
warning: ../../../../trunk/libgcc/../gcc/coretypes.h is shorter than
expected
../../../../trunk/libgcc/../gcc/libgcc2.c:36:16: warning: ../.././gcc/tm.h
is shorter than expected.
In file included from ../.././gcc/tm.h:7,:
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:36:
../.././gcc/options.h:3:1: error: unterminated #ifndef
In file included from ../../../../trunk/libgcc/../gcc/libgcc2.c:36:
../.././gcc/tm.h:8:35:
warning: ../../../../trunk/libgcc/../gcc/config/i386/biarch64.h is shorter
than expected
In file included from ../.././gcc/tm.h:9,..
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:36:
../../../../trunk/libgcc/../gcc/config/i386/i386.h:66:34:
warning: ../../../../trunk/libgcc/../gcc/config/vxworks-dummy.h is shorter
than expected
../../../../trunk/libgcc/../gcc/config/i386/i386.h:113:16: error:
unterminated comment
In file included from ../../../../trunk/libgcc/../gcc/libgcc2.c:36:
../.././gcc/tm.h:10:31:
warning: ../../../../trunk/libgcc/../gcc/config/i386/unix.h is shorter than
expected
../.././gcc/tm.h:11:30:
warning: ../../../../trunk/libgcc/../gcc/config/i386/att.h is shorter than
expected
../.././gcc/tm.h:12:28:
warning: ../../../../trunk/libgcc/../gcc/config/dbxelf.h is shorter than
expected
In file included from ../.././gcc/tm.h:13,..
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:36:
../../../../trunk/libgcc/../gcc/config/elfos.h:123:1: error: unterminated
comment
In file included from ../.././gcc/tm.h:14,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:36:
../../../../trunk/libgcc/../gcc/config/svr4.h:113:1: error: unterminated
comment
In file included from ../.././gcc/tm.h:15,
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:36:
../../../../trunk/libgcc/../gcc/config/linux.h:116:33: warning: missing
terminating " character
In file included from ../../../../trunk/libgcc/../gcc/libgcc2.c:36:
../.././gcc/tm.h:16:33:
warning: ../../../../trunk/libgcc/../gcc/config/i386/x86-64.h is shorter
than expected
../.././gcc/tm.h:17:34:
warning: ../../../../trunk/libgcc/../gcc/config/i386/linux64.h is shorter
than expected
In file included from ../.././gcc/tm.h:18,..
                 from ../../../../trunk/libgcc/../gcc/libgcc2.c:36:
../../../../trunk/libgcc/../gcc/defaults.h:117:57: warning:
backslash-newline at end of file
../../../../trunk/libgcc/../gcc/defaults.h:116:1: error: unterminated #if
../../../../trunk/libgcc/../gcc/defaults.h:23:1: error: unterminated
#ifndef
In file included from ../../../../trunk/libgcc/../gcc/libgcc2.c:66:
../../../../trunk/libgcc/../gcc/libgcc2.h:130:1: error: unterminated
comment
../../../../trunk/libgcc/../gcc/libgcc2.h:30:1: error: unterminated #ifndef
../../../../trunk/libgcc/../gcc/libgcc2.c:171:1: error: unterminated #ifdef
../../../../trunk/libgcc/../gcc/libgcc2.c:160:1: error: unterminated #ifdef
../../../../trunk/libgcc/../gcc/libgcc2.c:64:1: error: unterminated #if
make[3]: *** [_muldi3.o] Error 1
make[3]: Leaving directory
`/Develop/sergei/vanilla/build/x86_64-redhat-linux/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/Develop/sergei/vanilla/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/Develop/sergei/vanilla/build'
make: *** [bootstrap-lean] Error 2

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Building gcc on x86_64
@ 2009-03-15 16:22 Revital1 Eres
  0 siblings, 0 replies; 6+ messages in thread
From: Revital1 Eres @ 2009-03-15 16:22 UTC (permalink / raw)
  To: gcc-help


Hello,

I get the following error when building gcc trunk version 144868 on x86_64.
I appreciate any help.

Thanks,
Revital

Configure with:

../gcc/configure --prefix=/Develop/mainline_patch/build --disable-bootstrap
--enable-languages=c,c++,fortran --with-m    pfr=/usr/local/ --disable-nls
--disable-multilib

The error:

echo | /Develop/mainline_patch/build/./gcc/xgcc
-B/Develop/mainline_patch/build/./gcc/
-B/Develop/mainline_patch/build/x86_64-unknown-linux-gnu/bin/
-B/Develop/mainline_patch/build/x86_64-unknown-linux-gnu/lib/
-isystem /Develop/mainline_patch/build/x86_64-unknown-linux-gnu/include
-isystem /Develop/mainline_patch/build/x86_64-unknown-linux-gnu/sys-include
-E -dM - | \
          sed -n -e 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p' \
                 -e 's/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
          sort -u > tmp-macro_list
xgcc: /Develop/mainline_patch/build/./gcc/specs: Invalid argument
/bin/sh ../../gcc/gcc/../move-if-change tmp-macro_list macro_list
...
Fixing headers into /Develop/mainline_patch/build/gcc/include-fixed for
x86_64-unknown-linux-gnu target
No forbidden identifiers defined by this target
Finding directories and links to directories
 Searching /usr/include/.
Making symbolic directory links
Fixing directory /usr/include
into /Develop/mainline_patch/build/gcc/include-fixed
error 22 (Invalid argument) stat-ing libgsf-1/gsf/gsf-output-csv.h
error 22 (Invalid argument) stat-ing libgsf-1/gsf/gsf-input-iochannel.h
error 22 (Invalid argument) stat-ing libgsf-1/gsf/gsf-input-stdio.h
error 22 (Invalid argument) stat-ing libgsf-1/gsf/gsf-output-iochannel.h
error 22 (Invalid argument) stat-ing libgsf-1/gsf/gsf-infile-impl.h
...
checking for
x86_64-unknown-linux-gnu-gcc... /Develop/mainline_patch/build/./gcc/xgcc
-B/Develop/mainline_patch/build/./gcc/
-B/Develop/mainline_patch/build/x86_64-unknown-linux-gnu/bin/
-B/Develop/mainline_patch/build/x86_64-unknown-linux-gnu/lib/
-isystem /Develop/mainline_patch/build/x86_64-unknown-linux-gnu/include
-isystem /Develop/mainline_patch/build/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in
`/Develop/mainline_patch/build/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/Develop/mainline_patch/build'
make: *** [all] Error 2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-19 23:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-17 17:28 Building gcc on X86_64 Smith-Rowland, Edward M
2009-03-15 16:22 Building gcc on x86_64 Revital1 Eres
2009-03-19 14:21 Sergei Dyshel
2009-03-19 14:26 ` John (Eljay) Love-Jensen
2009-03-19 14:38   ` Sergei Dyshel
2009-03-19 23:22 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).