Discussion:
Another recent WITH_META_MODE= gotcha ": handling svn commit: r334008
(too old to reply)
Mark Millard
2018-05-22 05:17:03 UTC
Permalink
Attempting to build head -r334014 from -r333947 includes the code from -r334008,
and for which I get:

--- parser.o ---
/usr/src/bin/sh/parser.c:1440:9: error: use of undeclared identifier 'CQNL'
case CQNL:
^
1 error generated.

for what was added in -r334008.

# grep -r CQNL /usr/src/* | more
/usr/src/bin/sh/mksyntax.c: { "CQNL", "newline character in quotes" },
/usr/src/bin/sh/mksyntax.c: add("\n", "CQNL");
/usr/src/bin/sh/mksyntax.c: add("\n", "CQNL");
/usr/src/bin/sh/mksyntax.c: add("\n", "CQNL");
/usr/src/bin/sh/parser.c: case CQNL:
/usr/src/contrib/libarchive/libarchive/test/test_read_format_rar_binary_data.rar.uu:M+M7)?9;.A%CQNL-+4::&_UJQ*P"PPW:>)I5*8)7^>6(\]!Q"^9YCE>>`9OG8

Apparently this is something WITH_META_MODE= does not deal with.
Rebuilding after:

rm -fr /usr/obj/amd64_clang/*

(here I normally have the build materials) built fine.

(The "Making top.local.h from /usr/src/contrib/top/top.local.hs"
change to no longer have top.local.h or top.local.hs was another
example: for a while top.local.h was still referenced and old ones
would still be used if present.)

===
Mark Millard
marklmi26-fbsd at yahoo.com
( dsl-only.net went
away in early 2018-Mar)
Bryan Drewery
2018-05-24 18:49:59 UTC
Permalink
Post by Mark Millard
Attempting to build head -r334014 from -r333947 includes the code from -r334008,
--- parser.o ---
/usr/src/bin/sh/parser.c:1440:9: error: use of undeclared identifier 'CQNL'
^
1 error generated.
for what was added in -r334008.
# grep -r CQNL /usr/src/* | more
/usr/src/bin/sh/mksyntax.c: { "CQNL", "newline character in quotes" },
/usr/src/bin/sh/mksyntax.c: add("\n", "CQNL");
/usr/src/bin/sh/mksyntax.c: add("\n", "CQNL");
/usr/src/bin/sh/mksyntax.c: add("\n", "CQNL");
/usr/src/contrib/libarchive/libarchive/test/test_read_format_rar_binary_data.rar.uu:M+M7)?9;.A%CQNL-+4::&_UJQ*P"PPW:>)I5*8)7^>6(\]!Q"^9YCE>>`9OG8
Apparently this is something WITH_META_MODE= does not deal with.
rm -fr /usr/obj/amd64_clang/*
(here I normally have the build materials) built fine.
(The "Making top.local.h from /usr/src/contrib/top/top.local.hs"
change to no longer have top.local.h or top.local.hs was another
example: for a while top.local.h was still referenced and old ones
would still be used if present.)
It was a bug with the rescue build with dependency handling. I've fixed
it in r334177.
--
Regards,
Bryan Drewery
M&S - Krasznai András
2018-05-25 09:49:21 UTC
Permalink
Hi

I found another problem with compiling FreeBSD-CURRENT

when I tried to compile GENERIC instead of my custom I run into the following:

make installworld fails with

/bin/sh: /usr/obj/usr/src/amd64.amd64/rescue/rescue/rescue: not found
rescue/sh check failed, installation aborted.

I used originally a customized src.conf which - among others - specifies WITHOUT_RESCUE.
When trying to compile GENERIC I removed src.conf and I thought I would get a complete FreeBSD-CURRENT with GENERIC, with rescue files, etc.

The source tree is at r334200


best regards

András Krasznai


-----Eredeti üzenet-----
Feladó: owner-freebsd-***@freebsd.org [mailto:owner-freebsd-***@freebsd.org] Meghatalmazó Bryan Drewery
Küldve: 2018. május 24. 20:50
Címzett: Mark Millard; FreeBSD Current
Másolatot kap: ***@cschubert.com; O. Hartmann
Tárgy: Re: Another recent WITH_META_MODE= gotcha ": handling svn commit: r334008 - head/bin/sh
Post by Mark Millard
Attempting to build head -r334014 from -r333947 includes the code from
--- parser.o ---
/usr/src/bin/sh/parser.c:1440:9: error: use of undeclared identifier 'CQNL'
^
1 error generated.
for what was added in -r334008.
# grep -r CQNL /usr/src/* | more
/usr/src/bin/sh/mksyntax.c: { "CQNL", "newline character in quotes" },
/usr/src/bin/sh/mksyntax.c: add("\n", "CQNL");
/usr/src/bin/sh/mksyntax.c: add("\n", "CQNL");
/usr/src/bin/sh/mksyntax.c: add("\n", "CQNL");
/usr/src/contrib/libarchive/libarchive/test/test_read_format_rar_binar
y_data.rar.uu:M+M7)?9;.A%CQNL-+4::&_UJQ*P"PPW:>)I5*8)7^>6(\]!Q"^9YCE>>
`9OG8
Apparently this is something WITH_META_MODE= does not deal with.
rm -fr /usr/obj/amd64_clang/*
(here I normally have the build materials) built fine.
(The "Making top.local.h from /usr/src/contrib/top/top.local.hs"
change to no longer have top.local.h or top.local.hs was another
example: for a while top.local.h was still referenced and old ones
would still be used if present.)
It was a bug with the rescue build with dependency handling. I've fixed it in r334177.
--
Regards,
Bryan Drewery
Bryan Drewery
2018-05-25 16:32:55 UTC
Permalink
Post by M&S - Krasznai András
Hi
I found another problem with compiling FreeBSD-CURRENT
make installworld fails with
/bin/sh: /usr/obj/usr/src/amd64.amd64/rescue/rescue/rescue: not found
rescue/sh check failed, installation aborted.
I used originally a customized src.conf which - among others - specifies WITHOUT_RESCUE.
When trying to compile GENERIC I removed src.conf and I thought I would get a complete FreeBSD-CURRENT with GENERIC, with rescue files, etc.
Unclear to me. You did buildworld with WITHOUT_RESCUE=yes set and then
removed 'WITHOUT_RESCUE' from your src.conf (by removing src.conf), and
then did buildworld and then installworld and hit this issue? All with
WITH_META_MODE=yes? Or did you disable META_MODE at some point?
Post by M&S - Krasznai András
The source tree is at r334200
best regards
András Krasznai
--
Regards,
Bryan Drewery
M&S - Krasznai András
2018-05-28 05:52:54 UTC
Permalink
Hi

I use meta mode and ccache for compile.

I had WITHOUT_RESCUE= in /etc/src.conf.

Then I renamed (thatis practically removed) /etc/src.conf, and removed the KERNCONF=mykernel from make.conf to compile GENERIC.

After this I found the error described.

N.B. I went back to my original setup (src.conf with WITHOUT_RESCUE and mykernel as KERNCONF) and got the same.

The next thing I will test compiling without meta mode a GENERIC kernel.

rgds

András Krasznai

-----Original Message-----
From: Bryan Drewery [mailto:***@FreeBSD.org]
Sent: Friday, May 25, 2018 6:33 PM
To: M&S - Krasznai András; Mark Millard; FreeBSD Current
Cc: ***@cschubert.com; O. Hartmann
Subject: Re: Another recent WITH_META_MODE= gotcha ": handling svn commit: r334008 - head/bin/sh
Post by M&S - Krasznai András
Hi
I found another problem with compiling FreeBSD-CURRENT
make installworld fails with
/bin/sh: /usr/obj/usr/src/amd64.amd64/rescue/rescue/rescue: not found
rescue/sh check failed, installation aborted.
I used originally a customized src.conf which - among others - specifies WITHOUT_RESCUE.
When trying to compile GENERIC I removed src.conf and I thought I would get a complete FreeBSD-CURRENT with GENERIC, with rescue files, etc.
Unclear to me. You did buildworld with WITHOUT_RESCUE=yes set and then removed 'WITHOUT_RESCUE' from your src.conf (by removing src.conf), and then did buildworld and then installworld and hit this issue? All with WITH_META_MODE=yes? Or did you disable META_MODE at some point?
Post by M&S - Krasznai András
The source tree is at r334200
best regards
András Krasznai
--
Regards,
Bryan Drewery
Loading...