View previous topic :: View next topic |
Author |
Message |
wrc1944 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 15 Aug 2002 Posts: 3456 Location: Gainesville, Florida
|
Posted: Sun Mar 17, 2019 5:28 pm Post subject: gentoo-sources-5.0.2 warnings treated as errors |
|
|
My config worked normally on 5.0.0 and 5.0.1, but fails on 5.0.2 ( and many previous kernels on this box). Never have this in many years, if ever, in compiling countless kernels since 2002.
Tried removing and downloading new source file, same result. Is this a known problem with 5.0.2?
Should I try some editing in arch/x86/events/amd/../? (such as this last line : "In file included from arch/x86/events/core.c:44:
arch/x86/events/perf_event.h:1035:59: note: expected ‘struct cpu_hw_event *’ but argument is of type ‘struct cpu_hw_events *’)"
Code: | amd64 /usr/src/linux-5.0.2-gentoo # kern
HOSTCC scripts/kconfig/conf.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --syncconfig Kconfig
SYSTBL arch/x86/include/generated/asm/syscalls_32.h
SYSHDR arch/x86/include/generated/asm/unistd_32_ia32.h
SYSHDR arch/x86/include/generated/asm/unistd_64_x32.h
SYSTBL arch/x86/include/generated/asm/syscalls_64.h
SYSHDR arch/x86/include/generated/uapi/asm/unistd_32.h
SYSHDR arch/x86/include/generated/uapi/asm/unistd_64.h
SYSHDR arch/x86/include/generated/uapi/asm/unistd_x32.h
HOSTCC arch/x86/tools/relocs_32.o
HOSTCC arch/x86/tools/relocs_64.o
HOSTCC arch/x86/tools/relocs_common.o
HOSTLD arch/x86/tools/relocs
UPD include/config/kernel.release
WRAP arch/x86/include/generated/uapi/asm/bpf_perf_event.h
WRAP arch/x86/include/generated/uapi/asm/poll.h
WRAP arch/x86/include/generated/asm/dma-contiguous.h
WRAP arch/x86/include/generated/asm/early_ioremap.h
WRAP arch/x86/include/generated/asm/export.h
WRAP arch/x86/include/generated/asm/mcs_spinlock.h
WRAP arch/x86/include/generated/asm/mm-arch-hooks.h
UPD include/generated/uapi/linux/version.h
UPD include/generated/utsrelease.h
HOSTCC scripts/bin2c
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
HOSTCC scripts/sortextable
HOSTCC scripts/asn1_compiler
HOSTCC scripts/extract-cert
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
CC scripts/mod/devicetable-offsets.s
UPD scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
CC kernel/bounds.s
UPD include/generated/bounds.h
UPD include/generated/timeconst.h
CC arch/x86/kernel/asm-offsets.s
UPD include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
DESCEND objtool
HOSTCC /usr/src/linux-5.0.2-gentoo/tools/objtool/fixdep.o
HOSTLD /usr/src/linux-5.0.2-gentoo/tools/objtool/fixdep-in.o
LINK /usr/src/linux-5.0.2-gentoo/tools/objtool/fixdep
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/exec-cmd.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/help.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/pager.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/parse-options.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/run-command.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/sigchain.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/subcmd-config.o
LD /usr/src/linux-5.0.2-gentoo/tools/objtool/libsubcmd-in.o
AR /usr/src/linux-5.0.2-gentoo/tools/objtool/libsubcmd.a
GEN /usr/src/linux-5.0.2-gentoo/tools/objtool/arch/x86/lib/inat-tables.c
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/arch/x86/decode.o
LD /usr/src/linux-5.0.2-gentoo/tools/objtool/arch/x86/objtool-in.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/builtin-check.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/builtin-orc.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/check.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/orc_gen.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/orc_dump.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/elf.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/special.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/objtool.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/libstring.o
CC /usr/src/linux-5.0.2-gentoo/tools/objtool/str_error_r.o
LD /usr/src/linux-5.0.2-gentoo/tools/objtool/objtool-in.o
LINK /usr/src/linux-5.0.2-gentoo/tools/objtool/objtool
CC init/main.o
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
CC init/do_mounts.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
CC init/initramfs.o
CC init/calibrate.o
CC init/init_task.o
AR init/built-in.a
HOSTCC usr/gen_init_cpio
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
AR usr/built-in.a
CC arch/x86/crypto/glue_helper.o
AS arch/x86/crypto/aes-x86_64-asm_64.o
CC arch/x86/crypto/aes_glue.o
AS arch/x86/crypto/aesni-intel_asm.o
CC arch/x86/crypto/aesni-intel_glue.o
AS arch/x86/crypto/aesni-intel_avx-x86_64.o
AS arch/x86/crypto/aes_ctrby8_avx-x86_64.o
AR arch/x86/crypto/built-in.a
CC arch/x86/entry/vdso/vma.o
CC arch/x86/entry/vdso/vdso32-setup.o
LDS arch/x86/entry/vdso/vdso.lds
AS arch/x86/entry/vdso/vdso-note.o
CC arch/x86/entry/vdso/vclock_gettime.o
CC arch/x86/entry/vdso/vgetcpu.o
VDSO arch/x86/entry/vdso/vdso64.so.dbg
OBJCOPY arch/x86/entry/vdso/vdso64.so
HOSTCC arch/x86/entry/vdso/vdso2c
VDSO2C arch/x86/entry/vdso/vdso-image-64.c
CC arch/x86/entry/vdso/vdso-image-64.o
LDS arch/x86/entry/vdso/vdso32/vdso32.lds
CC arch/x86/entry/vdso/vdso32/vclock_gettime.o
AS arch/x86/entry/vdso/vdso32/note.o
AS arch/x86/entry/vdso/vdso32/system_call.o
AS arch/x86/entry/vdso/vdso32/sigreturn.o
VDSO arch/x86/entry/vdso/vdso32.so.dbg
OBJCOPY arch/x86/entry/vdso/vdso32.so
VDSO2C arch/x86/entry/vdso/vdso-image-32.c
CC arch/x86/entry/vdso/vdso-image-32.o
AR arch/x86/entry/vdso/built-in.a
CC arch/x86/entry/vsyscall/vsyscall_gtod.o
CC arch/x86/entry/vsyscall/vsyscall_64.o
AS arch/x86/entry/vsyscall/vsyscall_emu_64.o
AR arch/x86/entry/vsyscall/built-in.a
AS arch/x86/entry/entry_64.o
AS arch/x86/entry/thunk_64.o
CC arch/x86/entry/syscall_64.o
CC arch/x86/entry/common.o
AS arch/x86/entry/entry_64_compat.o
CC arch/x86/entry/syscall_32.o
AR arch/x86/entry/built-in.a
CC arch/x86/events/amd/core.o
In file included from arch/x86/events/amd/core.c:8:
arch/x86/events/amd/../perf_event.h:1035:45: warning: ‘struct cpu_hw_event’ declared inside parameter list will not be visible outside of this definition or declaration
static inline int intel_cpuc_prepare(struct cpu_hw_event *cpuc, int cpu)
^~~~~~~~~~~~
arch/x86/events/amd/../perf_event.h:1040:45: warning: ‘struct cpu_hw_event’ declared inside parameter list will not be visible outside of this definition or declaration
static inline void intel_cpuc_finish(struct cpu_hw_event *cpuc)
^~~~~~~~~~~~
CC arch/x86/events/amd/uncore.o
CC arch/x86/events/amd/ibs.o
In file included from arch/x86/events/amd/ibs.c:19:
arch/x86/events/amd/../perf_event.h:1035:45: warning: ‘struct cpu_hw_event’ declared inside parameter list will not be visible outside of this definition or declaration
static inline int intel_cpuc_prepare(struct cpu_hw_event *cpuc, int cpu)
^~~~~~~~~~~~
arch/x86/events/amd/../perf_event.h:1040:45: warning: ‘struct cpu_hw_event’ declared inside parameter list will not be visible outside of this definition or declaration
static inline void intel_cpuc_finish(struct cpu_hw_event *cpuc)
^~~~~~~~~~~~
CC arch/x86/events/amd/iommu.o
In file included from arch/x86/events/amd/iommu.c:21:
arch/x86/events/amd/../perf_event.h:1035:45: warning: ‘struct cpu_hw_event’ declared inside parameter list will not be visible outside of this definition or declaration
static inline int intel_cpuc_prepare(struct cpu_hw_event *cpuc, int cpu)
^~~~~~~~~~~~
arch/x86/events/amd/../perf_event.h:1040:45: warning: ‘struct cpu_hw_event’ declared inside parameter list will not be visible outside of this definition or declaration
static inline void intel_cpuc_finish(struct cpu_hw_event *cpuc)
^~~~~~~~~~~~
AR arch/x86/events/amd/built-in.a
CC arch/x86/events/core.o
In file included from arch/x86/events/core.c:44:
arch/x86/events/perf_event.h:1035:45: warning: ‘struct cpu_hw_event’ declared inside parameter list will not be visible outside of this definition or declaration
static inline int intel_cpuc_prepare(struct cpu_hw_event *cpuc, int cpu)
^~~~~~~~~~~~
arch/x86/events/perf_event.h:1040:45: warning: ‘struct cpu_hw_event’ declared inside parameter list will not be visible outside of this definition or declaration
static inline void intel_cpuc_finish(struct cpu_hw_event *cpuc)
^~~~~~~~~~~~
arch/x86/events/core.c: In function ‘free_fake_cpuc’:
arch/x86/events/core.c:1998:20: error: passing argument 1 of ‘intel_cpuc_finish’ from incompatible pointer type [-Werror=incompatible-pointer-types]
intel_cpuc_finish(cpuc);
^~~~
In file included from arch/x86/events/core.c:44:
arch/x86/events/perf_event.h:1040:59: note: expected ‘struct cpu_hw_event *’ but argument is of type ‘struct cpu_hw_events *’
static inline void intel_cpuc_finish(struct cpu_hw_event *cpuc)
~~~~~~~~~~~~~~~~~~~~~^~~~
arch/x86/events/core.c: In function ‘allocate_fake_cpuc’:
arch/x86/events/core.c:2012:25: error: passing argument 1 of ‘intel_cpuc_prepare’ from incompatible pointer type [-Werror=incompatible-pointer-types]
if (intel_cpuc_prepare(cpuc, cpu))
^~~~
In file included from arch/x86/events/core.c:44:
arch/x86/events/perf_event.h:1035:59: note: expected ‘struct cpu_hw_event *’ but argument is of type ‘struct cpu_hw_events *’
static inline int intel_cpuc_prepare(struct cpu_hw_event *cpuc, int cpu)
~~~~~~~~~~~~~~~~~~~~~^~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:277: arch/x86/events/core.o] Error 1
make[1]: *** [scripts/Makefile.build:492: arch/x86/events] Error 2
make: *** [Makefile:1043: arch/x86] Error 2
amd64 /usr/src/linux-5.0.2-gentoo |
--------------------------------------------------------------------------------------------
Here's the gentoo-sources patching output:
Code: | >>> Emerging (1 of 1) sys-kernel/gentoo-sources-5.0.2::gentoo
>>> Downloading 'http://gentoo.osuosl.org/distfiles/linux-5.0.tar.xz'
--2019-03-17 12:48:34-- http://gentoo.osuosl.org/distfiles/linux-5.0.tar.xz
Resolving gentoo.osuosl.org... 140.211.166.134, 64.50.233.100, 64.50.236.52
Connecting to gentoo.osuosl.org|140.211.166.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 105235152 (100M) [application/x-xz]
Saving to: ‘/usr/portage/distfiles/linux-5.0.tar.xz’
/usr/portage/distfi 100%[===================>] 100.36M 2.19MB/s in 48s
2019-03-17 12:49:23 (2.07 MB/s) - ‘/usr/portage/distfiles/linux-5.0.tar.xz’ saved [105235152/105235152]
* linux-5.0.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ]
* genpatches-5.0-3.base.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ]
* genpatches-5.0-3.extras.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ]
* genpatches-5.0-3.experimental.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ]
>>> Preparing to unpack ...
>>> Unpacking source...
>>> Unpacking linux-5.0.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work
>>> Unpacking genpatches-5.0-3.base.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work/patches
>>> Unpacking genpatches-5.0-3.extras.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work/patches
>>> Unpacking genpatches-5.0-3.experimental.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work/patches
* Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc.patch ... [ ok ]
* Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch ... [ ok ]
* Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc.patch ... [ ok ]
* Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch ... [ ok ]
* Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc.patch ... [ ok ]
* Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch ... [ ok ]
* Applying 1000_linux-5.0.1.patch (-p1) ... [ ok ]
* Applying 1001_linux-5.0.2.patch (-p1) ... [ ok ]
* Applying 1500_XATTR_USER_PREFIX.patch (-p1) ... [ ok ]
* Applying 1510_fs-enable-link-security-restrictions-by-default.patch (-p1) ... [ ok ]
* Applying 2500_usb-storage-Disable-UAS-on-JMicron-SATA-enclosure.patch (-p1) ... [ ok ]
* Applying 2600_enable-key-swapping-for-apple-mac.patch (-p1) ... [ ok ]
* Applying 2900_netfilter-patch-nf_tables-fix-set-double-free-in-abort-path.patch (-p1) ... [ ok ]
* Applying 4567_distro-Gentoo-Kconfig.patch (-p1) ... [ ok ]
* Applying 5011_enable-cpu-optimizations-for-gcc8.patch (-p1) ... [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work
>>> Preparing source in /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work/linux-5.0.2-gentoo ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work/linux-5.0.2-gentoo ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work/linux-5.0.2-gentoo ...
>>> Source compiled.
>>> Test phase [not enabled]: sys-kernel/gentoo-sources-5.0.2
>>> Install gentoo-sources-5.0.2 into /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/image/ category sys-kernel
>>> Copying sources ...
>>> Completed installing gentoo-sources-5.0.2 into /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/image/
* Final size of build directory: 4 KiB
* Final size of installed tree: 955812 KiB (933.4 MiB) |
_________________ Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.40-r5, gcc-14
kernel-6.12.8 USE=experimental python3_12.7-final-0 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31470 Location: here
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
wrc1944 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 15 Aug 2002 Posts: 3456 Location: Gainesville, Florida
|
Posted: Sun Mar 17, 2019 6:01 pm Post subject: |
|
|
fedeliallalinea,
Thanks much for the links! Guess I should have checked bugzilla first (usually do)
I am pleased that I was on the right track- must be getting a little better at this kind of stuff. ![Smile :)](images/smiles/icon_smile.gif) _________________ Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.40-r5, gcc-14
kernel-6.12.8 USE=experimental python3_12.7-final-0 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|