public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* Almost successfull compiling GCJ, however..
@ 2012-03-05  0:28 Me Myself and I
  2012-03-05  0:34 ` Per Bothner
  0 siblings, 1 reply; 20+ messages in thread
From: Me Myself and I @ 2012-03-05  0:28 UTC (permalink / raw)
  To: gcc-help, java


I can't succeed in making much further progress based on this.
 
It seems that people think the problem is that I'm creating
 
some conflict by executing commands in the wrong directory.
 
My source code directory is
 
/home/User/gcc-4.6.2/
 
I run ./contrib/download_prerequisites; inside it.
 
I then create 
 
/home/User/objdir/
 
and cd to this directory.  Inside which I run 
 
./../gcc-4.6.2/configure --prefix=/home/User/;
 
 
which is not inside the source directory, being is /home/User/gcc-4.6.2/
 
 
Having configured successfully, I then 
 
make clean;
 
make;
 
which provides me with the same error I have been reporting.
 
What should I do from this stage?
 
 
----------------------------------------
> Date: Thu, 1 Mar 2012 13:09:04 +0200
> From: kai.ruottu@wippies.com
> To: jwakely.gcc@gmail.com
> CC: stargate7thsymbol@live.co.uk; gcc-help@gcc.gnu.org; java@gcc.gnu.org
> Subject: Re: gcc-4.6.2 can't complete make
>
> 1.3.2012 2:54, Jonathan Wakely kirjoitti:
>
> > On 1 March 2012 00:46, Me Myself and I wrote:
> >>
> >> I have started again, moving objdir outside the gcc-4.6.2 source code directory.
> >>
> >> My configure completes, however I still get errors which look remarkably like this:
> >>
> >>
> >> /home/User/objdir
> >>
> >> make install;
> >>
> >> fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
> >> fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
> >> make[5] *** [fib2_ui.lo] Error 1
> >> make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
> >> make[4] ***all-recursive] Error 1
> >> make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> >> make[3] *** [all] Error 2
> >> make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> >> make[2] *** [all-stage1-gmp] Error 2
> >> make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
> >> make[1] *** [stage1-bubble] Error 2
> >> make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
> >> make: *** [all] Error 2
> >
> > This error comes from running inside the source dir. Either you're
> > still running there, or this isn't the error you're getting.
> >
> > FIB_TABLE_LIMIT should be defined by a file called fib_table.h which
> > gets generated in objdir/gmp
>
> Yes, that seems to be true :
>
> [root@localhost gmp]# grep FIB_TABLE_LIMIT *.h
> fib_table.h:#define FIB_TABLE_LIMIT 47
>
> But I would suspect the build in a subdir of the main GCC source
> directory really could have any influence. In my case 'gcc-4.6.2/build'
> was the equivalent to the 'gcc-4.6.2/objdir' here.
>
> BUT what was totally different between my case and Me_Myself_and_I's
> case was the choice for the "preferred build platform". Meanwhile
> some really seem to trust to the achievements of the MS Company and
> its leaders like Steve Ballmer who has referred to the free software
> Linux kernel as a "cancer that attaches itself in an intellectual
> property sense to everything it touches."
> (http://en.wikipedia.org/wiki/Steve_Ballmer) Once this same guy told us
> with Mr. Gates "MS
> Xenix being the future in the 32-bit PC-world", ie their goal was to
> create a commercial Unix for PCs which rules the whole Unix world...
> Who believes, who not...
>
> In any case the configure command for my "MinGW-targeted GCC on MinGW-
> host" was :
>
> ../configure --build=i686-linux-gnu --host=i586-mingw32 \
> --target=i686-mingw32 --enable-languages=c,c++,java \
> --prefix=/opt/cross --libexecdir=/opt/cross/lib \
> --disable-sjlj-exceptions --with-dwarf2 --enable-shared \
> --disable-win32-registry --disable-nls \
> --enable-libstdcxx-debug --enable-version-specific-runtime-libs \
> --with-gxx-include-dir=/opt/cross/include/c++/4.6.2 \
> --program-prefix=i686-mingw32- --program-suffix=-4.6
>
> Using a different CPU name ('i686' instead of 'i586') made it to be a
> crosscompiler, quite identical with the original Linux-hosted one, not
> a different native GCC...
>
> The '--enable-libgcj' would have been required in order to get libjava
> but as everyone who has tried this knows, producing it doesn't work and
> therefore its build for MinGW target is disabled as default in the
> gcc-4.6.2 sources...
>
> The $host GCC in the build was :
>
> [root@localhost gcc-4.6.2]# i586-mingw32-gcc-4.6 -v
> Using built-in specs.
> COLLECT_GCC=i586-mingw32-gcc-4.6
> COLLECT_LTO_WRAPPER=/opt/cross/lib/gcc/i586-mingw32/4.6.2/lto-wrapper
> Target: i586-mingw32
> Configured with: ../configure --build=i686-linux-gnu
> --host=i686-linux-gnu --target=i586-mingw32
> --enable-languages=c,c++,java --prefix=/opt/cross
> --libexecdir=/opt/cross/lib --enable-shared --enable-libstdcxx-debug
> --enable-version-specific-runtime-libs --disable-sjlj-exceptions
> --disable-win32-registry --disable-nls --with-dwarf2
> --with-gxx-include-dir=/opt/cross/include/c++/4.6.2
> --program-prefix=i586-mingw32- --program-suffix=-4.6
> Thread model: win32
> gcc version 4.6.2 (by Kai Ruottu)
>
> On Linux it succeeded nicely to produce gmp, mpfr and mpc from their
> sources after making one fix in the used mpfr-2.4.2 sources, the
> fixed code is the following :
>
> cygwin* | mingw* | pw32* | cegcc*)
> # When not using gcc, we currently assume that we are using
> # Microsoft Visual C++.
> # hardcode_libdir_flag_spec is actually meaningless, as there is
> # no search path for DLLs.
> hardcode_libdir_flag_spec=' '
> allow_undefined_flag=unsupported
> # Tell ltmain to make .lib files, not .a files.
> libext=a
> # Tell ltmain to make .dll files, not .so files.
>
> Originally there was :
>
> # Tell ltmain to make .lib files, not .a files.
> libext=lib
>
> which caused the mpc configure to not find a suitable 'libmpfr' :-(
> The bug was in two places in 'mpfr-2.4.2/configure'...
>
> Ok, here were hints for those who are going to create a MinGW-hosted
> and MinGW-targeted gcc-4.6.2 on some sane build platform, not on
> Windoze...
>
> The error which I got when trying to get libjava was :
>
> libtool: compile: /home/src/gcc-4.6.2/build/./gcc/xgcc -shared-libgcc
> -B/home/src/gcc-4.6.2/build/./gcc -nostdinc++
> -L/home/src/gcc-4.6.2/build/i586-mingw32/libstdc++-v3/src
> -L/home/src/gcc-4.6.2/build/i586-mingw32/libstdc++-v3/src/.libs
> -L/home/src/gcc-4.6.2/build/i586-mingw32/winsup/mingw
> -L/home/src/gcc-4.6.2/build/i586-mingw32/winsup/w32api/lib -isystem
> /home/src/gcc-4.6.2/winsup/mingw/include -isystem
> /home/src/gcc-4.6.2/winsup/w32api/include -B/opt/cross/i586-mingw32/bin/
> -B/opt/cross/i586-mingw32/lib/ -isystem /opt/cross/i586-mingw32/include
> -isystem /opt/cross/i586-mingw32/sys-include -DHAVE_CONFIG_H -I.
> -I../../../libjava -I./include -I./gcj -I../../../libjava -Iinclude
> -I../../../libjava/include -I../../../libjava/classpath/include
> -Iclasspath/include -I../../../libjava/classpath/native/fdlibm
> -I../../../libjava/../boehm-gc/include -I../boehm-gc/include
> -I../../../libjava/libltdl -I../../../libjava/libltdl
> -I../../../libjava/.././libjava/../gcc -I../../../libjava/../zlib
> -I../../../libjava/../libffi/include -I../libffi/include -fno-rtti
> -fnon-call-exceptions -mthreads -fdollars-in-identifiers -Wswitch-enum
> -D_FILE_OFFSET_BITS=64 -ffloat-store -fomit-frame-pointer -Usun
> -fno-omit-frame-pointer -Wextra -Wall -D_GNU_SOURCE
> -DPREFIX=\"/opt/cross\"
> -DTOOLEXECLIBDIR=\"/opt/cross/lib/gcc/i586-mingw32/4.6.2\"
> -DJAVA_HOME=\"/opt/cross\"
> -DBOOT_CLASS_PATH=\"/opt/cross/share/java/libgcj-4.6.2.jar\"
> -DJAVA_EXT_DIRS=\"/opt/cross/share/java/ext\"
> -DGCJ_ENDORSED_DIRS=\"/opt/cross/share/java/gcj-endorsed\"
> -DGCJ_VERSIONED_LIBDIR=\"/opt/cross/lib/gcj-4.6.2-12\"
> -DPATH_SEPARATOR=\":\" -DECJ_JAR_FILE=\"\"
> -DLIBGCJ_DEFAULT_DATABASE=\"/opt/cross/lib/gcj-4.6.2-12/classmap.db\"
> -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.6.2-12/classmap.db\" -g -Os
> -MT jni.lo -MD -MP -MF .deps/jni.Tpo -c ../../../libjava/jni.cc
> -DDLL_EXPORT -DPIC -o .libs/jni.o
> ../../../libjava/jni.cc: In function 'java::lang::Object*
> _Jv_JNI_ToReflectedField(JNIEnv*, jclass, jfieldID, jboolean)':
> ../../../libjava/jni.cc:1663:14: error: new declaration
> 'java::lang::Object* _Jv_JNI_ToReflectedField(JNIEnv*, jclass, jfieldID,
> jboolean)'
> ../../../libjava/java/lang/reflect/Field.h:93:19: error: ambiguates old
> declaration 'java::lang::Object* _Jv_JNI_ToReflectedField(_Jv_JNIEnv*,
> jclass, jfieldID, jboolean)'
> ../../../libjava/java/lang/reflect/Field.h:83:105: error:
> 'java::lang::Class* java::lang::reflect::Field::declaringClass' is private
> ../../../libjava/jni.cc:1669:14: error: within this context
> ../../../libjava/java/lang/reflect/Field.h:85:8: error: 'jint
> java::lang::reflect::Field::offset' is private
> ../../../libjava/jni.cc:1670:14: error: within this context
> ../../../libjava/java/lang/Class.h:675:14: error: '_Jv_Field*
> java::lang::Class::fields' is private
> ../../../libjava/jni.cc:1670:55: error: within this context
> ../../../libjava/java/lang/reflect/Field.h:84:26: error:
> 'java::lang::String* java::lang::reflect::Field::name' is private
> ../../../libjava/jni.cc:1671:14: error: within this context
> ../../../libjava/jni.cc: In function 'java::lang::Object*
> _Jv_JNI_ToReflectedMethod(JNIEnv*, jclass, jmethodID, jboolean)':
> ../../../libjava/jni.cc:1694:15: error: new declaration
> 'java::lang::Object* _Jv_JNI_ToReflectedMethod(JNIEnv*, jclass,
> jmethodID, jboolean)'
> ../../../libjava/java/lang/reflect/Method.h:78:19: error: ambiguates old
> declaration 'java::lang::Object* _Jv_JNI_ToReflectedMethod(_Jv_JNIEnv*,
> jclass, jmethodID, jboolean)'
> ../../../libjava/java/lang/reflect/Constructor.h:19:3: error:
> 'java::lang::reflect::Constructor::Constructor()' is private
> ../../../libjava/jni.cc:1706:41: error: within this context
> ../../../libjava/java/lang/reflect/Constructor.h:56:8: error: 'jint
> java::lang::reflect::Constructor::offset' is private
> ../../../libjava/jni.cc:1707:10: error: within this context
> ../../../libjava/java/lang/Class.h:666:17: error: '_Jv_Method*
> java::lang::Class::<anonymous union>::methods' is private
> ../../../libjava/jni.cc:1707:50: error: within this context
> ../../../libjava/java/lang/reflect/Constructor.h:53:105: error:
> 'java::lang::Class* java::lang::reflect::Constructor::declaringClass' is
> private
> ../../../libjava/jni.cc:1708:10: error: within this context
> ../../../libjava/java/lang/reflect/Method.h:20:3: error:
> 'java::lang::reflect::Method::Method()' is private
> ../../../libjava/jni.cc:1713:31: error: within this context
> ../../../libjava/java/lang/reflect/Method.h:73:8: error: 'jint
> java::lang::reflect::Method::offset' is private
> ../../../libjava/jni.cc:1714:10: error: within this context
> ../../../libjava/java/lang/Class.h:666:17: error: '_Jv_Method*
> java::lang::Class::<anonymous union>::methods' is private
> ../../../libjava/jni.cc:1714:50: error: within this context
> ../../../libjava/java/lang/reflect/Method.h:64:105: error:
> 'java::lang::Class* java::lang::reflect::Method::declaringClass' is private
> ../../../libjava/jni.cc:1715:10: error: within this context
> ../../../libjava/jni.cc: At global scope:
> ../../../libjava/jni.cc:2891:1: error: invalid conversion from
> 'java::lang::Object* (*)(_Jv_JNIEnv*, jclass, jmethodID, jboolean) {aka
> java::lang::Object* (*)(_Jv_JNIEnv*, java::lang::Class*, _Jv_Method*,
> __java_boolean)}' to 'java::lang::Object* (*)(JNIEnv*, jclass,
> jmethodID, jboolean) {aka java::lang::Object* (*)(_Jv_JNIEnv*,
> java::lang::Class*, _Jv_Method*, __java_boolean)}' [-fpermissive]
> ../../../libjava/jni.cc:2891:1: error: invalid conversion from
> 'java::lang::Object* (*)(_Jv_JNIEnv*, jclass, jfieldID, jboolean) {aka
> java::lang::Object* (*)(_Jv_JNIEnv*, java::lang::Class*, _Jv_Field*,
> __java_boolean)}' to 'java::lang::Object* (*)(JNIEnv*, jclass, jfieldID,
> jboolean) {aka java::lang::Object* (*)(_Jv_JNIEnv*, java::lang::Class*,
> _Jv_Field*, __java_boolean)}' [-fpermissive]
> make[3]: *** [jni.lo] Virhe 1
> make[3]: Poistutaan hakemistosta
> "/home/src/gcc-4.6.2/build/i586-mingw32/libjava"
> make[2]: *** [all-recursive] Virhe 1
>
> As the Me_Myself_and_I's case shows, it isn't that wise to start to
> hit one's head against the wall in a garage which is not suitable
> for building anything there, much better would be to find a better
> place (like a nice small factory with working tools) where to build
> things...
 		 	   		   		 	   		  

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

* Re: Almost successfull compiling GCJ, however..
  2012-03-05  0:28 Almost successfull compiling GCJ, however Me Myself and I
@ 2012-03-05  0:34 ` Per Bothner
  2012-03-05  5:11   ` Me Myself and I
  0 siblings, 1 reply; 20+ messages in thread
From: Per Bothner @ 2012-03-05  0:34 UTC (permalink / raw)
  To: Me Myself and I; +Cc: gcc-help, java

On 03/04/2012 04:28 PM, Me Myself and I wrote:
> My source code directory is
>
> /home/User/gcc-4.6.2/
>
> I run ./contrib/download_prerequisites; inside it.
>
> I then create
>
> /home/User/objdir/
>
> and cd to this directory.  Inside which I run
>
> ./../gcc-4.6.2/configure --prefix=/home/User/;
>
>
> which is not inside the source directory, being is /home/User/gcc-4.6.2/

I can't say why this isn't working, but I'd try using an absolute path:

/home/User/gcc-4.6.2/configure --prefix=/home/User/
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/

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

* Almost successfull compiling GCJ, however..
  2012-03-05  0:34 ` Per Bothner
