Re: Problems with /usr/src/usr.bin/rs/rs.c

2022-11-24 Thread Jett Tayer



> On Nov 25, 2022, at 2:53 AM, Jochen Neumeister  wrote:
> 
> Hi,
> 
> 
> this is a problem on 2 CURRENT Maschines.
> 
> Both stop with this:
> 
> cc -target x86_64-unknown-freebsd14.0
> --sysroot=/usr/obj/usr/src/amd64.amd64/tmp
> -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -fno-common
> -I/usr/src/lib/libarchive/tests -I/usr/src/lib/libarchive
> -I/usr/obj/usr/src/amd64.amd64/lib/libarchive/tests
> -I/usr/src/contrib/libarchive/libarchive
> -I/usr/src/contrib/libarchive/libarchive/test
> -I/usr/src/contrib/libarchive/test_utils -DHAVE_BZLIB_H=1
> -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1  -DHAVE_ZSTD_H=1 -DHAVE_LIBZSTD=1
> -DHAVE_LIBZSTD_COMPRESSOR=1
> -DPLATFORM_CONFIG_H=\"/usr/src/lib/libarchive/tests/config_freebsd.h\"
> -DWITH_OPENSSL -fPIE -g -gz=zlib -MD
> -MF.depend.libarchive_test.test_read_format_cpio_svr4_gzip_rpm.o
> -MTtest_read_format_cpio_svr4_gzip_rpm.o -std=gnu99
> -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers
> -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
> -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body
> -Wno-string-plus-int -Wno-unused-const-variable
> -Wno-error=unused-but-set-variable -Wno-tautological-compare
> -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function
> -Wno-enum-conversion -Wno-unused-local-typedef
> -Wno-address-of-packed-member  -Qunused-arguments  -c
> /usr/src/contrib/libarchive/libarchive/test/test_read_format_cpio_svr4_gzip_rpm.c
>  
> -o test_read_format_cpio_svr4_gzip_rpm.o
> --- all_subdir_usr.bin ---
> --- rs.o ---
> cc -target x86_64-unknown-freebsd14.0
> --sysroot=/usr/obj/usr/src/amd64.amd64/tmp
> -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -fno-common
> -fPIE -g -gz=zlib -MD  -MF.depend.rs.o -MTrs.o -std=gnu99
> -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers
> -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
> -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
> -Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition
> -Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety
> -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable
> -Wno-error=unused-but-set-variable  -Qunused-arguments-c
> /usr/src/usr.bin/rs/rs.c -o rs.o
> cc: error: no such file or directory: '/usr/src/usr.bin/rs/rs.c'
> cc: error: no input files
> 
> I delete /usr/obj/usr/src/amd64.amd64/usr.bin/rs and on both Maschines, all 
> is fine.
> 
> 
> But on both Maschines is Poudriere working, and both maschines stop when i 
> will the CURRENT jails updateting
> 
> cc: error: no such file or directory: 
> '/usr/local/poudriere/jails/14amd64/usr/src/usr.bin/rs/rs.c'
> 
> So i see this PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267871
> 
> I make a "make cleandir" in 
> /usr/local/poudriere/jails/14amd62/usr/src/usr.bin/rs/rs.c - ans all is fine.
> 
> But when i update the CURRENT i386 jails, they stop again:
> 
> cc: error: no such file or directory: 
> '/usr/local/poudriere/jails/14i386/usr/src/usr.bin/rs/rs.c'
> 
> a "make cleandir" is not helping here.
> 
> I this a problem with tihs Update? 
> https://cgit.freebsd.org/src/commit/?id=afb4998dd4de03c2d635faf7db89f3d3f6c3a6ff
> 
> 
> Greetings
> Jochen
> 
> 
> 
> 

