On Sun, Jul 26, 2015 at 11:06 PM, Josh Boyer <jwboyer@xxxxxxxxxxxxxxxxx> wrote: > On Sun, Jul 26, 2015 at 9:39 AM, Masami Ichikawa <masami256@xxxxxxxxx> wrote: >> Hi, >> >> I tried to rebuild kernel from kernel-4.2.0-0.rc3.git3.1.fc23.src.rpm >> but I got following error. >> >> Applying: lib/cpumask: Make CPUMASK_OFFSTACK usable without debug dependency >> Applying: amd-xgbe-a0: Add support for XGBE on A0 >> Applying: amd-xgbe-phy-a0: Add support for XGBE PHY on A0 >> Applying: arm64: avoid needing console= to enable serial console >> Applying: usb: make xhci platform driver use 64 bit or 32 bit DMA >> Applying: arm64: acpi drop expert patch >> Applying: ARM: tegra: usb no reset >> error: drivers/usb/core/hub.c: does not exist in index >> Patch failed at 0007 ARM: tegra: usb no reset >> The copy of the patch that failed is found in: >> /home/masami/rpmbuild/BUILD/kernel-4.1.fc23/linux-4.2.0-0.rc3.git3.1.fc23.x86_64/.git/rebase-apply/patch >> When you have resolved this problem, run "git am --continue". >> If you prefer to skip this patch, run "git am --skip" instead. >> To restore the original branch and stop patching, run "git am --abort". >> error: Bad exit status from /var/tmp/rpm-tmp.yWoA78 (%prep) >> >> Failed patch is this. >> >> masami@f23-test:~$ cat >> rpmbuild/BUILD/kernel-4.1.fc23/linux-4.2.0-0.rc3.git3.1.fc23.x86_64/.git/rebase-apply/patch >> --- >> drivers/usb/core/hub.c | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c >> index 43cb2f2e3b43..7f838ec11c81 100644 >> --- a/drivers/usb/core/hub.c >> +++ b/drivers/usb/core/hub.c >> @@ -4996,6 +4996,13 @@ static void hub_event(struct work_struct *work) >> (u16) hub->change_bits[0], >> (u16) hub->event_bits[0]); >> >> + /* Don't disconnect USB-SATA on TrimSlice */ >> + if (strcmp(dev_name(hdev->bus->controller), "tegra-ehci.0") == 0) { >> + if ((hdev->state == 7) && (hub->change_bits[0] == 0) && >> + (hub->event_bits[0] == 0x2)) >> + hub->event_bits[0] = 0; >> + } >> + >> /* Lock the device, then check to see if we were >> * disconnected while waiting for the lock to succeed. */ >> usb_lock_device(hdev); >> >> any idea? >> >> I did following command to rebuild on fedora 23(x86_64) environment. >> rpmbuild -bp --target=$(uname -m) kernel.spec > > We'd likely need to see the whole log. Also, why are you rebuilding > something that is already built on koji? Normally that is done if > someone makes modifications, so I'm curious if you have done so. > I paste whole log in the bottom of this mail. The reason I tried to rebuild is, I wanted to know how fedora kernel is built. Usually, when I modify kernel, I use upstream kernel and did make bzImage, make modules steps. So that is the reason I tried to rebuild. > josh masami@f23-test:~/rpmbuild/SPECS$ rpmbuild -bp --target=$(uname -m) kernel.spec 2>&1 | tee ~/f23_build.log Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4LpL3H + umask 022 + cd /home/masami/rpmbuild/BUILD + patch_command='patch -p1 -F1 -s' ++ find /home/masami/rpmbuild/BUILD -maxdepth 1 -type d -name 'kernel-4.*' ++ grep -x -v /home/masami/rpmbuild/BUILD/kernel-4.1.fc23 + sharedirs= + : + '[' -d kernel-4.1.fc23 ']' + cd kernel-4.1.fc23 + for i in 'linux-*' + '[' -d linux-4.2.0-0.rc3.git3.1.fc23.x86_64 ']' + rm -rf deleteme.x86_64 + mv linux-4.2.0-0.rc3.git3.1.fc23.x86_64 deleteme-linux-4.2.0-0.rc3.git3.1.fc23.x86_64 + cd .. + '[' '!' -d kernel-4.1.fc23/vanilla-4.2-rc3-git3 ']' + cd kernel-4.1.fc23 + cp -al vanilla-4.2-rc3-git3 linux-4.2.0-0.rc3.git3.1.fc23.x86_64 + rm -rf deleteme-linux-4.2.0-0.rc3.git3.1.fc23.x86_64 + cd linux-4.2.0-0.rc3.git3.1.fc23.x86_64 + cp /home/masami/rpmbuild/SOURCES/config-arm-generic /home/masami/rpmbuild/SOURCES/config-arm64 /home/masami/rpmbuild/SOURCES/config-armv7 /home/masami/rpmbuild/SOURCES/config-armv7-generic /home/masami/rpmbuild/SOURCES/config-armv7-lpae /home/masami/rpmbuild/SOURCES/config-debug /home/masami/rpmbuild/SOURCES/config-generic /home/masami/rpmbuild/SOURCES/config-i686-PAE /home/masami/rpmbuild/SOURCES/config-local /home/masami/rpmbuild/SOURCES/config-no-extra /home/masami/rpmbuild/SOURCES/config-nodebug /home/masami/rpmbuild/SOURCES/config-powerpc64 /home/masami/rpmbuild/SOURCES/config-powerpc64-generic /home/masami/rpmbuild/SOURCES/config-powerpc64le /home/masami/rpmbuild/SOURCES/config-powerpc64p7 /home/masami/rpmbuild/SOURCES/config-s390x /home/masami/rpmbuild/SOURCES/config-x86-32-generic /home/masami/rpmbuild/SOURCES/config-x86-generic /home/masami/rpmbuild/SOURCES/config-x86_64-generic . + cp /home/masami/rpmbuild/SOURCES/merge.pl . + make -f /home/masami/rpmbuild/SOURCES/Makefile.config VERSION=4.2.0 configs perl merge.pl config-x86-32-generic config-x86-generic > temp-x86-32 cat config-generic config-nodebug > temp-generic perl merge.pl temp-x86-32 temp-generic > temp-x86-32-generic perl merge.pl /dev/null temp-x86-32-generic i386 > kernel-4.2.0-i686.config cat config-generic config-debug > temp-debug-generic perl merge.pl temp-x86-32 temp-debug-generic > temp-x86-debug-generic perl merge.pl /dev/null temp-x86-debug-generic i386 > kernel-4.2.0-i686-debug.config perl merge.pl config-i686-PAE temp-x86-32-generic i386 > kernel-4.2.0-i686-PAE.config perl merge.pl config-i686-PAE temp-x86-debug-generic i386 > kernel-4.2.0-i686-PAEdebug.config perl merge.pl config-x86_64-generic config-x86-generic > temp-x86-64 perl merge.pl temp-x86-64 temp-generic > temp-x86_64-generic perl merge.pl /dev/null temp-x86_64-generic x86_64 > kernel-4.2.0-x86_64.config perl merge.pl temp-x86-64 temp-debug-generic > temp-x86_64-debug-generic perl merge.pl /dev/null temp-x86_64-debug-generic x86_64 > kernel-4.2.0-x86_64-debug.config perl merge.pl config-s390x temp-generic > temp-s390-generic perl merge.pl config-s390x temp-s390-generic s390 > kernel-4.2.0-s390x.config perl merge.pl config-no-extra temp-generic > temp-no-extra-generic perl merge.pl config-arm-generic temp-no-extra-generic > temp-arm-generic perl merge.pl config-armv7-generic temp-arm-generic > temp-armv7-generic perl merge.pl config-armv7 temp-armv7-generic > temp-armv7 perl merge.pl /dev/null temp-armv7 arm > kernel-4.2.0-armv7hl.config perl merge.pl config-armv7-lpae temp-armv7-generic > temp-armv7-lpae perl merge.pl /dev/null temp-armv7-lpae arm > kernel-4.2.0-armv7hl-lpae.config perl merge.pl config-arm64 temp-arm-generic > temp-arm64 perl merge.pl /dev/null temp-arm64 arm64 > kernel-4.2.0-aarch64.config perl merge.pl config-powerpc64-generic temp-generic > temp-powerpc64-generic perl merge.pl config-powerpc64 temp-powerpc64-generic powerpc > kernel-4.2.0-ppc64.config perl merge.pl config-powerpc64p7 temp-powerpc64-generic powerpc > kernel-4.2.0-ppc64p7.config perl merge.pl config-powerpc64-generic temp-debug-generic > temp-powerpc64-debug-generic perl merge.pl config-powerpc64 temp-powerpc64-debug-generic powerpc > kernel-4.2.0-ppc64-debug.config perl merge.pl config-powerpc64le temp-powerpc64-generic powerpc > kernel-4.2.0-ppc64le.config perl merge.pl config-powerpc64le temp-powerpc64-debug-generic powerpc > kernel-4.2.0-ppc64le-debug.config + for i in 'kernel-4.2.0-x86_64*.config' + mv kernel-4.2.0-x86_64-debug.config kernel-4.2.0-x86_64-debug.config.tmp + ./merge.pl /home/masami/rpmbuild/SOURCES/config-local kernel-4.2.0-x86_64-debug.config.tmp + rm kernel-4.2.0-x86_64-debug.config.tmp + for i in 'kernel-4.2.0-x86_64*.config' + mv kernel-4.2.0-x86_64.config kernel-4.2.0-x86_64.config.tmp + ./merge.pl /home/masami/rpmbuild/SOURCES/config-local kernel-4.2.0-x86_64.config.tmp + rm kernel-4.2.0-x86_64.config.tmp + git am /home/masami/rpmbuild/SOURCES/kbuild-AFTER_LINK.patch Applying: kbuild: AFTER_LINK + git am /home/masami/rpmbuild/SOURCES/lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch /home/masami/rpmbuild/SOURCES/amd-xgbe-a0-Add-support-for-XGBE-on-A0.patch /home/masami/rpmbuild/SOURCES/amd-xgbe-phy-a0-Add-support-for-XGBE-PHY-on-A0.patch /home/masami/rpmbuild/SOURCES/arm64-avoid-needing-console-to-enable-serial-console.patch /home/masami/rpmbuild/SOURCES/usb-make-xhci-platform-driver-use-64-bit-or-32-bit-D.patch /home/masami/rpmbuild/SOURCES/arm64-acpi-drop-expert-patch.patch /home/masami/rpmbuild/SOURCES/ARM-tegra-usb-no-reset.patch /home/masami/rpmbuild/SOURCES/arm-i.MX6-Utilite-device-dtb.patch /home/masami/rpmbuild/SOURCES/Revert-Revert-ACPI-video-change-acpi-video-brightnes.patch /home/masami/rpmbuild/SOURCES/input-kill-stupid-messages.patch /home/masami/rpmbuild/SOURCES/die-floppy-die.patch /home/masami/rpmbuild/SOURCES/no-pcspkr-modalias.patch /home/masami/rpmbuild/SOURCES/input-silence-i8042-noise.patch /home/masami/rpmbuild/SOURCES/silence-fbcon-logo.patch /home/masami/rpmbuild/SOURCES/Kbuild-Add-an-option-to-enable-GCC-VTA.patch /home/masami/rpmbuild/SOURCES/crash-driver.patch /home/masami/rpmbuild/SOURCES/Add-secure_modules-call.patch /home/masami/rpmbuild/SOURCES/PCI-Lock-down-BAR-access-when-module-security-is-ena.patch /home/masami/rpmbuild/SOURCES/x86-Lock-down-IO-port-access-when-module-security-is.patch /home/masami/rpmbuild/SOURCES/ACPI-Limit-access-to-custom_method.patch /home/masami/rpmbuild/SOURCES/asus-wmi-Restrict-debugfs-interface-when-module-load.patch /home/masami/rpmbuild/SOURCES/Restrict-dev-mem-and-dev-kmem-when-module-loading-is.patch /home/masami/rpmbuild/SOURCES/acpi-Ignore-acpi_rsdp-kernel-parameter-when-module-l.patch /home/masami/rpmbuild/SOURCES/kexec-Disable-at-runtime-if-the-kernel-enforces-modu.patch /home/masami/rpmbuild/SOURCES/x86-Restrict-MSR-access-when-module-loading-is-restr.patch /home/masami/rpmbuild/SOURCES/Add-option-to-automatically-enforce-module-signature.patch /home/masami/rpmbuild/SOURCES/efi-Disable-secure-boot-if-shim-is-in-insecure-mode.patch /home/masami/rpmbuild/SOURCES/efi-Make-EFI_SECURE_BOOT_SIG_ENFORCE-depend-on-EFI.patch /home/masami/rpmbuild/SOURCES/efi-Add-EFI_SECURE_BOOT-bit.patch /home/masami/rpmbuild/SOURCES/hibernate-Disable-in-a-signed-modules-environment.patch /home/masami/rpmbuild/SOURCES/Add-EFI-signature-data-types.patch /home/masami/rpmbuild/SOURCES/Add-an-EFI-signature-blob-parser-and-key-loader.patch /home/masami/rpmbuild/SOURCES/KEYS-Add-a-system-blacklist-keyring.patch /home/masami/rpmbuild/SOURCES/MODSIGN-Import-certificates-from-UEFI-Secure-Boot.patch /home/masami/rpmbuild/SOURCES/MODSIGN-Support-not-importing-certs-from-db.patch /home/masami/rpmbuild/SOURCES/Add-sysrq-option-to-disable-secure-boot-mode.patch /home/masami/rpmbuild/SOURCES/drm-i915-hush-check-crtc-state.patch /home/masami/rpmbuild/SOURCES/disable-i8042-check-on-apple-mac.patch /home/masami/rpmbuild/SOURCES/lis3-improve-handling-of-null-rate.patch /home/masami/rpmbuild/SOURCES/watchdog-Disable-watchdog-on-virtual-machines.patch /home/masami/rpmbuild/SOURCES/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch /home/masami/rpmbuild/SOURCES/criu-no-expert.patch /home/masami/rpmbuild/SOURCES/ath9k-rx-dma-stop-check.patch /home/masami/rpmbuild/SOURCES/xen-pciback-Don-t-disable-PCI_COMMAND-on-PCI-device-.patch /home/masami/rpmbuild/SOURCES/Input-synaptics-pin-3-touches-when-the-firmware-repo.patch /home/masami/rpmbuild/SOURCES/firmware-Drop-WARN-from-usermodehelper_read_trylock-.patch /home/masami/rpmbuild/SOURCES/drm-i915-turn-off-wc-mmaps.patch Applying: lib/cpumask: Make CPUMASK_OFFSTACK usable without debug dependency Applying: amd-xgbe-a0: Add support for XGBE on A0 Applying: amd-xgbe-phy-a0: Add support for XGBE PHY on A0 Applying: arm64: avoid needing console= to enable serial console Applying: usb: make xhci platform driver use 64 bit or 32 bit DMA Applying: arm64: acpi drop expert patch Applying: ARM: tegra: usb no reset error: drivers/usb/core/hub.c: does not exist in index Patch failed at 0007 ARM: tegra: usb no reset The copy of the patch that failed is found in: /home/masami/rpmbuild/BUILD/kernel-4.1.fc23/linux-4.2.0-0.rc3.git3.1.fc23.x86_64/.git/rebase-apply/patch When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". error: Bad exit status from /var/tmp/rpm-tmp.4LpL3H (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.4LpL3H (%prep) Cheers, -- Masami Ichikawa - masami256@xxxxxxxxx - masami@xxxxxxxxxxxxxxxxx _______________________________________________ kernel mailing list kernel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/kernel