This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: systemtap test suite compilation failed: include/linux/sysfs.h:449:2: argument 2 of 'kernfs_find_and_get' differ in signedness


On 04/21/2014 06:20 PM, Victor Kamensky wrote:
> On 21 April 2014 13:15, William Cohen <wcohen@redhat.com> wrote:
>> On 04/19/2014 02:53 PM, Naresh Kamboju wrote:
>>> Hi,
>>>
>>> The systemtap test suite compilation failed with below error.
>>
>> Hi,
>>
>> On an ARM chromebook I have a linux kernel built from the mainline git repository (2.15.0-rc2) and the current version of systemtap checked out from the git repo. I am not seeing the error messages below.
> 
> William, Does your kernel config have CONFIG_CC_STACKPROTECTOR set?
> Also what is your compiler version?
> 
> On my arndale board everything works OK with
> CONFIG_CC_STACKPROTECTOR=y and Linaro OE
> based rootfs with gcc Linaro GCC 4.8-2014.02:
> 
> Here are my settings:
> 
> root@genericarmv7a:~# zcat /proc/config.gz | grep STACKPROTECTOR
> CONFIG_HAVE_CC_STACKPROTECTOR=y
> CONFIG_CC_STACKPROTECTOR=y
> # CONFIG_CC_STACKPROTECTOR_NONE is not set
> CONFIG_CC_STACKPROTECTOR_REGULAR=y
> # CONFIG_CC_STACKPROTECTOR_STRONG is not set
> 
> Host: Linux genericarmv7a 3.14.0 #2 SMP Mon Apr 21 14:51:04 PDT 2014
> armv7l GNU/Linux
> Snapshot: version 2.5/0.158, commit release-2.4-448-g80d1a1b3c06d + changes
> GCC: 4.8.3 [gcc Linaro GCC 4.8-2014.02) 4.8.3 20140203 (prerelease)]
> Distro: Linux
> SElinux: unknown
> 

Hi,

Here are my similar setting on Fedora 20 on 32-bit ARM:

[wcohen@chromebook-f19 ~]$ rpm -q gcc
gcc-4.8.2-7.fc20.armv7hl
[wcohen@chromebook-f19 ~]$ uname -a
Linux chromebook-f19 3.15.0-rc2 #24 SMP Mon Apr 21 14:19:42 EDT 2014 armv7l armv7l armv7l GNU/Linux
[wcohen@chromebook-f19 linux]$ grep STACKPROTECTOR .config
CONFIG_HAVE_CC_STACKPROTECTOR=y
# CONFIG_CC_STACKPROTECTOR is not set
CONFIG_CC_STACKPROTECTOR_NONE=y
# CONFIG_CC_STACKPROTECTOR_REGULAR is not set
# CONFIG_CC_STACKPROTECTOR_STRONG is not set

>> -Will
>>
>>>
>>> ARCH: arm
>>> ---------------
>>>
>>> kernel version: 3.14.0-linaro-arndale
>>> systemtap location: /usr/local/bin/stap
>>> systemtap version: version 2.5/0.158, commit
>>> release-2.4-489-ge5fb7aeea34b + changes
>>> gcc location: /usr/bin/gcc
>>> gcc version: gcc (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1
>>>
>>>
>>> **** failed systemtap kernel-devel smoke test:
>>>
>>> Makefile:622: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR:
>>> -fstack-protector not supported by compiler
> 
> Most likely it is exactly what module build make says
> above: either compiler too old or not configured correctly.
> Try to compile something with -fstack-protector and see
> whether compilation is fine.
> 
> Possible workarounds are either upgrade compiler or
> configure kernel without CONFIG_CC_STACKPROTECTOR_REGULAR, i.e
> CONFIG_CC_STACKPROTECTOR_NONE=y
> 
> Thanks,
> Victor
> 

It looks like my kernel has the CONFIG_CC_STACKPROTECTOR_NONE set.

-Will


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]