Happened to me as well… i just deleted /usr/obj/* and “make buildworld” worked 
just fine.




Problems with /usr/src/usr.bin/rs/rs.c

2022-11-24 Thread Jochen Neumeister

Hi,


this is a problem on 2 CURRENT Maschines.

Both stop with this:

cc -target x86_64-unknown-freebsd14.0
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -fno-common
-I/usr/src/lib/libarchive/tests -I/usr/src/lib/libarchive
-I/usr/obj/usr/src/amd64.amd64/lib/libarchive/tests
-I/usr/src/contrib/libarchive/libarchive
-I/usr/src/contrib/libarchive/libarchive/test
-I/usr/src/contrib/libarchive/test_utils -DHAVE_BZLIB_H=1
-DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1  -DHAVE_ZSTD_H=1 -DHAVE_LIBZSTD=1
-DHAVE_LIBZSTD_COMPRESSOR=1
-DPLATFORM_CONFIG_H=\"/usr/src/lib/libarchive/tests/config_freebsd.h\"
-DWITH_OPENSSL -fPIE -g -gz=zlib -MD
-MF.depend.libarchive_test.test_read_format_cpio_svr4_gzip_rpm.o
-MTtest_read_format_cpio_svr4_gzip_rpm.o -std=gnu99
-Wno-format-zero-length -fstack-protector-strong -Wsystem-headers
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitialized -Wno-pointer-sign -Wno-empty-body
-Wno-string-plus-int -Wno-unused-const-variable
-Wno-error=unused-but-set-variable -Wno-tautological-compare
-Wno-unused-value -Wno-parentheses-equality -Wno-unused-function
-Wno-enum-conversion -Wno-unused-local-typedef
-Wno-address-of-packed-member  -Qunused-arguments  -c
/usr/src/contrib/libarchive/libarchive/test/test_read_format_cpio_svr4_gzip_rpm.c 


-o test_read_format_cpio_svr4_gzip_rpm.o
--- all_subdir_usr.bin ---
--- rs.o ---
cc -target x86_64-unknown-freebsd14.0
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -fno-common
-fPIE -g -gz=zlib -MD  -MF.depend.rs.o -MTrs.o -std=gnu99
-Wno-format-zero-length -fstack-protector-strong -Wsystem-headers
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
-Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition
-Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety
-Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable
-Wno-error=unused-but-set-variable  -Qunused-arguments    -c
/usr/src/usr.bin/rs/rs.c -o rs.o
cc: error: no such file or directory: '/usr/src/usr.bin/rs/rs.c'
cc: error: no input files

I delete /usr/obj/usr/src/amd64.amd64/usr.bin/rs and on both Maschines, 
all is fine.



But on both Maschines is Poudriere working, and both maschines stop when 
i will the CURRENT jails updateting


cc: error: no such file or directory: 
'/usr/local/poudriere/jails/14amd64/usr/src/usr.bin/rs/rs.c'


So i see this PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267871

I make a "make cleandir" in 
/usr/local/poudriere/jails/14amd62/usr/src/usr.bin/rs/rs.c - ans all is 
fine.


But when i update the CURRENT i386 jails, they stop again:

cc: error: no such file or directory: 
'/usr/local/poudriere/jails/14i386/usr/src/usr.bin/rs/rs.c'


a "make cleandir" is not helping here.

I this a problem with tihs Update? 
https://cgit.freebsd.org/src/commit/?id=afb4998dd4de03c2d635faf7db89f3d3f6c3a6ff



Greetings
Jochen






Re: buildkernel doesn't respect PORTSDIR with PORTS_MODULES

2022-11-24 Thread Yuri
Juraj Lutter wrote:
> 
> 
>> On 24 Nov 2022, at 15:16, Juraj Lutter  wrote:
>>>
>>> bsd.port.mk and bsd.port.subdir.mk use _PORTSDIR.  You could try adding
>>> that to your list.
>>>
>>
>> PORTS_MODULES are being built from within kern.post.mk. I’d put PORTSDIR 
>> into src-env.conf instead of /etc/src.conf, for that purpose.
> 
> Fingers are quicker than the brain: I’d put PORTSDIR into /etc/src.conf 
> instead of /etc/make.conf for that purpose.

Does it work for you?  I have tried putting it in all of the
/etc/src.conf, /etc/src-env.conf, and /etc/make.conf; still /usr/ports
is being used.

Looks like the expansion does not happen properly (for me, at least) in
kern.post.mk and the following seems to help (with PORTSDIR specified in
one of those 3 conf files or in environment):

diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk
index d08dfe30d7d..7b208510483 100644
--- a/sys/conf/kern.post.mk
+++ b/sys/conf/kern.post.mk
@@ -133,7 +133,7 @@ PORTSMODULESENV=\
 all:
 .for __i in ${PORTS_MODULES}
@${ECHO} "===> Ports module ${__i} (all)"
-   cd $${PORTSDIR:-/usr/ports}/${__i}; ${PORTSMODULESENV} ${MAKE}
-B clean build
+   cd ${PORTSDIR:U/usr/ports}/${__i}; ${PORTSMODULESENV} ${MAKE} -B
clean build
 .endfor

 .for __target in install reinstall clean
@@ -141,7 +141,7 @@ ${__target}: ports-${__target}
 ports-${__target}:
 .for __i in ${PORTS_MODULES}
@${ECHO} "===> Ports module ${__i} (${__target})"
-   cd $${PORTSDIR:-/usr/ports}/${__i}; ${PORTSMODULESENV} ${MAKE}
-B ${__target:C/(re)?install/deinstall reinstall/}
+   cd ${PORTSDIR:U/usr/ports}/${__i}; ${PORTSMODULESENV} ${MAKE} -B
${__target:C/(re)?install/deinstall reinstall/} .endfor
 .endfor
 .endif



Re: buildkernel doesn't respect PORTSDIR with PORTS_MODULES

2022-11-24 Thread Juraj Lutter



> On 24 Nov 2022, at 15:16, Juraj Lutter  wrote:
>> 
>> bsd.port.mk and bsd.port.subdir.mk use _PORTSDIR.  You could try adding
>> that to your list.
>> 
> 
> PORTS_MODULES are being built from within kern.post.mk. I’d put PORTSDIR into 
> src-env.conf instead of /etc/src.conf, for that purpose.

Fingers are quicker than the brain: I’d put PORTSDIR into /etc/src.conf instead 
of /etc/make.conf for that purpose.

otis

—
Juraj Lutter
o...@freebsd.org




Re: buildkernel doesn't respect PORTSDIR with PORTS_MODULES

2022-11-24 Thread Juraj Lutter



> On 24 Nov 2022, at 15:05, Gary Jennejohn  wrote:
> 
> On Thu, 24 Nov 2022 12:02:35 +
> Nuno Teixeira  wrote:
> 
>> Hello,
>> 
>> I'm trying PORT_MODULES with make.conf:
>> ---
>> PORTSDIR=/work/freebsd/ports
>> DISTDIR=/work/DISTFILES
>> PORTS_MODULES=graphics/drm-kmod x11/nvidia-driver
>> 
> 
> bsd.port.mk and bsd.port.subdir.mk use _PORTSDIR.  You could try adding
> that to your list.
> 

PORTS_MODULES are being built from within kern.post.mk. I’d put PORTSDIR into 
src-env.conf instead of /etc/src.conf, for that purpose.

—
Juraj Lutter
o...@freebsd.org




Re: buildkernel doesn't respect PORTSDIR with PORTS_MODULES

2022-11-24 Thread Gary Jennejohn
On Thu, 24 Nov 2022 12:02:35 +
Nuno Teixeira  wrote:

> Hello,
>
> I'm trying PORT_MODULES with make.conf:
> ---
> PORTSDIR=/work/freebsd/ports
> DISTDIR=/work/DISTFILES
> PORTS_MODULES=graphics/drm-kmod x11/nvidia-driver
> ---
> and `make buildkernel` fails:
> ---
> linking kernel.full
> ctfmerge -L VERSION -g -o kernel.full ...
>   text  data   bssdec hex   filename
>   22977071   1848409   4437760   29263240   0x1be8588   kernel.full
> cd: /usr/ports/graphics/drm-kmod: No such file or directory
> ---
>
> Any hint?
> Thanks,
>

bsd.port.mk and bsd.port.subdir.mk use _PORTSDIR.  You could try adding
that to your list.

--
Gary Jennejohn



buildkernel doesn't respect PORTSDIR with PORTS_MODULES

2022-11-24 Thread Nuno Teixeira
Hello,

I'm trying PORT_MODULES with make.conf:
---
PORTSDIR=/work/freebsd/ports
DISTDIR=/work/DISTFILES
PORTS_MODULES=graphics/drm-kmod x11/nvidia-driver
---
and `make buildkernel` fails:
---
linking kernel.full
ctfmerge -L VERSION -g -o kernel.full ...
  text  data   bssdec hex   filename
  22977071   1848409   4437760   29263240   0x1be8588   kernel.full
cd: /usr/ports/graphics/drm-kmod: No such file or directory
---

Any hint?
Thanks,

-- 
Nuno Teixeira
FreeBSD Committer (ports)