NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Build problems



[Note: I sent this to tech-toolchain too, not knowing exactly what is
the best mailing list for this.]

Hello,

This may or may not be considered a bug; but at least a note should make
things clear if it is considered a feature.

Since I have recurrent problem now with NetBSD-3.1.1 and X, I have
decided to upgrade to NetBSD-5.0.2.

Previously, you could (I made this) build the toolchain somewhere and
move it elsewhere as long as you were setting the correct path with
'-T' to build.sh.

This is not the case now for nbgenassym, because the script is a
generated one, the value of AWK being set via the Makefile with a
default depending on the value of TOOLDIR when generating the
toolchain. (and AWK is not set by the make wrapper.)

In my case, since the directory holding the toolchain is different from
the directory it was built in, this fails.

I suggest to simply let the variable TOOLDIR be evaluated at running
time, and not be replaced by its value at build time.

Another failure, when building the kernel, is with the generation of 
the routines gathered in libkern.a and libcompat.a.

For a reason I have not tracked down, the ar archives are empty (except
for a leading line containing arch/). To pass the failure, I have
fixed this by simply running an ar(1) by hand to build the libraries.
The ar(1) instances in the toolchain seem correct though, but I didn't
find an AR setting pointing to the tooldir version, so perhaps the ar(1) 
in 3.1.1 was used and not supporting flags passed for the version
shipped with 5.0.2?

Cheers,
-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                      http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C
-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                      http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C


Home | Main Index | Thread Index | Old Index