So is there any kind of patch for the same? Or I am the only one who is getting this error?
The last problem has been solved. But again I got error in libjava. Please >> find below the same. >> >> In file included from ../../../gcc-4.5.2/libjava/jni-libjvm.cc:14:0: >> ../../../gcc-4.5.2/libjava/include/jvm.h:799:3: error: 'ParkHelper' does >> not name a type >> make[3]: *** [jni-libjvm.lo] Error 1 >> >> Also it jvm include files java-threads.h and java-gc.h conflicts with >> other files like posix-threads.h. >> >> In file included from ../../../gcc-4.5.2/libjava/include/jvm.h:25:0, >> from java/lang/natConcreteProcess.cc:36: >> ./include/java-threads.h:26:13: error: conflicting declaration 'typedef >> int _Jv_ConditionVariable_t' >> ../../../gcc-4.5.2/libjava/include/posix-threads.h:57:3: error: >> '_Jv_ConditionVariable_t' has a previous declaration as 'typedef struct >> _Jv_ConditionVariable_t _Jv_ConditionVariable_t' >> ./include/java-threads.h:27:13: error: conflicting declaration 'typedef >> int _Jv_Mutex_t' >> ../../../gcc-4.5.2/libjava/include/posix-threads.h:72:3: error: >> '_Jv_Mutex_t' has a previous declaration as 'typedef struct _Jv_Mutex_t >> _Jv_Mutex_t' >> ./include/java-threads.h:34:7: error: redefinition of 'class _Jv_Thread_t' >> ../../../gcc-4.5.2/libjava/include/posix-threads.h:29:1: error: previous >> definition of 'class _Jv_Thread_t' >> ./include/java-threads.h: In function 'void >> _Jv_CondInit(_Jv_ConditionVariable_t*)': >> ./include/java-threads.h:41:1: error: redefinition of 'void >> _Jv_CondInit(_Jv_ConditionVariable_t*)' >> ../../../gcc-4.5.2/libjava/include/posix-threads.h:114:1: error: 'void >> _Jv_CondInit(_Jv_ConditionVariable_t*)' previously defined here >> ./include/java-threads.h: In function 'int >> _Jv_MutexCheckMonitor(_Jv_Mutex_t*)': >> ./include/java-threads.h:82:12: error: redefinition of 'int >> _Jv_MutexCheckMonitor(_Jv_Mutex_t*)' >> ../../../gcc-4.5.2/libjava/include/posix-threads.h:80:1: error: 'int >> _Jv_MutexCheckMonitor(_Jv_Mutex_t*)' previously defined here >> ./include/java-threads.h: In function 'void _Jv_MutexInit(_Jv_Mutex_t*)': >> ./include/java-threads.h:88:1: error: redefinition of 'void >> _Jv_MutexInit(_Jv_Mutex_t*)' >> ../../../gcc-4.5.2/libjava/include/posix-threads.h:128:1: error: 'void >> _Jv_MutexInit(_Jv_Mutex_t*)' previously defined here >> ./include/java-threads.h: In function 'int _Jv_MutexUnlock(_Jv_Mutex_t*)': >> ./include/java-threads.h:99:1: error: redefinition of 'int >> _Jv_MutexUnlock(_Jv_Mutex_t*)' >> ../../../gcc-4.5.2/libjava/include/posix-threads.h:146:1: error: 'int >> _Jv_MutexUnlock(_Jv_Mutex_t*)' previously defined here >> ./include/java-threads.h: In function 'java::lang::Thread* >> _Jv_ThreadCurrent()': >> ./include/java-threads.h:123:1: error: redefinition of >> 'java::lang::Thread* _Jv_ThreadCurrent()' >> ../../../gcc-4.5.2/libjava/include/posix-threads.h:201:1: error: >> 'java::lang::Thread* _Jv_ThreadCurrent()' previously defined here >> ./include/java-threads.h: In function 'void _Jv_ThreadYield()': >> ./include/java-threads.h:130:1: error: redefinition of 'void >> _Jv_ThreadYield()' >> ../../../gcc-4.5.2/libjava/include/posix-threads.h:343:1: error: 'void >> _Jv_ThreadYield()' previously defined here >> make[3]: *** [java/lang/natConcreteProcess.lo] Error 1 >> make[3]: Leaving directory `/home/lfs/gcc-build/i686-pc-linux-gnu/libjava' >> make[2]: *** [all-recursive] Error 1 >> make[2]: Leaving directory `/home/lfs/gcc-build/i686-pc-linux-gnu/libjava' >> make[1]: *** [all-target-libjava] Error 2 >> make[1]: Leaving directory `/home/lfs/gcc-build' >> make: *** [all] Error 2 >> >> I have tried commenting the include but doesn't work. So i think, there >> might be another solution like header include path? Or other? But unable to >> figure it out. So do you have any idea regarding following errors. >> > > On Fri, Jul 29, 2011 at 8:38 PM, Eric Plummer <anadox...@gmail.com> wrote: >> >>> sandip sitapara wrote: >>> > Please find below the detail of configuration. >>> > >>> > *Current working directory gcc-4.5.2 >>> > *lfs@nomad:~/gcc-build/gcc-4.5.2$ pwd >>> > /home/lfs/gcc-build/gcc-4.5.2 >>> Your pwd output looks off for starters. >>> >>> Quote: >>> The GCC documentation recommends building GCC outside of the source >>> directory in a dedicated build directory: >>> >>> Re follow the instructions from the book more closely. >>> Unzip GCC-4.5.2 >>> cd into gcc-4.5.4 >>> then: >>> mkdir -v ../gcc-build >>> cd ../gcc-build >>> >>> your build directory should be outside of the source tree.. >>> for example: >>> lfs@nomad:~/gcc-build/ >>> >>> >>> > *Searcihng for gmp directory in gcc-4.5.2* >>> > lfs@nomad:~/gcc-build/gcc-4.5.2$ ls | grep -r "gmp" >>> > gmp >>> > >>> > *Configuration* >>> > ./configure --target=$LFS_TGT --prefix=/tools --disable-nls >>> > --disable-shared --disable-multilib --disable-decimal-float >>> > --disable-threads --disable-libmudflap --disable-libssp >>> > --disable-libgomp --enable-languages=c >>> --with-gmp-include=$(pwd)/gmp >>> > --with-gmp-lib=$(pwd)/gmp/.libs --without-ppl --without-cloog >>> >>> -- >>> Eric Plummer >>> anadox...@gmail.com >>> -- >>> Messages in plain text, please, no HTML. >>> No top posting, please. >>> -- >>> -- >>> http://linuxfromscratch.org/mailman/listinfo/lfs-support >>> FAQ: http://www.linuxfromscratch.org/lfs/faq.html >>> Unsubscribe: See the above information page >>> >> >> > e...@gmail.com <s13884...@gmail.com>> wrote:
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page