Re: GCC pass 1 - .lib is missing in gmp dir

2011-07-29 Thread Andrew Benton
On Fri, 29 Jul 2011 07:21:07 +0530
sandip sitapara s13884...@gmail.com wrote:

 I got the -lgmp not found error while compiling the GCC. So I tired to find
 the mpc/config.log to know the exact problem but I couldn't find the log
 file. But I did check the gmp directory that .lib is missing. Also I did
 check the another version of gmp (gmp-5.0.2) and .lib is also not there in
 that directory. So is this right? I am confused.

Where is the gmp directory? Is it inside the gcc source folder? Did
gcc's configure find the gmp source when you ran configure?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: GCC pass 1 - .lib is missing in gmp dir

2011-07-29 Thread sandip sitapara
gmp directory is inside the gcc folder. And gcc finds the gmp while
configuring. Have you had a chance to look at the archive of gmp lib?

On Fri, Jul 29, 2011 at 4:05 PM, Andrew Benton b3n...@gmail.com wrote:

 On Fri, 29 Jul 2011 07:21:07 +0530
 sandip sitapara s13884...@gmail.com wrote:

  I got the -lgmp not found error while compiling the GCC. So I tired to
 find
  the mpc/config.log to know the exact problem but I couldn't find the log
  file. But I did check the gmp directory that .lib is missing. Also I did
  check the another version of gmp (gmp-5.0.2) and .lib is also not there
 in
  that directory. So is this right? I am confused.

 Where is the gmp directory? Is it inside the gcc source folder? Did
 gcc's configure find the gmp source when you ran configure?

 Andy
 --
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: GCC pass 1 - .lib is missing in gmp dir

2011-07-29 Thread sandip sitapara
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

*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



checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1
$$f2
checking for objdir... .libs
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking libelf.h usability... no
checking libelf.h presence... no
checking for libelf.h... no
checking gelf.h usability... no
checking gelf.h presence... no
checking for gelf.h... no
checking libelf/libelf.h usability... no
checking libelf/libelf.h presence... no
checking for libelf/libelf.h... no
checking libelf/gelf.h usability... no
checking libelf/gelf.h presence... no
checking for libelf/gelf.h... no
*** This configuration is not supported in the following subdirectories:
 target-libada gnattools target-libstdc++-v3 target-libgfortran
target-libffi target-zlib target-libjava target-libobjc target-libgomp
target-libmudflap target-libssp target-boehm-gc
(Any other directories should still work fine.)
checking for default BUILD_CONFIG... bootstrap-debug
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... objcopy
checking for objdump... objdump
checking for i686-pc-linux-gnu-cc... no
checking for cc... cc
checking for i686-pc-linux-gnu-c++... no
checking for c++... c++
checking for i686-pc-linux-gnu-gcc... no
checking for gcc... gcc
checking for i686-pc-linux-gnu-gcj... no
checking for gcj... gcj
checking for i686-pc-linux-gnu-gfortran... no
checking for gfortran... no
checking for ar... /tools/i686-pc-linux-gnu/bin/ar
checking for as... /tools/i686-pc-linux-gnu/bin/as
checking for dlltool... no
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking for ld... /tools/i686-pc-linux-gnu/bin/ld
checking for lipo... no
checking for i686-pc-linux-gnu-lipo... no
checking for lipo... no
checking for nm... /tools/i686-pc-linux-gnu/bin/nm
checking for objdump... /tools/i686-pc-linux-gnu/bin/objdump
checking for ranlib... /tools/i686-pc-linux-gnu/bin/ranlib
checking for strip... /tools/i686-pc-linux-gnu/bin/strip
checking for windres... no
checking for i686-pc-linux-gnu-windres... no
checking for windres... no
checking for windmc... no
checking for i686-pc-linux-gnu-windmc... no
checking for windmc... no
checking where to find the target ar... pre-installed in
/tools/i686-pc-linux-gnu/bin
checking where to find the target as... pre-installed in
/tools/i686-pc-linux-gnu/bin
checking where to find the target cc... just compiled
checking where to find the target c++... host tool
checking where to find the target c++ for libstdc++... host tool
checking where to find the target 

Re: GCC pass 1 - .lib is missing in gmp dir

2011-07-29 Thread Eric Plummer
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


Re: GCC pass 1 - .lib is missing in gmp dir

2011-07-29 Thread sandip sitapara
Thanks Eric to throw light upon my mistake of directory structure for build.
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: 

Re: GCC pass 1 - .lib is missing in gmp dir

2011-07-29 Thread sandip sitapara
Getting errors due to compilation of natConcreteProcess.cc

On Fri, Jul 29, 2011 at 9:50 PM, sandip sitapara s13884...@gmail.comwrote:

 Thanks Eric to throw light upon my mistake of directory structure for
 build. 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

 --

Re: GCC pass 1 - .lib is missing in gmp dir

2011-07-29 Thread William Immendorf
On Fri, Jul 29, 2011 at 11:20 AM, sandip sitapara s13884...@gmail.com wrote:
 Thanks Eric to throw light upon my mistake of directory structure for build.
 The last problem has been solved. But again I got error in libjava. Please
 find below the same.
I'd really like to know why you were building Libjava at this point in
the book. While I build all of GCC's languages (except for Ada, which
I build when I have a Ada compiler), I do that in Chapter 6, and it
still seems that you are at Chapter 5.

Word of advice: FBBG. Just build C and C++ at this point and you will be fine.



-- 
William Immendorf
The ultimate in free computing.
Messages in plain text, please, no HTML.
GPG key ID: 1697BE98
If it's not signed, it's not from me.

--

Every nonfree program has a lord, a master --
and if you use the program, he is your master.  Richard Stallman

--
Are you a Gmail user? Please read this important notice:
http://www.fsf.org/campaigns/jstrap/gmail?31450.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page