siva93krishna
Posts: 5
Joined: Tue Jul 10, 2018 8:35 am

lib/raid6/neon4.c:118:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1078

Tue Jul 10, 2018 8:43 am

Hi ,
I am facing Below issue while trying to cross compile kernel for RPI3.

followed below link .

https://www.raspberrypi.org/documentati ... uilding.md

Log :
sivag@lp-sivag:~/rpi/linux$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/compile.h
CHK kernel/config_data.h
CC [M] lib/raid6/neon4.o
lib/raid6/neon4.c: In function ‘raid6_neon4_gen_syndrome_real’:
lib/raid6/neon4.c:118:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1078
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.launchpad.net/gcc-linaro> for instructions.
scripts/Makefile.build:328: recipe for target 'lib/raid6/neon4.o' failed
make[2]: *** [lib/raid6/neon4.o] Error 1
scripts/Makefile.build:587: recipe for target 'lib/raid6' failed
make[1]: *** [lib/raid6] Error 2
Makefile:1034: recipe for target 'lib' failed

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 21511
Joined: Sat Jul 30, 2011 7:41 pm

Re: lib/raid6/neon4.c:118:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1078

Tue Jul 10, 2018 9:33 am

What git branch are you on? Should be the 4.14.y one.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

siva93krishna
Posts: 5
Joined: Tue Jul 10, 2018 8:35 am

Re: lib/raid6/neon4.c:118:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1078

Tue Jul 10, 2018 9:44 am

i am in rpi-4.14.y

git branch result

* rpi-4.14.y

issue is with cross compiler.but i followed steps mentioned in below link

https://www.raspberrypi.org/documentati ... uilding.md

But i Enabled DEBUG_INFO

then i am facing that issue .

Please give me the inputs .

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 21511
Joined: Sat Jul 30, 2011 7:41 pm

Re: lib/raid6/neon4.c:118:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1078

Tue Jul 10, 2018 9:48 am

siva93krishna wrote:
Tue Jul 10, 2018 9:44 am
i am in rpi-4.14.y

git branch result

* rpi-4.14.y

issue is with cross compiler.but i followed steps mentioned in below link

https://www.raspberrypi.org/documentati ... uilding.md

But i Enabled DEBUG_INFO

then i am facing that issue .

Please give me the inputs .
So it compiles cleanly if DEBUG_INFO is not enabled?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

siva93krishna
Posts: 5
Joined: Tue Jul 10, 2018 8:35 am

Re: lib/raid6/neon4.c:118:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1078

Tue Jul 10, 2018 9:51 am

yes . no issues if i am disabling DEBUG_INFO

kernelhacking-> Compile the kernel with debug info

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 21511
Joined: Sat Jul 30, 2011 7:41 pm

Re: lib/raid6/neon4.c:118:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1078

Tue Jul 10, 2018 10:32 am

Do you use any other non-standard configs that might be affecting the build?

TBH, there not much we can do about this - its an internal compiler error, so would be dealt with by the GCC team, and they have probably already fixed it in more recent versions.

So you could try a different toolchain with a more recent compiler, I believe there are other third party ones out there. Or compile on the Pi itself which I think is a new compiler version, but that will be slower
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

siva93krishna
Posts: 5
Joined: Tue Jul 10, 2018 8:35 am

Re: lib/raid6/neon4.c:118:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1078

Tue Jul 10, 2018 10:37 am

jamesh wrote:
Tue Jul 10, 2018 10:32 am
Do you use any other non-standard configs that might be affecting the build?

TBH, there not much we can do about this - its an internal compiler error, so would be dealt with by the GCC team, and they have probably already fixed it in more recent versions.

So you could try a different toolchain with a more recent compiler, I believe there are other third party ones out there. Or compile on the Pi itself which I think is a new compiler version, but that will be slower



Hi Jamesh ,
Thanks for your reply.

can you please provide links for third party toolchain.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 21511
Joined: Sat Jul 30, 2011 7:41 pm

Re: lib/raid6/neon4.c:118:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1078

Tue Jul 10, 2018 11:06 am

No, but I expect Google will find something. Or you could probably build the toolchain yourself.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

ppryga
Posts: 2
Joined: Sun Jul 29, 2018 9:12 pm

Re: lib/raid6/neon4.c:118:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1078

Sun Jul 29, 2018 9:19 pm

Hi there,

I have had similar problem and fortunately found some solution. In the tools repository there is newer toolchain 4.9.3. Use that and kernel including debug symbols will build successfully. I haven't try to run it on a device yet, but gdb had loaded vmlinux and symbols are there.

Greetings,
Piotr

asavah
Posts: 347
Joined: Thu Aug 14, 2014 12:49 am

Re: lib/raid6/neon4.c:118:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1078

Mon Jul 30, 2018 11:26 pm

What's your gcc version/toolchain?

https://github.com/raspberrypi/tools/issues/52

On a side note: that ancient crap on the tools repo should be updated to match gcc/binutils version in raspbian.

Return to “Linux Kernel”