Segmentation fault building linux-linaro-lsk for Panda

Bug #1239622 reported by Mark Brown
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GCC
Confirmed
Undecided
Christophe Lyon
Linaro Toolchain Binaries
Confirmed
Undecided
Unassigned

Bug Description

Attempting to build linux-linaro-lsk for Panda segfaults:

$ make C=1 -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage dtbs
  CHK include/generated/uapi/linux/version.h
  CC scripts/mod/devicetable-offsets.s
  CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL scripts/checksyscalls.sh
  GEN scripts/mod/devicetable-offsets.h
  HOSTCC scripts/mod/file2alias.o
  HOSTLD scripts/mod/modpost
  CHK include/generated/compile.h
  CHECK kernel/smp.c
  CC kernel/smp.o
Segmentation fault
make[1]: *** [kernel/smp.o] Error 139

With:

  git://git.linaro.org/kernel/linux-linaro-stable.git fa4b900fcaa6092a43fd60fe7dd72f8df654bcde

I'll upload the .config once I've logged the bug; need to check how to generate the preprocessed source for you.

Revision history for this message
Mark Brown (broonie) wrote :

This affects vesion 13.09, had expected to get the opportunity to flag that during reporting.

Revision history for this message
Mark Brown (broonie) wrote :
Revision history for this message
Mark Brown (broonie) wrote :

Reverting commit 5ecaba3d9f4ab514fe8d383534e24b306f116896 in the above tree avoids triggering the issue.

Revision history for this message
Matthew Gretton-Dann (matthew-gretton-dann) wrote :

Can you please attach preprocessed source with the command line to reproduce the failure. For the compile that fails repeat it with '-save-temps' added to the GCC command line. This will cause the compiler to output a *.i file - this is what should be attached.

Revision history for this message
Mark Brown (broonie) wrote :

Like I said I'm looking at that (but prioritising trying to work around the bug).

Revision history for this message
Mark Brown (broonie) wrote :
Revision history for this message
Mark Brown (broonie) wrote :

Replacing all uses of __smp_call_func_t with void * seems to resolve the issue for me.

Changed in gcc-linaro:
assignee: nobody → Christophe Lyon (christophe-lyon)
Revision history for this message
Christophe Lyon (christophe-lyon) wrote :

Can you also provide the command line you used?

Revision history for this message
Mark Brown (broonie) wrote :

The command from the original report:

make C=1 -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage dtbs

gives:

  arm-linux-gnueabihf-gcc -Wp,-MD,kernel/.smp.o.d -nostdinc -isystem /home/broonie/compilers/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/include -I/home/broonie/git/linux/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/home/broonie/git/linux/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/home/broonie/git/linux/include/uapi -Iinclude/generated/uapi -include /home/broonie/git/linux/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -fno-dwarf2-cfi-asm -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -mthumb -Wa,-mimplicit-it=always -Wa,-mno-warn-deprecated -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=1024 -Wno-unused-but-set-variable -g -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(smp)" -D"KBUILD_MODNAME=KBUILD_STR(smp)" -c -o kernel/.tmp_smp.o kernel/smp.c

Viktor (vchong)
Changed in gcc-linaro:
status: New → Confirmed
Changed in linaro-toolchain-binaries:
status: New → Confirmed
Revision history for this message
Christophe Lyon (christophe-lyon) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.