Subject: Re: NetBSD 3.99.21 doesn't build on i386
To: None <claudiomkd@gmail.com>
From: KlinT <klint@klintcentral.net>
List: current-users
Date: 07/03/2006 10:33:10
Le 3 juil. 06 =E0 10:24, MKD a =E9crit :

> KlinT wrote:
>> You're welcome claudio ... :D
>>
>> I understand why you want GCC4 ... But right now, i haven't =20
>> succeed to build a "valid" distribution ( 3.99.21 / GCC4 ) without =20=

>> using GCC 3.3.6 ( latest version before the 'switch' to gcc4 )
>>
>> The only workarround I've found is to first build release with =20
>> HAVE_GCC=3D3, then install this release to another HDD =20
>> ( temporaly ) ... And build again but using HAVE_GCC=3D4 ...
>>
>> This works for me ...
>>
>> I think that if you really want a fully functionnal "gcc4" based =20
>> release, you have to build the release again using the one you =20
>> build with "HAVE_GCC=3D4" ... You can also try HAVE_GDB=3D6 ... in =20=

>> order to have a complete up to dat release :D
>>
>> The idea is to compile more than one time the GCC in order to be =20
>> well optimized. This is the method used in "LFS" ( Linux =46rom =20
>> Scratch ) ... Oupps LINUX :D
>>
>> Let me know if it works for you ...
>>
>> Best regards
> Well, you are not going to believe but, right now I tried to build =20
> 3.99.21 with this options in mk.conf:
>
> HAVE_GCC=3D3
> CFLAGS=3D-march=3Di686 -mcpu=3Di686
> COPTS=3D-march=3Di686 -mcpu=3Di686
> CXXFLAGS=3D-march=3Di686 -mcpu=3Di686
Try to just use "HAVE_GCC=3D3" in your mk.conf ...
>
> But, even before building anything, during the TOOLS-build process, =20=

> it stops, with this error:

> nbmake: don't know how to make /usr/src/tools/groff/obj/build/src/=20
> libs/libgroff/libgroff.a. Stop
>
> ERROR: Failed to make dependall tools
> *** BUILD ABORTED ***
>
> Can you believe that?

Yes :D That's strange because I don't encounter this error for a long =20=

time ...
Sorry, but I cannot help you anymore ...
May be another member ... ?!

Best Regards

Another idea : do you clean your build directory ?

Here is the command line I use to build :

build.sh command: ./build.sh -N 1 -j 3 -m i386 -O /CROSSCOMP/BUILD/=20
obj.i386 -T /CROSSCOMP/BUILD/tools.i386 -D /CROSSCOMP/BUILD/dest.i386 =20=

-R /CROSSCOMP/BUILD/release.i386 -X /CROSSCOMP/BUILD/xsrc -U -x tools

/CROSSCOMP/BUILD is my work directory. In it I have the sources ( src =20=

& xsrc directory ) and also : tools.i386 / release.i386 / dest.i386 / =20=

obj.i386 - must be created before running the BUILD.SH ...
"-j 3" is to run 3 parallel compile jobs ... :D ( faster on my =20
Athlon64/X2 )

Here is the comande line for the build release :

build.sh command: ./build.sh -N 1 -j 3 -m i386 -O /CROSSCOMP/BUILD/=20
obj.i386 -T /CROSSCOMP/BUILD/tools.i386 -D /CROSSCOMP/BUILD/dest.i386 =20=

-R /CROSSCOMP/BUILD/release.i386 -X /CROSSCOMP/BUILD/xsrc -U -x -u =20
release

Hope this can help you ...

Good luck

> --=20
> Claudio M. Camacho
> http://www.claudiocamacho.org
>
>