Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jul 2005 14:22:58 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Poul-Henning Kamp <phk@haven.freebsd.dk>
Cc:        current@FreeBSD.org
Subject:   Re: modules/acpi/acpi fails in make universe
Message-ID:  <20050719112258.GF17751@ip.net.ua>
In-Reply-To: <17725.1121505394@phk.freebsd.dk>
References:  <17725.1121505394@phk.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help

--8JPrznbw0YAQ/KXy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jul 16, 2005 at 11:16:34AM +0200, Poul-Henning Kamp wrote:
>=20
> When building i386/LINT in "make universe", the acpi/acpi module
> fails to build:
>=20
> =3D=3D=3D> acpi/acpi (depend)
> Warning: Object directory not changed from original /usr/obj/bang/src0/sr=
c/sys/L
> INT
> cc -O2 -fno-strict-aliasing -pipe  -I. -I@  -c /bang/src0/src/sys/i386/ac=
pica/ac
> pi_wakecode.S
> /bang/src0/src/sys/i386/acpica/acpi_wakecode.S:35:19: assym.s: No such fi=
le or d
> irectory
> /bang/src0/src/sys/i386/acpica/acpi_wakecode.S: Assembler messages:
> /bang/src0/src/sys/i386/acpica/acpi_wakecode.S:103: Error: suffix or oper=
ands in
> valid for `ljmp'
> *** Error code 1
> 1 error
> *** Error code 2
> @ -> /bang/src0/src/sys
>=20
>=20
> Ad far as I can tell, this bit of sys/modules/acpi/acpi/Makefile
> is the offending stuff, but I can't tell what's wrong:
>=20
> acpi_wakecode.h: acpi_wakecode.S assym.s
>         ${MAKE} -f ${.CURDIR}/../../../${MACHINE_ARCH}/acpica/Makefile \
>                 MAKESRCPATH=3D${.CURDIR}/../../../${MACHINE_ARCH}/acpica
>=20
Can you reproduce this just building a LINT kernel?  I cannot, and
I fail to see how this could be a problem.  The failed "cc" command
is run from ${.CURDIR}/../../../${MACHINE_ARCH}/acpica/Makefile and
it only runs after assym.s was created.  But I have found a problem
building assym.s manually which needs fixed kmod.mk:

%%%
Index: kmod.mk
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/sys/conf/kmod.mk,v
retrieving revision 1.192
diff -u -r1.192 kmod.mk
--- kmod.mk	22 Apr 2005 17:39:58 -0000	1.192
+++ kmod.mk	19 Jul 2005 10:55:55 -0000
@@ -408,7 +408,10 @@
 assym.s: @/kern/genassym.sh
 .endif
 	sh @/kern/genassym.sh genassym.o > ${.TARGET}
-genassym.o: @/${MACHINE_ARCH}/${MACHINE_ARCH}/genassym.c @ machine
+.if exists(@)
+genassym.o: @/${MACHINE_ARCH}/${MACHINE_ARCH}/genassym.c
+.endif
+genassym.o: @ machine ${SRCS:Mopt_*.h}
 	${CC} -c ${CFLAGS:N-fno-common} \
 	    @/${MACHINE_ARCH}/${MACHINE_ARCH}/genassym.c
 .endif
%%%

If you can reproduce the breakage, please put the complete
combined stdout+stderr output from a failed i386 LINT build
available somewhere for download.


Cheers,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

--8JPrznbw0YAQ/KXy
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFC3OKSqRfpzJluFF4RAhZpAKCa+bjys3xo1EHxzG9WEvVsANxIaQCfZwQQ
wunM4hy6OqEL+imNTH4HXts=
=SJr9
-----END PGP SIGNATURE-----

--8JPrznbw0YAQ/KXy--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050719112258.GF17751>