@ 2012-03-05  5:11   ` Me Myself and I
       [not found]     ` <4F54869B.20409@redhat.com>
  0 siblings, 1 reply; 20+ messages in thread
From: Me Myself and I @ 2012-03-05  5:11 UTC (permalink / raw)
  To: gcc-help, java


In response to the previous email to self, I have altered the prefix to be

--prefix=/home/User/

and encounter the precise same sort of error:

make;

fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
make[5] *** [fib2_ui.lo] Error 1
make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
make[4] ***all-recursive] Error 1
make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
make[3] *** [all] Error 2
make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
make[2] *** [all-stage1-gmp] Error 2
make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
make[1] *** [stage1-bubble] Error 2
make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
make: *** [all] Error 2

Why on earth doesn't this complete without these errors?  Can I afford to ignore them
and go on to make install; anyway?



> Date: Sun, 4 Mar 2012 16:31:04 -0800
> From: per@bothner.com
> To: stargate7thsymbol@live.co.uk
> CC: gcc-help@gcc.gnu.org; java@gcc.gnu.org
> Subject: Re: Almost successfull compiling GCJ, however..
> 
> On 03/04/2012 04:28 PM, Me Myself and I wrote:
> > My source code directory is
> >
> > /home/User/gcc-4.6.2/
> >
> > I run ./contrib/download_prerequisites; inside it.
> >
> > I then create
> >
> > /home/User/objdir/
> >
> > and cd to this directory.  Inside which I run
> >
> > ./../gcc-4.6.2/configure --prefix=/home/User/;
> >
> >
> > which is not inside the source directory, being is /home/User/gcc-4.6.2/
> 
> I can't say why this isn't working, but I'd try using an absolute path:
> 
> /home/User/gcc-4.6.2/configure --prefix=/home/User/
> -- 
> 	--Per Bothner
> per@bothner.com   http://per.bothner.com/
 		 	   		  

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

