Picon
Favicon

Help required when building gcc-4.1.2 for i686 environment

Hello,

I am trying to build a gcc/g++ tool-chain for i486 architechture on an
x86_64 machine.
I downloaded gcc-4.1.2 and configured it with host as x86_64 and target
as i486 after installing the pre-requistes i.e gmp, mrpf, and mpc
libraries .

../gcc-4.1.2/configure --with-gmp=/auto/local//prbatra/gcc-install/
--with-mpfr=/auto/local//prbatra/gcc-install/
--prefix=/auto/local//prbatra/gcc-install/ --host=x86_64-gnu-linux
--target=i486-gnu-linux --enable-languages=c,c++,objc

I also installed binutils with the same host and target for asssembler,
loaded etc

/auto/local//prbatra/objdir/./gcc/xgcc
-B/auto/local//prbatra/objdir/./gcc/
-B/auto/local//prbatra/gcc-install//i486-gnu-linux/bin/
-B/auto/local//prbatra/gcc-install//i486-gnu-linux/lib/ -isystem
/auto/local//prbatra/gcc-install//i486-gnu-linux/include -isystem
/auto/local//prbatra/gcc-install//i486-gnu-linux/sys-include -O2  -O2 -g
-O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-4.1.2/gcc
-I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include
-I../../gcc-4.1.2/gcc/../libcpp/include
-I/auto/local//prbatra/gcc-install//include
-I/auto/local//prbatra/gcc-install//include -fexceptions
(Continue reading)

Jonathan Wakely | 9 Feb 22:37
Picon

Re: Help required when building gcc-4.1.2 for i686 environment

On 9 February 2012 21:17, Prashant Batra (prbatra) wrote:
> Hello,
>
> I am trying to build a gcc/g++ tool-chain for i486 architechture on an
> x86_64 machine.
> I downloaded gcc-4.1.2 and configured it with host as x86_64 and target
> as i486 after installing the pre-requistes i.e gmp, mrpf, and mpc
> libraries .

I don't think you need MPC for GCC 4.1.2

> ../gcc-4.1.2/configure --with-gmp=/auto/local//prbatra/gcc-install/
> --with-mpfr=/auto/local//prbatra/gcc-install/
> --prefix=/auto/local//prbatra/gcc-install/ --host=x86_64-gnu-linux
> --target=i486-gnu-linux --enable-languages=c,c++,objc

Do you really need to install GMP and MPFR manually?  Installing them
in non-system directories causes issues unless you build them with
--disable-shared

It's easier to put the GMP and MPFR sources in the GCC tree or install
your OS vendor's packages.
See http://gcc.gnu.org/wiki/InstallingGCC

> In file included from ./gthr-default.h:1,
>                 from ../../gcc-4.1.2/gcc/gthr.h:114,
>                 from ../../gcc-4.1.2/gcc/unwind-dw2.c:42:
> ../../gcc-4.1.2/gcc/gthr-posix.h:43:21: error: pthread.h: No such file
> or directory
> ../../gcc-4.1.2/gcc/gthr-posix.h:44:20: error: unistd.h: No such file or
(Continue reading)

Tim Prince | 10 Feb 04:12
Picon
Favicon

Re: Help required when building gcc-4.1.2 for i686 environment

On 2/9/2012 4:17 PM, Prashant Batra (prbatra) wrote:
> Hello,
>
> I am trying to build a gcc/g++ tool-chain for i486 architechture on an
> x86_64 machine.
> I downloaded gcc-4.1.2 and configured it with host as x86_64 and target
> as i486 after installing the pre-requistes i.e gmp, mrpf, and mpc
> libraries .
>
> ../gcc-4.1.2/configure --with-gmp=/auto/local//prbatra/gcc-install/
> --with-mpfr=/auto/local//prbatra/gcc-install/
> --prefix=/auto/local//prbatra/gcc-install/ --host=x86_64-gnu-linux
> --target=i486-gnu-linux --enable-languages=c,c++,objc
>
> I also installed binutils with the same host and target for asssembler,
> loaded etc
>
> /auto/local//prbatra/objdir/./gcc/xgcc
> -B/auto/local//prbatra/objdir/./gcc/
> -B/auto/local//prbatra/gcc-install//i486-gnu-linux/bin/
> -B/auto/local//prbatra/gcc-install//i486-gnu-linux/lib/ -isystem
> /auto/local//prbatra/gcc-install//i486-gnu-linux/include -isystem
> /auto/local//prbatra/gcc-install//i486-gnu-linux/sys-include -O2  -O2 -g
> -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
> -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
> -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-4.1.2/gcc
> -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include
> -I../../gcc-4.1.2/gcc/../libcpp/include
> -I/auto/local//prbatra/gcc-install//include
(Continue reading)

