Re: Using the newest Classapth with gcj ?

David Michel <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
Thanks for this, this is really useful athough I get an error at the make stage:

make[3]: Entering directory
`/home/micd/gcc-4_4-branch/obj-x86_64-unknown-linux-gnu/gcc'
/home/micd/gcc-4_4-branch/missing flex  -ogengtype-lex.c
/home/micd/gcc-4_4-branch/obj-x86_64-unknown-linux-gnu/../gcc/gengtype-lex.l
WARNING: `flex' is missing on your system.  You should only need it if
         you modified a `.l' file.  You may need the `Flex' package
         in order for those modifications to take effect.  You can get
         `Flex' from any GNU archive site.
gcc -c  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wcast-qual
-Wold-style-definition -Wc++-compat -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-fno-common -Wno-error -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild
-I/home/micd/gcc-4_4-branch/obj-x86_64-unknown-linux-gnu/../gcc
-I/home/micd/gcc-4_4-branch/obj-x86_64-unknown-linux-gnu/../gcc/build
-I/home/micd/gcc-4_4-branch/obj-x86_64-unknown-linux-gnu/../gcc/../include
-I/home/micd/gcc-4_4-branch/obj-x86_64-unknown-linux-gnu/../gcc/../libcpp/include
 -I/home/micd/gcc-4_4-branch/obj-x86_64-unknown-linux-gnu/../gcc/../libdecnumber
-I/home/micd/gcc-4_4-branch/obj-x86_64-unknown-linux-gnu/../gcc/../libdecnumber/bid
-I../libdecnumber    -o build/gengtype-lex.o gengtype-lex.c
gcc: gengtype-lex.c: No such file or directory
gcc: no input files
make[3]: *** [build/gengtype-lex.o] Error 1
make[3]: Leaving directory
`/home/micd/gcc-4_4-branch/obj-x86_64-unknown-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory
`/home/micd/gcc-4_4-branch/obj-x86_64-unknown-linux-gnu'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory
`/home/micd/gcc-4_4-branch/obj-x86_64-unknown-linux-gnu'
make: *** [all] Error 2


Although I do have flex:

$ sudo apt-get install flex
Reading package lists... Done
Building dependency tree
Reading state information... Done
flex is already the newest version.


David

2009/3/30 Andrew Haley <[email protected]>:
> This is how you use the newest Classapth with gcj:
>
>  $ svn co http://gcc.gnu.org/svn/gcc/branches/gcc-4_4-branch/
>  $ mkdir gcc-4_4-branch/obj-x86_64-unknown-linux-gnu
>  $ cd gcc-4_4-branch/obj-x86_64-unknown-linux-gnu
>  $ `pwd`/../configure --enable-languages=java --prefix=/local/gcc-4_4-branch/install --enable-java-home
>  $ make && make install
>  $ /local/gcc-4_4-branch/install/lib/jvm/bin/java -version
> java version "1.5.0"
> gij (GNU libgcj) version 4.4.0 20090330 (prerelease)
>
> Copyright (C) 2007 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> Substitute your own arch-dependent values.  Feel free to ask more questions
> if you have any trouble.
>
> Cheers,
> Andrew.
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.