* RE: Almost successfull compiling GCJ, however..
       [not found]     ` <4F54869B.20409@redhat.com>
@ 2012-03-05 23:39       ` Me Myself and I
  2012-03-06 14:58         ` Ian Lance Taylor
  0 siblings, 1 reply; 20+ messages in thread
From: Me Myself and I @ 2012-03-05 23:39 UTC (permalink / raw)
  To: gcc-help, java


obj/gmp/fib_table.h

is an empty file.

?

> Date: Mon, 5 Mar 2012 09:25:47 +0000
> From: aph@redhat.com
> To: gcc-help@gcc.gnu.org
> Subject: Re: Almost successfull compiling GCJ, however..
> 
> On 03/05/2012 05:10 AM, Me Myself and I wrote:
> > 
> > In response to the previous email to self, I have altered the prefix to be
> > 
> > --prefix=/home/User/
> > 
> > and encounter the precise same sort of error:
> > 
> > make;
> > 
> > fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
> > fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
> > make[5] *** [fib2_ui.lo] Error 1
> > make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
> > make[4] ***all-recursive] Error 1
> > make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> > make[3] *** [all] Error 2
> > make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> > make[2] *** [all-stage1-gmp] Error 2
> > make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
> > make[1] *** [stage1-bubble] Error 2
> > make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
> > make: *** [all] Error 2
> > 
> > Why on earth doesn't this complete without these errors?  Can I afford to ignore them
> > and go on to make install; anyway?
> 
> It's hard for us to understand why you haven't looked to see
> what the problem is.  FIB_TABLE_LIMIT should be defined in
> obj/gmp/fib_table.h.
> 
> Andrew.
 		 	   		  

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

* Re: Almost successfull compiling GCJ, however..
  2012-03-05 23:39       ` Me Myself and I
@ 2012-03-06 14:58         ` Ian Lance Taylor
  2012-03-07  0:28           ` Me Myself and I
  2012-03-07  2:42           ` Me Myself and I
  0 siblings, 2 replies; 20+ messages in thread
From: Ian Lance Taylor @ 2012-03-06 14:58 UTC (permalink / raw)
  To: Me Myself and I; +Cc: gcc-help, java

Me Myself and I <stargate7thsymbol@live.co.uk> writes:

> obj/gmp/fib_table.h
>
> is an empty file.
>
> ?

That is not good.  fib_table.h is a generated file.  It is built at
runtime by the gen-fib program.  Try simply removing fib_table.h, and
see if it gets rebuilt correctly.  If not, look at the commands that
make shows.  You should see it running gen-fib.  You will need to figure
out why gen-fib is not outputing anything.

Ian


>> Date: Mon, 5 Mar 2012 09:25:47 +0000
>> From: aph@redhat.com
>> To: gcc-help@gcc.gnu.org
>> Subject: Re: Almost successfull compiling GCJ, however..
>> 
>> On 03/05/2012 05:10 AM, Me Myself and I wrote:
>> > 
>> > In response to the previous email to self, I have altered the prefix to be
>> > 
>> > --prefix=/home/User/
>> > 
>> > and encounter the precise same sort of error:
>> > 
>> > make;
>> > 
>> > fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
>> > fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
>> > make[5] *** [fib2_ui.lo] Error 1
>> > make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
>> > make[4] ***all-recursive] Error 1
>> > make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
>> > make[3] *** [all] Error 2
>> > make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
>> > make[2] *** [all-stage1-gmp] Error 2
>> > make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
>> > make[1] *** [stage1-bubble] Error 2
>> > make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
>> > make: *** [all] Error 2
>> > 
>> > Why on earth doesn't this complete without these errors?  Can I afford to ignore them
>> > and go on to make install; anyway?
>> 
>> It's hard for us to understand why you haven't looked to see
>> what the problem is.  FIB_TABLE_LIMIT should be defined in
>> obj/gmp/fib_table.h.
>> 
>> Andrew.
>  		 	   		  

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

* RE: Almost successfull compiling GCJ, however..
  2012-03-06 14:58         ` Ian Lance Taylor
@ 2012-03-07  0:28           ` Me Myself and I
  2012-03-07  1:20             ` Jonathan Wakely
  2012-03-07  2:42           ` Me Myself and I
  1 sibling, 1 reply; 20+ messages in thread
From: Me Myself and I @ 2012-03-07  0:28 UTC (permalink / raw)
  To: gcc-help, java


I have already done this process.  I find that gen-fib is indeed there before I start
either my configure or make.  Is there anyone else out there who can suggest
how to get past my problem and proceed further?

> From: iant@google.com
> To: stargate7thsymbol@live.co.uk
> CC: gcc-help@gcc.gnu.org; java@gcc.gnu.org
> Subject: Re: Almost successfull compiling GCJ, however..
> Date: Tue, 6 Mar 2012 06:58:20 -0800
> 
> Me Myself and I <stargate7thsymbol@live.co.uk> writes:
> 
> > obj/gmp/fib_table.h
> >
> > is an empty file.
> >
> > ?
> 
> That is not good.  fib_table.h is a generated file.  It is built at
> runtime by the gen-fib program.  Try simply removing fib_table.h, and
> see if it gets rebuilt correctly.  If not, look at the commands that
> make shows.  You should see it running gen-fib.  You will need to figure
> out why gen-fib is not outputing anything.
> 
> Ian
> 
> 
> >> Date: Mon, 5 Mar 2012 09:25:47 +0000
> >> From: aph@redhat.com
> >> To: gcc-help@gcc.gnu.org
> >> Subject: Re: Almost successfull compiling GCJ, however..
> >> 
> >> On 03/05/2012 05:10 AM, Me Myself and I wrote:
> >> > 
> >> > In response to the previous email to self, I have altered the prefix to be
> >> > 
> >> > --prefix=/home/User/
> >> > 
> >> > and encounter the precise same sort of error:
> >> > 
> >> > make;
> >> > 
> >> > fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
> >> > fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
> >> > make[5] *** [fib2_ui.lo] Error 1
> >> > make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
> >> > make[4] ***all-recursive] Error 1
> >> > make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> >> > make[3] *** [all] Error 2
> >> > make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> >> > make[2] *** [all-stage1-gmp] Error 2
> >> > make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
> >> > make[1] *** [stage1-bubble] Error 2
> >> > make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
> >> > make: *** [all] Error 2
> >> > 
> >> > Why on earth doesn't this complete without these errors?  Can I afford to ignore them
> >> > and go on to make install; anyway?
> >> 
> >> It's hard for us to understand why you haven't looked to see
> >> what the problem is.  FIB_TABLE_LIMIT should be defined in
> >> obj/gmp/fib_table.h.
> >> 
> >> Andrew.
> >  		 	   		  
 		 	   		  

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

* Re: Almost successfull compiling GCJ, however..
  2012-03-07  0:28           ` Me Myself and I
@ 2012-03-07  1:20             ` Jonathan Wakely
  2012-03-07  1:56               ` Jonathan Wakely
  0 siblings, 1 reply; 20+ messages in thread
From: Jonathan Wakely @ 2012-03-07  1:20 UTC (permalink / raw)
  To: Me Myself and I; +Cc: gcc-help, java

On 7 March 2012 00:28, Me Myself and I wrote:
>
> I have already done this process.  I find that gen-fib is indeed there before I start
> either my configure or make.

That's impossible if you're configuring in an empty directory.  Why
aren't you configuring in an empty directory as I suggested in
previous mails?

Remove gen-fib and run 'make' again. See if it is created correctly.

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

* Re: Almost successfull compiling GCJ, however..
  2012-03-07  1:20             ` Jonathan Wakely
@ 2012-03-07  1:56               ` Jonathan Wakely
  0 siblings, 0 replies; 20+ messages in thread
From: Jonathan Wakely @ 2012-03-07  1:56 UTC (permalink / raw)
  To: Me Myself and I; +Cc: gcc-help, java

On 7 March 2012 01:20, Jonathan Wakely wrote:
> On 7 March 2012 00:28, Me Myself and I wrote:
>>
>> I have already done this process.  I find that gen-fib is indeed there before I start
>> either my configure or make.
>
> That's impossible if you're configuring in an empty directory.  Why
> aren't you configuring in an empty directory as I suggested in
> previous mails?
>
> Remove gen-fib and run 'make' again. See if it is created correctly.

Sorry, I meant remove fib_table.h and run 'make' again.

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

* RE: Almost successfull compiling GCJ, however..
  2012-03-06 14:58         ` Ian Lance Taylor
  2012-03-07  0:28           ` Me Myself and I
@ 2012-03-07  2:42           ` Me Myself and I
  2012-03-07  9:23             ` Jonathan Wakely
  1 sibling, 1 reply; 20+ messages in thread
From: Me Myself and I @ 2012-03-07  2:42 UTC (permalink / raw)
  To: gcc-help, java


I am configuring in an empty directory.  What I mean to say

is that gen-fib is in the source directory, having gone download_prerequisites

inside the source directory.

So is there any further idea why obj/gmp/fib_table.h is blank,

and my make doesn't seem to want to finish?

[and by the way, do I still have to use --with-gmp=, --with-mpfr=, with-mpc==
 if download_prerequisites have put them all in sub directories inside
the source code directory anyway?]



> Date: Wed, 7 Mar 2012 01:20:26 +0000
> Subject: Re: Almost successfull compiling GCJ, however..
> From: jwakely.gcc@gmail.com
> To: stargate7thsymbol@live.co.uk
> CC: gcc-help@gcc.gnu.org; java@gcc.gnu.org
> 
> On 7 March 2012 00:28, Me Myself and I wrote:
> >
> > I have already done this process.  I find that gen-fib is indeed there before I start
> > either my configure or make.
> 
> That's impossible if you're configuring in an empty directory.  Why
> aren't you configuring in an empty directory as I suggested in
> previous mails?
> 
> Remove gen-fib and run 'make' again. See if it is created correctly.


> From: iant@google.com
> To: stargate7thsymbol@live.co.uk
> CC: gcc-help@gcc.gnu.org; java@gcc.gnu.org
> Subject: Re: Almost successfull compiling GCJ, however..
> Date: Tue, 6 Mar 2012 06:58:20 -0800
> 
> Me Myself and I <stargate7thsymbol@live.co.uk> writes:
> 
> > obj/gmp/fib_table.h
> >
> > is an empty file.
> >
> > ?
> 
> That is not good.  fib_table.h is a generated file.  It is built at
> runtime by the gen-fib program.  Try simply removing fib_table.h, and
> see if it gets rebuilt correctly.  If not, look at the commands that
> make shows.  You should see it running gen-fib.  You will need to figure
> out why gen-fib is not outputing anything.
> 
> Ian
> 
> 
> >> Date: Mon, 5 Mar 2012 09:25:47 +0000
> >> From: aph@redhat.com
> >> To: gcc-help@gcc.gnu.org
> >> Subject: Re: Almost successfull compiling GCJ, however..
> >> 
> >> On 03/05/2012 05:10 AM, Me Myself and I wrote:
> >> > 
> >> > In response to the previous email to self, I have altered the prefix to be
> >> > 
> >> > --prefix=/home/User/
> >> > 
> >> > and encounter the precise same sort of error:
> >> > 
> >> > make;
> >> > 
> >> > fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
> >> > fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
> >> > make[5] *** [fib2_ui.lo] Error 1
> >> > make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
> >> > make[4] ***all-recursive] Error 1
> >> > make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> >> > make[3] *** [all] Error 2
> >> > make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> >> > make[2] *** [all-stage1-gmp] Error 2
> >> > make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
> >> > make[1] *** [stage1-bubble] Error 2
> >> > make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
> >> > make: *** [all] Error 2
> >> > 
> >> > Why on earth doesn't this complete without these errors?  Can I afford to ignore them
> >> > and go on to make install; anyway?
> >> 
> >> It's hard for us to understand why you haven't looked to see
> >> what the problem is.  FIB_TABLE_LIMIT should be defined in
> >> obj/gmp/fib_table.h.
> >> 
> >> Andrew.
> >  		 	   		  
 		 	   		  

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

* Re: Almost successfull compiling GCJ, however..
  2012-03-07  2:42           ` Me Myself and I
@ 2012-03-07  9:23             ` Jonathan Wakely
  2012-03-07 11:07               ` Me Myself and I
  0 siblings, 1 reply; 20+ messages in thread
From: Jonathan Wakely @ 2012-03-07  9:23 UTC (permalink / raw)
  To: Me Myself and I; +Cc: gcc-help, java

On 7 March 2012 02:41, Me Myself and I wrote:
>
> I am configuring in an empty directory.  What I mean to say
>
> is that gen-fib is in the source directory, having gone download_prerequisites
>
> inside the source directory.

gen-fib is created IN THE BUILD DIRECTORY, it should not be in the
source directory.

So you have been building in the source directory. Delete it all and
start again with clean directories.

> So is there any further idea why obj/gmp/fib_table.h is blank,

Possibly because your source directory has been fouled up by building
in it, then building elsewhere, and who knows what else.

Delete it all and start again. Delete the source directories, delete
the build directory, unpack the GCC tarball again into an empty
directory, then run ./contrib/download_prerequisites again, then
create a new empty build directory, then configure.

> and my make doesn't seem to want to finish?

Because fib_table.h is empty.  It can't finish without it, surely that
much is obvious.

> [and by the way, do I still have to use --with-gmp=, --with-mpfr=, with-mpc==
>  if download_prerequisites have put them all in sub directories inside
> the source code directory anyway?]

No!  I've already told you that.

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

* RE: Almost successfull compiling GCJ, however..
  2012-03-07  9:23             ` Jonathan Wakely
@ 2012-03-07 11:07               ` Me Myself and I
  2012-03-07 18:49                 ` Jonathan Wakely
  0 siblings, 1 reply; 20+ messages in thread
From: Me Myself and I @ 2012-03-07 11:07 UTC (permalink / raw)
  To: gcc-help, java


The directory that I refer to as the build directory is
my objdir/ subdirectory, outside the source code directory.

I successfully run configure within the objdir/ directory.

However make; does not complete (inside the objdir directory)
because of the error I keep on getting,

-----------------------------------------------------------------------------------------------------------------------
fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
make[5] *** [fib2_ui.lo] Error 1
make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
make[4] ***all-recursive] Error 1
make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
make[3] *** [all] Error 2
make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
make[2] *** [all-stage1-gmp] Error 2
make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
make[1] *** [stage1-bubble] Error 2
make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
make: *** [all] Error 2
-----------------------------------------------------------------------------------------------------------------------

there is indeed an instance inside my objdir/ directory,

.../objdir/gmp/gen-fib.exe

(compiling on a windows/unix esque platform)

however I still always get the errors stipulated inside my included dashed lines.

Inspiration, anyone?


> Date: Wed, 7 Mar 2012 09:23:37 +0000
> Subject: Re: Almost successfull compiling GCJ, however..
> From: jwakely.gcc@gmail.com
> To: stargate7thsymbol@live.co.uk
> CC: gcc-help@gcc.gnu.org; java@gcc.gnu.org
> 
> On 7 March 2012 02:41, Me Myself and I wrote:
> >
> > I am configuring in an empty directory.  What I mean to say
> >
> > is that gen-fib is in the source directory, having gone download_prerequisites
> >
> > inside the source directory.
> 
> gen-fib is created IN THE BUILD DIRECTORY, it should not be in the
> source directory.
> 
> So you have been building in the source directory. Delete it all and
> start again with clean directories.
> 
> > So is there any further idea why obj/gmp/fib_table.h is blank,
> 
> Possibly because your source directory has been fouled up by building
> in it, then building elsewhere, and who knows what else.
> 
> Delete it all and start again. Delete the source directories, delete
> the build directory, unpack the GCC tarball again into an empty
> directory, then run ./contrib/download_prerequisites again, then
> create a new empty build directory, then configure.
> 
> > and my make doesn't seem to want to finish?
> 
> Because fib_table.h is empty.  It can't finish without it, surely that
> much is obvious.
> 
> > [and by the way, do I still have to use --with-gmp=, --with-mpfr=, with-mpc==
> >  if download_prerequisites have put them all in sub directories inside
> > the source code directory anyway?]
> 
> No!  I've already told you that.
 		 	   		  

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

* Re: Almost successfull compiling GCJ, however..
  2012-03-07 11:07               ` Me Myself and I
@ 2012-03-07 18:49                 ` Jonathan Wakely
  2012-03-07 23:51                   ` Me Myself and I
  0 siblings, 1 reply; 20+ messages in thread
From: Jonathan Wakely @ 2012-03-07 18:49 UTC (permalink / raw)
  To: Me Myself and I; +Cc: gcc-help, java

Please state the exact configure command you're using now, since you
apparently keep changing it and are using --with-gmp etc. even though
you're building them in-tree.

If you keep repeating the same unhelpful parts of your emails and
omitting the useful information then don't be surprised if you don't
get useful responses.

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

* Almost successfull compiling GCJ, however..
  2012-03-07 18:49                 ` Jonathan Wakely
@ 2012-03-07 23:51                   ` Me Myself and I
  2012-03-08  0:04                     ` Jonathan Wakely
  0 siblings, 1 reply; 20+ messages in thread
From: Me Myself and I @ 2012-03-07 23:51 UTC (permalink / raw)
  To: gcc-help, java


pwd;
/home/User/gcc-4.6.2/
./contrib/download_prerequisites;
cd ..;
mkdir objdir;
cd objdir;
./../gcc-4.6.2/configure;
make;

------------------------------------------------------------------------------------------------------------
fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
make[5] *** [fib2_ui.lo] Error 1
make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
make[4] ***all-recursive] Error 1
make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
make[3] *** [all] Error 2
make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
make[2] *** [all-stage1-gmp] Error 2
make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
make[1] *** [stage1-bubble] Error 2
make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
make: *** [all] Error 2
------------------------------------------------------------------------------------------------------------



----------------------------------------
> Date: Wed, 7 Mar 2012 18:49:14 +0000
> Subject: Re: Almost successfull compiling GCJ, however..
> From: jwakely.gcc@gmail.com
> To: stargate7thsymbol@live.co.uk
> CC: gcc-help@gcc.gnu.org; java@gcc.gnu.org
>
> Please state the exact configure command you're using now, since you
> apparently keep changing it and are using --with-gmp etc. even though
> you're building them in-tree.
>
> If you keep repeating the same unhelpful parts of your emails and
> omitting the useful information then don't be surprised if you don't
> get useful responses.
 		 	   		  

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

* Re: Almost successfull compiling GCJ, however..
  2012-03-07 23:51                   ` Me Myself and I
@ 2012-03-08  0:04                     ` Jonathan Wakely
  2012-03-08  1:27                       ` Me Myself and I
  0 siblings, 1 reply; 20+ messages in thread
From: Jonathan Wakely @ 2012-03-08  0:04 UTC (permalink / raw)
  To: Me Myself and I; +Cc: gcc-help, java

On 7 March 2012 23:50, Me Myself and I wrote:
>
> pwd;
> /home/User/gcc-4.6.2/
> ./contrib/download_prerequisites;
> cd ..;
> mkdir objdir;
> cd objdir;
> ./../gcc-4.6.2/configure;
> make;
>
> ------------------------------------------------------------------------------------------------------------
> fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
> fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
> make[5] *** [fib2_ui.lo] Error 1
> make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
> make[4] ***all-recursive] Error 1
> make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> make[3] *** [all] Error 2
> make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> make[2] *** [all-stage1-gmp] Error 2
> make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
> make[1] *** [stage1-bubble] Error 2
> make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
> make: *** [all] Error 2
> ------------------------------------------------------------------------------------------------------------

This error message doesn't match the commands above, it shows different paths.

Assuming that's just because you're copying and pasting the wrong thing...

You need to do as Ian suggests here:
http://gcc.gnu.org/ml/gcc-help/2012-03/msg00061.html

Delete the header fib_table.h
Run make
See what command is run to recreate fib_table.h
Try running it manually
See why it generates an empty file

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

* RE: Almost successfull compiling GCJ, however..
  2012-03-08  0:04                     ` Jonathan Wakely
@ 2012-03-08  1:27                       ` Me Myself and I
  2012-03-08  6:47                         ` Ian Lance Taylor
  0 siblings, 1 reply; 20+ messages in thread
From: Me Myself and I @ 2012-03-08  1:27 UTC (permalink / raw)
  To: gcc-help, java


./contrib/download_prerequisites;
, run inside gcc-4.6.2/, puts gmp/, mpc/, mpfr/ directories correctly linked
to those required libraries.

The error message that I'm getting is related presumably to these subdirectories.

I have also deleted fib_table.h and done make; again.

I do notice that the gmsfmt.exe command is missing, and I can't seem to find
an exe copy of this, for windows, over the internet.

Ian seems to say that gen-fib.exe isn't outputing the information it needs to.

Apart from an aparent possibile problem with gmsfmt.exe, which my make can't find,

I can't see any other problem, and still get the same error message block that I've been

talking about.

Can someone help further, or give me a URL for gmsfmt.exe?


> Date: Thu, 8 Mar 2012 00:04:01 +0000
> Subject: Re: Almost successfull compiling GCJ, however..
> From: jwakely.gcc@gmail.com
> To: stargate7thsymbol@live.co.uk
> CC: gcc-help@gcc.gnu.org; java@gcc.gnu.org
> 
> On 7 March 2012 23:50, Me Myself and I wrote:
> >
> > pwd;
> > /home/User/gcc-4.6.2/
> > ./contrib/download_prerequisites;
> > cd ..;
> > mkdir objdir;
> > cd objdir;
> > ./../gcc-4.6.2/configure;
> > make;
> >
> > ------------------------------------------------------------------------------------------------------------
> > fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
> > fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
> > make[5] *** [fib2_ui.lo] Error 1
> > make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
> > make[4] ***all-recursive] Error 1
> > make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> > make[3] *** [all] Error 2
> > make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> > make[2] *** [all-stage1-gmp] Error 2
> > make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
> > make[1] *** [stage1-bubble] Error 2
> > make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
> > make: *** [all] Error 2
> > ------------------------------------------------------------------------------------------------------------
> 
> This error message doesn't match the commands above, it shows different paths.
> 
> Assuming that's just because you're copying and pasting the wrong thing...
> 
> You need to do as Ian suggests here:
> http://gcc.gnu.org/ml/gcc-help/2012-03/msg00061.html
> 
> Delete the header fib_table.h
> Run make
> See what command is run to recreate fib_table.h
> Try running it manually
> See why it generates an empty file
 		 	   		  

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

* Re: Almost successfull compiling GCJ, however..
  2012-03-08  1:27                       ` Me Myself and I
@ 2012-03-08  6:47                         ` Ian Lance Taylor
  2012-03-08  8:18                           ` Me Myself and I
  0 siblings, 1 reply; 20+ messages in thread
From: Ian Lance Taylor @ 2012-03-08  6:47 UTC (permalink / raw)
  To: Me Myself and I; +Cc: gcc-help, java

Me Myself and I <stargate7thsymbol@live.co.uk> writes:

> ./contrib/download_prerequisites;
> , run inside gcc-4.6.2/, puts gmp/, mpc/, mpfr/ directories correctly linked
> to those required libraries.
>
> The error message that I'm getting is related presumably to these subdirectories.
>
> I have also deleted fib_table.h and done make; again.
>
> I do notice that the gmsfmt.exe command is missing, and I can't seem to find
> an exe copy of this, for windows, over the internet.
>
> Ian seems to say that gen-fib.exe isn't outputing the information it needs to.
>
> Apart from an aparent possibile problem with gmsfmt.exe, which my make can't find,
>
> I can't see any other problem, and still get the same error message block that I've been
>
> talking about.
>
> Can someone help further, or give me a URL for gmsfmt.exe?


I don't know what gmsfmt.exe is.  I also don't know why you are talking
about.

When you remove fib_table.h and run make again, what is the exact
output?

If you run the gen-fib.exe program, what happens?

Ian



>
>
>> Date: Thu, 8 Mar 2012 00:04:01 +0000
>> Subject: Re: Almost successfull compiling GCJ, however..
>> From: jwakely.gcc@gmail.com
>> To: stargate7thsymbol@live.co.uk
>> CC: gcc-help@gcc.gnu.org; java@gcc.gnu.org
>> 
>> On 7 March 2012 23:50, Me Myself and I wrote:
>> >
>> > pwd;
>> > /home/User/gcc-4.6.2/
>> > ./contrib/download_prerequisites;
>> > cd ..;
>> > mkdir objdir;
>> > cd objdir;
>> > ./../gcc-4.6.2/configure;
>> > make;
>> >
>> > ------------------------------------------------------------------------------------------------------------
>> > fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
>> > fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
>> > make[5] *** [fib2_ui.lo] Error 1
>> > make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
>> > make[4] ***all-recursive] Error 1
>> > make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
>> > make[3] *** [all] Error 2
>> > make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
>> > make[2] *** [all-stage1-gmp] Error 2
>> > make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
>> > make[1] *** [stage1-bubble] Error 2
>> > make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
>> > make: *** [all] Error 2
>> > ------------------------------------------------------------------------------------------------------------
>> 
>> This error message doesn't match the commands above, it shows different paths.
>> 
>> Assuming that's just because you're copying and pasting the wrong thing...
>> 
>> You need to do as Ian suggests here:
>> http://gcc.gnu.org/ml/gcc-help/2012-03/msg00061.html
>> 
>> Delete the header fib_table.h
>> Run make
>> See what command is run to recreate fib_table.h
>> Try running it manually
>> See why it generates an empty file
>  		 	   		  

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

* RE: Almost successfull compiling GCJ, however..
  2012-03-08  6:47                         ` Ian Lance Taylor
@ 2012-03-08  8:18                           ` Me Myself and I
  2012-03-08 10:01                             ` Andrew Haley
                                               ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Me Myself and I @ 2012-03-08  8:18 UTC (permalink / raw)
  To: gcc-help, java


When I remove fib_table.h,

and attempt to make; again inside objdir/

I get exactly the same error message as before, just earlier on:

---------------------------------------------------------------------------------------------------------------------
fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
make[5] *** [fib2_ui.lo] Error 1
make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
make[4] ***all-recursive] Error 1
make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
make[3] *** [all] Error 2
make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
make[2] *** [all-stage1-gmp] Error 2
make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
make[1] *** [stage1-bubble] Error 2
make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
make: *** [all] Error 2
---------------------------------------------------------------------------------------------------------------------

> From: iant@google.com
> To: stargate7thsymbol@live.co.uk
> CC: gcc-help@gcc.gnu.org; java@gcc.gnu.org
> Subject: Re: Almost successfull compiling GCJ, however..
> Date: Wed, 7 Mar 2012 22:47:00 -0800
> 
> Me Myself and I <stargate7thsymbol@live.co.uk> writes:
> 
> > ./contrib/download_prerequisites;
> > , run inside gcc-4.6.2/, puts gmp/, mpc/, mpfr/ directories correctly linked
> > to those required libraries.
> >
> > The error message that I'm getting is related presumably to these subdirectories.
> >
> > I have also deleted fib_table.h and done make; again.
> >
> > I do notice that the gmsfmt.exe command is missing, and I can't seem to find
> > an exe copy of this, for windows, over the internet.
> >
> > Ian seems to say that gen-fib.exe isn't outputing the information it needs to.
> >
> > Apart from an aparent possibile problem with gmsfmt.exe, which my make can't find,
> >
> > I can't see any other problem, and still get the same error message block that I've been
> >
> > talking about.
> >
> > Can someone help further, or give me a URL for gmsfmt.exe?
> 
> 
> I don't know what gmsfmt.exe is.  I also don't know why you are talking
> about.
> 
> When you remove fib_table.h and run make again, what is the exact
> output?
> 
> If you run the gen-fib.exe program, what happens?
> 
> Ian
> 
> 
> 
> >
> >
> >> Date: Thu, 8 Mar 2012 00:04:01 +0000
> >> Subject: Re: Almost successfull compiling GCJ, however..
> >> From: jwakely.gcc@gmail.com
> >> To: stargate7thsymbol@live.co.uk
> >> CC: gcc-help@gcc.gnu.org; java@gcc.gnu.org
> >> 
> >> On 7 March 2012 23:50, Me Myself and I wrote:
> >> >
> >> > pwd;
> >> > /home/User/gcc-4.6.2/
> >> > ./contrib/download_prerequisites;
> >> > cd ..;
> >> > mkdir objdir;
> >> > cd objdir;
> >> > ./../gcc-4.6.2/configure;
> >> > make;
> >> >
> >> > ------------------------------------------------------------------------------------------------------------
> >> > fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
> >> > fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
> >> > make[5] *** [fib2_ui.lo] Error 1
> >> > make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
> >> > make[4] ***all-recursive] Error 1
> >> > make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> >> > make[3] *** [all] Error 2
> >> > make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> >> > make[2] *** [all-stage1-gmp] Error 2
> >> > make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
> >> > make[1] *** [stage1-bubble] Error 2
> >> > make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
> >> > make: *** [all] Error 2
> >> > ------------------------------------------------------------------------------------------------------------
> >> 
> >> This error message doesn't match the commands above, it shows different paths.
> >> 
> >> Assuming that's just because you're copying and pasting the wrong thing...
> >> 
> >> You need to do as Ian suggests here:
> >> http://gcc.gnu.org/ml/gcc-help/2012-03/msg00061.html
> >> 
> >> Delete the header fib_table.h
> >> Run make
> >> See what command is run to recreate fib_table.h
> >> Try running it manually
> >> See why it generates an empty file
> >  		 	   		  
 		 	   		  

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

* Re: Almost successfull compiling GCJ, however..
  2012-03-08  8:18                           ` Me Myself and I
@ 2012-03-08 10:01                             ` Andrew Haley
       [not found]                             ` <CAM1kHc0_-ASxEmHs2rW8HYv7foo70kF4Ztr-J+Q3coD6THLsKA@mail.gmail.com>
  2012-03-09 16:19                             ` Ian Lance Taylor
  2 siblings, 0 replies; 20+ messages in thread
From: Andrew Haley @ 2012-03-08 10:01 UTC (permalink / raw)
  To: java

On 03/08/2012 08:18 AM, Me Myself and I wrote:
> When I remove fib_table.h,
> 
> and attempt to make; again inside objdir/
> 
> I get exactly the same error message as before, just earlier on:

Did you capture the output?  Did it try to make fib_table.h?

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

* Almost successfull compiling GCJ, however..
       [not found]                             ` <CAM1kHc0_-ASxEmHs2rW8HYv7foo70kF4Ztr-J+Q3coD6THLsKA@mail.gmail.com>
@ 2012-03-09  2:32                               ` Me Myself and I
  0 siblings, 0 replies; 20+ messages in thread
From: Me Myself and I @ 2012-03-09  2:32 UTC (permalink / raw)
  To: gcc-help, java


I have gone through all of this, and found no problems.

gen-fib doesn't seem to be a command that runs from prompt.

Furthermore, I have gotten rid of the gen-fib.h file,

and have exactly the same issue as outlined previously (here).

Is there anyone who can get me further past these errors?


> Date: Thu, 8 Mar 2012 09:59:12 +0000
> Subject: Re: Almost successfull compiling GCJ, however..
> From: dnpaterson@gmail.com
> To: stargate7thsymbol@live.co.uk
> CC: gcc-help@gcc.gnu.org
> 
> On 8 March 2012 08:18, Me Myself and I <stargate7thsymbol@live.co.uk> wrote:
> >
> > When I remove fib_table.h,
> >
> > and attempt to make; again inside objdir/
> >
> > I get exactly the same error message as before, just earlier on:
> >
> > ---------------------------------------------------------------------------------------------------------------------
> > fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
> > fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
> > make[5] *** [fib2_ui.lo] Error 1
> > make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
> > make[4] ***all-recursive] Error 1
> > make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> > make[3] *** [all] Error 2
> > make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> > make[2] *** [all-stage1-gmp] Error 2
> > make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
> > make[1] *** [stage1-bubble] Error 2
> > make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
> > make: *** [all] Error 2
> > ---------------------------------------------------------------------------------------------------------------------
> 
> It's been suggested already, but I can't see where you confirmed you'd
> done it - have you tried deleting your
> source directory and re-un-zipping the original source before you do anything?
> 
> It's possible you have some corruption of the source tree caused by
> running configure within it previously.
> 
> And please copy and paste the commands and the output after doing
> this, as it looks like you're re-copying
> output messages from old emails, not from your latest attempts.
> 
> David P.
 		 	   		  

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

