Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use CONFIG_CC_STACKPROTECTOR: -fstack-protector not supported by compiler #64

Open
msj2 opened this issue Apr 25, 2017 · 3 comments

Comments

@msj2
Copy link

msj2 commented Apr 25, 2017

System info

Entry Details
OS Ubuntu 14.04 LTS
Kernel version 3.13.0-105-generic
New install No
DKMS No

Devince info

Device ID: lsusb didn'r have mediatek in it's output... pasted it below....

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 04f2:b40a Chicony Electronics Co., Ltd 
Bus 001 Device 003: ID 0489:e069 Foxconn / Hon Hai 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

General info:

#block starts

03:00.0 Network controller: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter
	Subsystem: Foxconn International, Inc. Device e074
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 3
	Region 0: Memory at f7900000 (32-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>

04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411 PCI Express Card Reader (rev 01)
	Subsystem: ASUSTeK Computer Inc. Device 202f
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin B routed to IRQ 42
	Region 0: Memory at f7800000 (32-bit, non-prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: rtsx_pci

04:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0a)
	Subsystem: ASUSTeK Computer Inc. Device 200f

Bluetooth stats:

#block starts

0: asus-wlan: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: asus-bluetooth: Bluetooth
	Soft blocked: no
	Hard blocked: no
#block ends

What didn't work?

I added exec permision to install file (sudo chmod +x install)
then run
sudo ./install

It gave below messages,....

make -C /lib/modules/3.13.0-105-generic/build M=/home/keshanna/Desktop/java app dev with hana/MT7630E-release/rt2x00 modules
make[1]: Entering directory /usr/src/linux-headers-3.13.0-105-generic' /usr/src/linux-headers-3.13.0-105-generic/arch/x86/Makefile:111: CONFIG_X86_X32 enabled but no binutils support Makefile:614: Cannot use CONFIG_CC_STACKPROTECTOR: -fstack-protector not supported by compiler make[1]: *** No rule to make target app'. Stop.
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-105-generic'
make: *** [all] Error 2

I verified my kernel headers are up to date...

sudo apt-get install linux-headers-$(uname -r)

Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-3.13.0-105-generic is already the newest version.

What did you try?

tried to run install
checked kernel header files, found they are up to date, no more updates to it...

Error code:

#block starts


make -C /lib/modules/3.13.0-105-generic/build M=/home/keshanna/Desktop/java app dev with hana/MT7630E-release/rt2x00 modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-105-generic'
/usr/src/linux-headers-3.13.0-105-generic/arch/x86/Makefile:111: CONFIG_X86_X32 enabled but no binutils support
Makefile:614: Cannot use CONFIG_CC_STACKPROTECTOR: -fstack-protector not supported by compiler
make[1]: *** No rule to make target `app'.  Stop.
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-105-generic'
make: *** [all] Error 2



#block ends

My actions: ....

make file at /usr/src/linux-headers-3.13.0-105-generic/arch/x86/Makefile was pointing to the fie at location
linux-headers-3.13.0-105/arch/x86/Makefile

was throwing the error.

Attaching that Makefile & pasting the code gragment which throws the Warning..

Makefile.txt
makefile....

100 ifdef CONFIG_X86_X32
101 x32_ld_ok := $(call try-run,
102 /bin/echo -e '1: .quad 1b' |
103 $(CC) $(KBUILD_AFLAGS) -c -x assembler -o "$$TMP" - &&
104 $(OBJCOPY) -O elf32-x86-64 "$$TMP" "$$TMPO" &&
105 $(LD) -m elf32_x86_64 "$$TMPO" -o "$$TMP",y,n)
106 ifeq ($(x32_ld_ok),y)
107 CONFIG_X86_X32_ABI := y
108 KBUILD_AFLAGS += -DCONFIG_X86_X32_ABI
109 KBUILD_CFLAGS += -DCONFIG_X86_X32_ABI
110 else
111 $(warning CONFIG_X86_X32 enabled but no binutils support)
112 endif

warning from line 111 is being thrown, because x32_ld_ok is not y...
couldn't get the meaning of lines 102 to 105.....

Help needed from you...

I checked gcc

GCC Details .... Thread model: posix
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)

I checked /lib/modules folder..

cd /lib/modules | ls

i found many folders....

3.13.0-105-generic/ 3.13.0-62-generic/ 3.13.0-66-generic/
3.13.0-24-generic/ 3.13.0-63-generic/ 3.13.0-71-generic/
3.13.0-61-generic/ 3.13.0-65-generic/ 3.13.0-93-generic/

I just left it alike, afraid to touch them...

@neurobin
Copy link
Owner

neurobin commented Apr 25, 2017

You can try with new compiler:

sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc libc6-dev

@msj2
Copy link
Author

msj2 commented Apr 25, 2017

Thanks for the swift reply.
I'll try this option

@j1cs
Copy link

j1cs commented May 8, 2017

You have the same error of #65
Try don't use folder names with space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants