You are not logged in.

#1 2014-05-01 12:41:46

demizer
Member
From: Gilroy, CA
Registered: 2010-03-03
Posts: 116
Website

[SOLVED] 3.14.2-1 and CONFIG_CC_STACKPROTECTOR_STRONG

I'm trying to build the ZFS kernel modules for 3.14.2-1 and it's not happening. It seems 3.14.2-1 was built with gcc 4.9 which is in testing. fstack-protector-strong was added in gcc 4.9. I can't update the ZFS packages in AUR until either 3.14.2 is built with gcc 4.8, or gcc 4.9 is released to stable.

configure:12121: checking whether modules can be built
configure:12144: cp conftest.c build && make modules -C /usr/lib/modules/3.14.2-1-ARCH/build EXTRA_CFLAGS=-Werror-implicit-function-declaration   M=/build/spl-git/src/spl/build 
Makefile:615: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
gcc: error: unrecognized command line option '-fstack-protector-strong'
make[1]: *** [/build/spl-git/src/spl/build/conftest.o] Error 1
make: *** [_module_/build/spl-git/src/spl/build] Error 2
configure:12147: $? = 2
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define SPL_META_NAME "spl"
| #define SPL_META_VERSION "0.6.2"
| #define SPL_META_RELEASE "33_g89aa970"
| #define SPL_META_ALIAS "spl-0.6.2-33_g89aa970"
| #define PACKAGE "spl"
| #define VERSION "0.6.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define DEBUG_LOG 1
| #define DEBUG_KMEM 1
| 
| 
| int
| main (void)
| {
| 
|   ;
|   return 0;
| }
| 
configure:12162: result: no
configure:12165: error: *** Unable to build an empty module.

Anyone have any ideas how to fix this? I can build the packages in testing, but not in stable.

Last edited by demizer (2014-05-01 13:29:17)

Offline

#2 2014-05-01 12:47:45

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,863
Website

Re: [SOLVED] 3.14.2-1 and CONFIG_CC_STACKPROTECTOR_STRONG

You have already covered the main solutions. Wait for the updated tool chain to move into [core] or use [testing]. If you opt for the former, consider downgrading your kernel in the meantime.

EDIT: this is relevant: https://mailman.archlinux.org/pipermail … 36065.html

Last edited by WorMzy (2014-05-01 12:48:45)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2014-05-01 13:28:58

demizer
Member
From: Gilroy, CA
Registered: 2010-03-03
Posts: 116
Website

Re: [SOLVED] 3.14.2-1 and CONFIG_CC_STACKPROTECTOR_STRONG

Welp, looks like we'll have to wait. Thanks!

Offline

#4 2014-05-01 19:09:57

baronmog
Member
Registered: 2013-11-01
Posts: 60

Re: [SOLVED] 3.14.2-1 and CONFIG_CC_STACKPROTECTOR_STRONG

Not real thrilled with this state of affairs. I use the broadcom-wl dkms package for wireless and am fortunate that I'm at a location today where I can plug in an Ethernet cable, as the toolchain is now broken. Somebody didn't think things through.

Offline

#5 2014-05-01 19:39:44

herb
Member
Registered: 2013-07-15
Posts: 3

Re: [SOLVED] 3.14.2-1 and CONFIG_CC_STACKPROTECTOR_STRONG

Same problem with rtl8723be-wifi driver. Glad to have wired lan at this moment.

Offline

#6 2014-05-01 20:31:45

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,863
Website

Re: [SOLVED] 3.14.2-1 and CONFIG_CC_STACKPROTECTOR_STRONG


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2014-05-02 15:14:30

herb
Member
Registered: 2013-07-15
Posts: 3

Re: [SOLVED] 3.14.2-1 and CONFIG_CC_STACKPROTECTOR_STRONG

Great! gcc-4.9 is in core, wifi-driver compiled just fine, all back to life.

Offline

#8 2014-05-03 06:29:34

t3o
Member
Registered: 2014-05-03
Posts: 1

Re: [SOLVED] 3.14.2-1 and CONFIG_CC_STACKPROTECTOR_STRONG

baronmog wrote:

Not real thrilled with this state of affairs. I use the broadcom-wl dkms package for wireless and am fortunate that I'm at a location today where I can plug in an Ethernet cable, as the toolchain is now broken. Somebody didn't think things through.

I had the same problem. Even after updating the tool chain.

So I looked at the compilation errors and there was one regarding use of __DATE__ and __TIME__ (-Werror=date...) in line ~2043 in wl_linux.c coming from hybrid-v35_64-nodebug-pcoem-6_30_223_141.tar.gz.

I unpacked the file, changed line 2043 in wl_linux.c to not use __DATE__ and __TIME__. Repacked the tgz and updated the sha1sum in PKGBUILD. Et voila: it compiles and now I am online again.

t3o

(As I see there's now an updated aur package available on https://aur.archlinux.org/packages/broadcom-wl-dkms )

Last edited by t3o (2014-05-03 06:33:37)

Offline

Board footer

Powered by FluxBB