* Re: Almost successfull compiling GCJ, however..
  2012-03-08  8:18                           ` Me Myself and I
  2012-03-08 10:01                             ` Andrew Haley
       [not found]                             ` <CAM1kHc0_-ASxEmHs2rW8HYv7foo70kF4Ztr-J+Q3coD6THLsKA@mail.gmail.com>
@ 2012-03-09 16:19                             ` Ian Lance Taylor
  2 siblings, 0 replies; 20+ messages in thread
From: Ian Lance Taylor @ 2012-03-09 16:19 UTC (permalink / raw)
  To: Me Myself and I; +Cc: gcc-help, java

Me Myself and I <stargate7thsymbol@live.co.uk> writes:

> When I remove fib_table.h,
>
> and attempt to make; again inside objdir/
>
> I get exactly the same error message as before, just earlier on:


Show us the exact make output that includes that command that is run to
create fib_table.h.

Ian



> ---------------------------------------------------------------------------------------------------------------------
> fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
> fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
> make[5] *** [fib2_ui.lo] Error 1
> make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
> make[4] ***all-recursive] Error 1
> make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> make[3] *** [all] Error 2
> make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
> make[2] *** [all-stage1-gmp] Error 2
> make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
> make[1] *** [stage1-bubble] Error 2
> make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
> make: *** [all] Error 2
> ---------------------------------------------------------------------------------------------------------------------
>
>> From: iant@google.com
>> To: stargate7thsymbol@live.co.uk
>> CC: gcc-help@gcc.gnu.org; java@gcc.gnu.org
>> Subject: Re: Almost successfull compiling GCJ, however..
>> Date: Wed, 7 Mar 2012 22:47:00 -0800
>> 
>> Me Myself and I <stargate7thsymbol@live.co.uk> writes:
>> 
>> > ./contrib/download_prerequisites;
>> > , run inside gcc-4.6.2/, puts gmp/, mpc/, mpfr/ directories correctly linked
>> > to those required libraries.
>> >
>> > The error message that I'm getting is related presumably to these subdirectories.
>> >
>> > I have also deleted fib_table.h and done make; again.
>> >
>> > I do notice that the gmsfmt.exe command is missing, and I can't seem to find
>> > an exe copy of this, for windows, over the internet.
>> >
>> > Ian seems to say that gen-fib.exe isn't outputing the information it needs to.
>> >
>> > Apart from an aparent possibile problem with gmsfmt.exe, which my make can't find,
>> >
>> > I can't see any other problem, and still get the same error message block that I've been
>> >
>> > talking about.
>> >
>> > Can someone help further, or give me a URL for gmsfmt.exe?
>> 
>> 
>> I don't know what gmsfmt.exe is.  I also don't know why you are talking
>> about.
>> 
>> When you remove fib_table.h and run make again, what is the exact
>> output?
>> 
>> If you run the gen-fib.exe program, what happens?
>> 
>> Ian
>> 
>> 
>> 
>> >
>> >
>> >> Date: Thu, 8 Mar 2012 00:04:01 +0000
>> >> Subject: Re: Almost successfull compiling GCJ, however..
>> >> From: jwakely.gcc@gmail.com
>> >> To: stargate7thsymbol@live.co.uk
>> >> CC: gcc-help@gcc.gnu.org; java@gcc.gnu.org
>> >> 
>> >> On 7 March 2012 23:50, Me Myself and I wrote:
>> >> >
>> >> > pwd;
>> >> > /home/User/gcc-4.6.2/
>> >> > ./contrib/download_prerequisites;
>> >> > cd ..;
>> >> > mkdir objdir;
>> >> > cd objdir;
>> >> > ./../gcc-4.6.2/configure;
>> >> > make;
>> >> >
>> >> > ------------------------------------------------------------------------------------------------------------
>> >> > fib2_ui.c:76:29: error: 'FIB_TABLE_LIMIT' undeclared (first use in this function)
>> >> > fib2_ui.c:76:29: note: each undeclared identifier is reported only once for each function it appears in
>> >> > make[5] *** [fib2_ui.lo] Error 1
>> >> > make[5] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp/mpn'
>> >> > make[4] ***all-recursive] Error 1
>> >> > make[4] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
>> >> > make[3] *** [all] Error 2
>> >> > make[3] Leaving directory '/home/User/gcc-4.6.2/objdir/gmp'
>> >> > make[2] *** [all-stage1-gmp] Error 2
>> >> > make[2] Leaving directory '/home/User/gcc-4.6.2/objdir'
>> >> > make[1] *** [stage1-bubble] Error 2
>> >> > make[1] Leaving directory '/home/User/gcc-4.6.2/objdir'
>> >> > make: *** [all] Error 2
>> >> > ------------------------------------------------------------------------------------------------------------
>> >> 
>> >> This error message doesn't match the commands above, it shows different paths.
>> >> 
>> >> Assuming that's just because you're copying and pasting the wrong thing...
>> >> 
>> >> You need to do as Ian suggests here:
>> >> http://gcc.gnu.org/ml/gcc-help/2012-03/msg00061.html
>> >> 
>> >> Delete the header fib_table.h
>> >> Run make
>> >> See what command is run to recreate fib_table.h
>> >> Try running it manually
>> >> See why it generates an empty file
>> >  		 	   		  
>  		 	   		  

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

end of thread, other threads:[~2012-03-09 16:19 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-05  0:28 Almost successfull compiling GCJ, however Me Myself and I
2012-03-05  0:34 ` Per Bothner
2012-03-05  5:11   ` Me Myself and I
     [not found]     ` <4F54869B.20409@redhat.com>
2012-03-05 23:39       ` Me Myself and I
2012-03-06 14:58         ` Ian Lance Taylor
2012-03-07  0:28           ` Me Myself and I
2012-03-07  1:20             ` Jonathan Wakely
2012-03-07  1:56               ` Jonathan Wakely
2012-03-07  2:42           ` Me Myself and I
2012-03-07  9:23             ` Jonathan Wakely
2012-03-07 11:07               ` Me Myself and I
2012-03-07 18:49                 ` Jonathan Wakely
2012-03-07 23:51                   ` Me Myself and I
2012-03-08  0:04                     ` Jonathan Wakely
2012-03-08  1:27                       ` Me Myself and I
2012-03-08  6:47                         ` Ian Lance Taylor
2012-03-08  8:18                           ` Me Myself and I
2012-03-08 10:01                             ` Andrew Haley
     [not found]                             ` <CAM1kHc0_-ASxEmHs2rW8HYv7foo70kF4Ztr-J+Q3coD6THLsKA@mail.gmail.com>
2012-03-09  2:32                               ` Me Myself and I
2012-03-09 16:19                             ` 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).