Subject: CFLAGS and build.sh
To: NetBSD/sparc64 <port-sparc64@NetBSD.org>
From: Joel CARNAT <joel@carnat.net>
List: port-sparc64
Date: 10/27/2005 15:20:17
--Qxx1br4bt0+wmkIi
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I have CFLAGS and friends set in /etc/mk.conf.
Everytime I use build.sh, I get the following kinds of errors :

########################################################################
dependall =3D=3D=3D> gnu/usr.bin/groff/src
dependall =3D=3D=3D> gnu/usr.bin/groff/src/libs
dependall =3D=3D=3D> gnu/usr.bin/groff/src/libs/libgroff
/usr/src/gnu/dist/groff/src/libs/libgroff/cmap.cpp:24:18: cmap.h: No
such file or directory
nbmkdep: compile failed.

*** Failed target:  cmap.d
*** Failed command:
CC=3D/usr/src/tooldir.NetBSD-3.0_BETA-sparc64/bin/sparc64--netbsd-gcc
/usr/src/tooldir.NetBSD-3.0_BETA-sparc64/bin/nbmkdep -f cmap.d --
-nostdinc++ -isystem-cxx /usr/src/destdir.sparc64/usr/include/g++
-nostdinc -isystem /usr/src/destdir.sparc64/usr/include
/usr/src/gnu/dist/groff/src/libs/libgroff/cmap.cpp
*** Error code 1

Stop.
nbmake: stopped in /usr/src/gnu/usr.bin/groff/src/libs/libgroff
########################################################################

NB: this seem to be a any-arch problem (aka, also seen on /i386).
NB2: I don't have issues for pkgsrc stuff.

mk.conf containts this :
########################################################################
COPTS:=3D-O2 -pipe -mcpu=3Dultrasparc -m64
CFLAGS:=3D-O2 -pipe -mcpu=3Dultrasparc -m64
CXXFLAGS:=3D-O2 -pipe -mcpu=3Dultrasparc -m64
########################################################################

If anyone uses xFLAGS when compiling kernel & userland, how do you set
the flags ? As OSnews states openssh really go faster with
'-mcpu=3Dultrasparc' set, I suppose many things would too (named, ipsec,
=2E..)

TIA,
	Jo
--=20
,- This mail runs ------.
`--------- NetBSD/smtp -'

--Qxx1br4bt0+wmkIi
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFDYNQR0/VH7L7F7Y4RAjjoAJsG+CtGxrdppDuLCke53xLHMjXwPQCfYjQq
Hbi1u0CnqZsPbsbVTK9vAAo=
=Vs6o
-----END PGP SIGNATURE-----

--Qxx1br4bt0+wmkIi--