Re: USB stops working if a malfunctioning USB device is connected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 16, 2016 at 12:12:53AM +0530, PrasannaKumar Muralidharan wrote:
> >> scripts/kconfig/conf  --silentoldconfig Kconfig
> >>   CHK     include/config/kernel.release
> >> Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong
> >> not supported by compiler
> >> make: *** [prepare-compiler-check] Error 1
> >> make: *** Waiting for unfinished jobs....
> >
> > So turn off CONFIG_CC_STACKPROTECTOR_STRONG or upgrade your C compiler.
> 
> I turned off CONFIG_CC_STACKPROTECTOR_STRONG and got the following error
> *******************************************************************************************************
>   HOSTCC  scripts/basic/fixdep
>   HOSTCC  scripts/basic/bin2c
>   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
>   CHK     include/config/kernel.release
>   CHK     include/generated/uapi/linux/version.h
>   CHK     include/generated/utsrelease.h
>   CC      arch/x86/purgatory/purgatory.o
>   AS      arch/x86/purgatory/stack.o
>   AS      arch/x86/purgatory/setup-x86_64.o
>   CC      arch/x86/purgatory/sha256.o
>   AS      arch/x86/purgatory/entry64.o
>   CC      arch/x86/purgatory/string.o
>   LD      arch/x86/purgatory/purgatory.ro
>   BIN2C   arch/x86/purgatory/kexec-purgatory.c
>   CHK     include/generated/timeconst.h
>   CC      kernel/bounds.s
> kernel/bounds.c:1:0: error: code model kernel does not support PIC mode
>  /*
> 
> make[1]: *** [kernel/bounds.s] Error 1
> make: *** [prepare0] Error 2
> *******************************************************************************************************
> 
> Using gcc 6.2 to compile kernel. gcc works with
> -fstack-protector-strong for a simple test c code. I doubt compiler is
> the problem. Should I make some change to make kernel compile with gcc
> 6.2? Thank you for your quick response.

This is Ubuntu, right?  Build a 64bit kernel and you should be fine,
right now Canonical is shipping a version of gcc that doesn't want to
build the kernel.  There's a patch floating around, go bug the Canonical
developers to get it upstream please...

If not, I don't know, sorry.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux