Re: Problem building kernel
> On Dec 24, 2023, at 19:31, Justin Hibbits wrote: > > Hi Michael, > > The GENERIC config is for 32-bit powerpc, GENERIC64 is what you want > for 64-bit config. Hi Justin, thanks a lot! That was the problem. Best regards Michael > > - Justin > > On Sun, 24 Dec 2023 12:18:55 +0100 > tue...@freebsd.org wrote: > >> Dear all, >> >> I just tried to build world and kernel on a 64-bit PPC system. >> >> make -j 32 buildworld >> >> ran without problems. >> However >> >> make kernel KERNCONF=GENERIC >> >> breaks with >> .. >> --- all_subdir_accf_data --- >> --- accf_data.kld --- >> ld -m elf32ppc_fbsd -warn-common --build-id=sha1 --no-toc-optimize >> -r -o accf_data.kld accf_data.o --- all_subdir_acl_nfs4 --- >> --- offset.inc --- >> sh /usr/home/tuexen/freebsd-src/sys/kern/genoffset.sh genoffset.o > >> offset.inc --- all_subdir_accf_data --- >> ld: error: accf_data.o is incompatible with elf32ppc_fbsd >> *** [accf_data.kld] Error code 1 >> >> make[4]: stopped in /usr/home/tuexen/freebsd-src/sys/modules/accf_data >> 5.79 real22.37 user15.35 sys >> >> make[1]: stopped in /usr/home/tuexen/freebsd-src >> >> make: stopped in /usr/home/tuexen/freebsd-src >> tuexen@blackbird: >> >> Any idea what is going wrong? >> >> Best regards >> Michael >
Re: Problem building kernel
Hi Michael, The GENERIC config is for 32-bit powerpc, GENERIC64 is what you want for 64-bit config. - Justin On Sun, 24 Dec 2023 12:18:55 +0100 tue...@freebsd.org wrote: > Dear all, > > I just tried to build world and kernel on a 64-bit PPC system. > > make -j 32 buildworld > > ran without problems. > However > > make kernel KERNCONF=GENERIC > > breaks with > .. > --- all_subdir_accf_data --- > --- accf_data.kld --- > ld -m elf32ppc_fbsd -warn-common --build-id=sha1 --no-toc-optimize > -r -o accf_data.kld accf_data.o --- all_subdir_acl_nfs4 --- > --- offset.inc --- > sh /usr/home/tuexen/freebsd-src/sys/kern/genoffset.sh genoffset.o > > offset.inc --- all_subdir_accf_data --- > ld: error: accf_data.o is incompatible with elf32ppc_fbsd > *** [accf_data.kld] Error code 1 > > make[4]: stopped in /usr/home/tuexen/freebsd-src/sys/modules/accf_data >5.79 real22.37 user15.35 sys > > make[1]: stopped in /usr/home/tuexen/freebsd-src > > make: stopped in /usr/home/tuexen/freebsd-src > tuexen@blackbird: > > Any idea what is going wrong? > > Best regards > Michael
Re: Problem building kernel
On 24.12.2023 15:47, tue...@freebsd.org wrote: On Dec 24, 2023, at 12:27, Vladimir Kondratyev wrote: On 24.12.2023 14:18, tue...@freebsd.org wrote: Dear all, I just tried to build world and kernel on a 64-bit PPC system. make -j 32 buildworld ran without problems. However make kernel KERNCONF=GENERIC breaks with .. --- all_subdir_accf_data --- --- accf_data.kld --- ld -m elf32ppc_fbsd -warn-common --build-id=sha1 --no-toc-optimize -r -o accf_data.kld accf_data.o --- all_subdir_acl_nfs4 --- --- offset.inc --- sh /usr/home/tuexen/freebsd-src/sys/kern/genoffset.sh genoffset.o > offset.inc --- all_subdir_accf_data --- ld: error: accf_data.o is incompatible with elf32ppc_fbsd *** [accf_data.kld] Error code 1 make[4]: stopped in /usr/home/tuexen/freebsd-src/sys/modules/accf_data 5.79 real22.37 user15.35 sys make[1]: stopped in /usr/home/tuexen/freebsd-src make: stopped in /usr/home/tuexen/freebsd-src tuexen@blackbird: Any idea what is going wrong? Best regards Michael Latest LKPI changes broke 32 bit archs and powerpc. I am going to fix them. Sorry for breakage. No problem. If you want me to test a fix, drop me an e-mail. Best regards Michael Hopefully it is fixed now. -- WBR Vladimir Kondratyev
Re: Problem building kernel
> On Dec 24, 2023, at 12:27, Vladimir Kondratyev wrote: > > On 24.12.2023 14:18, tue...@freebsd.org wrote: >> Dear all, >> I just tried to build world and kernel on a 64-bit PPC system. >> make -j 32 buildworld >> ran without problems. >> However >> make kernel KERNCONF=GENERIC >> breaks with >> .. >> --- all_subdir_accf_data --- >> --- accf_data.kld --- >> ld -m elf32ppc_fbsd -warn-common --build-id=sha1 --no-toc-optimize -r -o >> accf_data.kld accf_data.o >> --- all_subdir_acl_nfs4 --- >> --- offset.inc --- >> sh /usr/home/tuexen/freebsd-src/sys/kern/genoffset.sh genoffset.o > >> offset.inc >> --- all_subdir_accf_data --- >> ld: error: accf_data.o is incompatible with elf32ppc_fbsd >> *** [accf_data.kld] Error code 1 >> make[4]: stopped in /usr/home/tuexen/freebsd-src/sys/modules/accf_data >> 5.79 real22.37 user15.35 sys >> make[1]: stopped in /usr/home/tuexen/freebsd-src >> make: stopped in /usr/home/tuexen/freebsd-src >> tuexen@blackbird: >> Any idea what is going wrong? >> Best regards >> Michael > > Latest LKPI changes broke 32 bit archs and powerpc. > > I am going to fix them. Sorry for breakage. No problem. If you want me to test a fix, drop me an e-mail. Best regards Michael > > -- > WBR > Vladimir Kondratyev > >
Re: Problem building kernel
On 24.12.2023 14:18, tue...@freebsd.org wrote: Dear all, I just tried to build world and kernel on a 64-bit PPC system. make -j 32 buildworld ran without problems. However make kernel KERNCONF=GENERIC breaks with .. --- all_subdir_accf_data --- --- accf_data.kld --- ld -m elf32ppc_fbsd -warn-common --build-id=sha1 --no-toc-optimize -r -o accf_data.kld accf_data.o --- all_subdir_acl_nfs4 --- --- offset.inc --- sh /usr/home/tuexen/freebsd-src/sys/kern/genoffset.sh genoffset.o > offset.inc --- all_subdir_accf_data --- ld: error: accf_data.o is incompatible with elf32ppc_fbsd *** [accf_data.kld] Error code 1 make[4]: stopped in /usr/home/tuexen/freebsd-src/sys/modules/accf_data 5.79 real22.37 user15.35 sys make[1]: stopped in /usr/home/tuexen/freebsd-src make: stopped in /usr/home/tuexen/freebsd-src tuexen@blackbird: Any idea what is going wrong? Best regards Michael Latest LKPI changes broke 32 bit archs and powerpc. I am going to fix them. Sorry for breakage. -- WBR Vladimir Kondratyev
Problem building kernel
Dear all, I just tried to build world and kernel on a 64-bit PPC system. make -j 32 buildworld ran without problems. However make kernel KERNCONF=GENERIC breaks with .. --- all_subdir_accf_data --- --- accf_data.kld --- ld -m elf32ppc_fbsd -warn-common --build-id=sha1 --no-toc-optimize -r -o accf_data.kld accf_data.o --- all_subdir_acl_nfs4 --- --- offset.inc --- sh /usr/home/tuexen/freebsd-src/sys/kern/genoffset.sh genoffset.o > offset.inc --- all_subdir_accf_data --- ld: error: accf_data.o is incompatible with elf32ppc_fbsd *** [accf_data.kld] Error code 1 make[4]: stopped in /usr/home/tuexen/freebsd-src/sys/modules/accf_data 5.79 real22.37 user15.35 sys make[1]: stopped in /usr/home/tuexen/freebsd-src make: stopped in /usr/home/tuexen/freebsd-src tuexen@blackbird: Any idea what is going wrong? Best regards Michael
problem building kernel for r368820
Hello: I'm trying to update a system from: FreeBSD 13.0-CURRENT #0 r365372: Sun Sep 6 10:51:26 EDT 2020 amd64 to the latest version. buildworld completes successfully. buildkernel, however, dies with: struct device dev; ^ /usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct device' typedef struct device *device_t; ^ In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_backlight.c:12: In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44: /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:152:9: error: implicit declaration of function 'dev_get_drvdata' is invalid in C99 [-Werror,-Wimplicit-function-declaration] return dev_get_drvdata(_dev->dev); ^ In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_backlight.c:12: In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4: /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:212:1: error: static declaration of 'dev_get_drvdata' follows non-static declaration dev_get_drvdata(const struct device *dev) ^ /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:242:9: note: previous implicit declaration is here return dev_get_drvdata(>dev); ^ In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_backlight.c:12: In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4: /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:219:1: error: static declaration of 'dev_set_drvdata' follows non-static declaration dev_set_drvdata(struct device *dev, void *data) ^ /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:248:2: note: previous implicit declaration is here dev_set_drvdata(>dev, data); ^ In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_backlight.c:12: In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4: /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:438:1: error: static declaration of 'device_unregister' follows non-static declaration device_unregister(struct device *dev) ^ /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:236:2: note: previous implicit declaration is here device_unregister(>dev); ^ /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_backlight.c:277:27: error: initializing 'struct backlight_device *' with an expression of incompatible type 'void' struct backlight_device *bd = to_backlight_device(dev); ^ 12 errors generated. *** Error code 1 Stop. make[4]: stopped in /usr/local/sys/modules/drm-current-kmod/linuxkpi *** Error code 1 *** Error code 1 (The configuration file is appended.) There's nothing in UPDATING to suggest a cause, and I haven't seen anything on this list. This implies it's my fault. Help, please? Respectfully, Robert Huff # # JERUSALEM -- kernel configuration file for FreeBSD/amd64 # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # https://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # # $FreeBSD: head/sys/amd64/conf/GENERIC 343949 2019-02-10 07:54:46Z cem $ cpu HAMMER ident JERUSALEM makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support options SCHED_ULE # ULE scheduler options NUMA# Non-Uniform Memory Architecture support options PREEMPTION # Enable kernel thread preemption options VIMAGE # Subsystem virtualization, e.g. VNET options INET# InterNETworking options INET6 # IPv6 communications protocols options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 options ROUTE_MPATH