Picon
Favicon

RE: Help required when building gcc-4.1.2 for i686 environment


-----Original Message-----
From: gcc-help-owner <at> gcc.gnu.org [mailto:gcc-help-owner <at> gcc.gnu.org] On
Behalf Of Tim Prince
Sent: Friday, February 10, 2012 8:43 AM
To: gcc-help <at> gcc.gnu.org
Subject: Re: Help required when building gcc-4.1.2 for i686 environment

On 2/9/2012 4:17 PM, Prashant Batra (prbatra) wrote:
> Hello,
>
> I am trying to build a gcc/g++ tool-chain for i486 architechture on an
> x86_64 machine.
> I downloaded gcc-4.1.2 and configured it with host as x86_64 and
target
> as i486 after installing the pre-requistes i.e gmp, mrpf, and mpc
> libraries .
>
> ../gcc-4.1.2/configure --with-gmp=/auto/local//prbatra/gcc-install/
> --with-mpfr=/auto/local//prbatra/gcc-install/
> --prefix=/auto/local//prbatra/gcc-install/ --host=x86_64-gnu-linux
> --target=i486-gnu-linux --enable-languages=c,c++,objc
>
> I also installed binutils with the same host and target for
asssembler,
> loaded etc
>
> /auto/local//prbatra/objdir/./gcc/xgcc
> -B/auto/local//prbatra/objdir/./gcc/
> -B/auto/local//prbatra/gcc-install//i486-gnu-linux/bin/
(Continue reading)

Tim Prince | 10 Feb 04:27
Picon
Favicon

Re: Help required when building gcc-4.1.2 for i686 environment

On 2/9/2012 10:19 PM, Prashant Batra (prbatra) wrote:
>
>
> -----Original Message-----
> From: gcc-help-owner <at> gcc.gnu.org [mailto:gcc-help-owner <at> gcc.gnu.org] On
> Behalf Of Tim Prince
> Sent: Friday, February 10, 2012 8:43 AM
> To: gcc-help <at> gcc.gnu.org
> Subject: Re: Help required when building gcc-4.1.2 for i686 environment
>
> On 2/9/2012 4:17 PM, Prashant Batra (prbatra) wrote:
>> Hello,
>>
>> I am trying to build a gcc/g++ tool-chain for i486 architechture on an
>> x86_64 machine.
>> I downloaded gcc-4.1.2 and configured it with host as x86_64 and
> target
>> as i486 after installing the pre-requistes i.e gmp, mrpf, and mpc
>> libraries .
>>
>> ../gcc-4.1.2/configure --with-gmp=/auto/local//prbatra/gcc-install/
>> --with-mpfr=/auto/local//prbatra/gcc-install/
>> --prefix=/auto/local//prbatra/gcc-install/ --host=x86_64-gnu-linux
>> --target=i486-gnu-linux --enable-languages=c,c++,objc
>>
>> I also installed binutils with the same host and target for
> asssembler,
>> loaded etc
>>
>> /auto/local//prbatra/objdir/./gcc/xgcc
(Continue reading)

Picon
Favicon

RE: Help required when building gcc-4.1.2 for i686 environment


-----Original Message-----
From: Tim Prince [mailto:n8tm <at> aol.com] 
Sent: Friday, February 10, 2012 8:57 AM
To: Prashant Batra (prbatra)
Cc: tprince <at> computer.org; gcc-help <at> gcc.gnu.org
Subject: Re: Help required when building gcc-4.1.2 for i686 environment

On 2/9/2012 10:19 PM, Prashant Batra (prbatra) wrote:
>
>
> -----Original Message-----
> From: gcc-help-owner <at> gcc.gnu.org [mailto:gcc-help-owner <at> gcc.gnu.org]
On
> Behalf Of Tim Prince
> Sent: Friday, February 10, 2012 8:43 AM
> To: gcc-help <at> gcc.gnu.org
> Subject: Re: Help required when building gcc-4.1.2 for i686
environment
>
> On 2/9/2012 4:17 PM, Prashant Batra (prbatra) wrote:
>> Hello,
>>
>> I am trying to build a gcc/g++ tool-chain for i486 architechture on
an
>> x86_64 machine.
>> I downloaded gcc-4.1.2 and configured it with host as x86_64 and
> target
>> as i486 after installing the pre-requistes i.e gmp, mrpf, and mpc
>> libraries .
(Continue reading)


Gmane