* Kernel compilation for SH4 arch fails with poky 2.5.2
@ 2019-03-04 13:01 Raveendra.Reddy.P
2019-03-04 13:23 ` John Paul Adrian Glaubitz
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Raveendra.Reddy.P @ 2019-03-04 13:01 UTC (permalink / raw)
To: linux-sh
Team,
When we configure poky-2.5.2 with sh4 (SuperH) arch and Linux kernel 4.9.161, it fails with following error message.
From our observations, the below issue seems to be due to toolchain/gcc not the kernel.
#bitbake linux-yocto
CC drivers/mmc/core/sd.o
| {standard input}: Assembler messages:
| {standard input}: Error: unaligned opcodes detected in executable segment
| make[5]: *** [drivers/mmc/core/sd.o] Error 1
| make[4]: *** [drivers/mmc/core] Error 2
| make[3]: *** [drivers/mmc] Error 2
| make[2]: *** [drivers] Error 2
| make[2]: *** Waiting for unfinished jobs....
| make[1]: *** [sub-make] Error 2
| make: *** [__sub-make] Error 2
| ERROR: oe_runmake failed
Apart from configuring the sh4 machine and kernel version, we have not altered the default settings of poky. The machine config, kernel .config file and log files are attached. Could you please help us with the kernel compilation for sh4 architecture.
Note: This issue was not observed with GCC version 4.9.0. Poky 2.5 has GCC Version 7.3.0. Expectation is to compile kernel with GCC 7.3.
--Raveendra Reddy P
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Kernel compilation for SH4 arch fails with poky 2.5.2
2019-03-04 13:01 Kernel compilation for SH4 arch fails with poky 2.5.2 Raveendra.Reddy.P
@ 2019-03-04 13:23 ` John Paul Adrian Glaubitz
2019-03-05 14:06 ` Raveendra.Reddy.P
2019-03-06 18:03 ` John Paul Adrian Glaubitz
2 siblings, 0 replies; 4+ messages in thread
From: John Paul Adrian Glaubitz @ 2019-03-04 13:23 UTC (permalink / raw)
To: linux-sh
Hi Raveendra!
On 3/4/19 2:01 PM, Raveendra.Reddy.P@dell.com wrote:
> When we configure poky-2.5.2 with sh4 (SuperH) arch and Linux kernel 4.9.161, it fails with following error message.
> From our observations, the below issue seems to be due to toolchain/gcc not the kernel.
>
> #bitbake linux-yocto
>
> CC drivers/mmc/core/sd.o
> | {standard input}: Assembler messages:
> | {standard input}: Error: unaligned opcodes detected in executable segment
> | make[5]: *** [drivers/mmc/core/sd.o] Error 1
> | make[4]: *** [drivers/mmc/core] Error 2
> | make[3]: *** [drivers/mmc] Error 2
> | make[2]: *** [drivers] Error 2
> | make[2]: *** Waiting for unfinished jobs....
> | make[1]: *** [sub-make] Error 2
> | make: *** [__sub-make] Error 2
> | ERROR: oe_runmake failed
I haven't seen this particular error yet. We're building the sh4 kernel with gcc-8
for the SH7751LCR and SH7785LCR boards without any issues.
Full log available at:
> https://buildd.debian.org/status/fetch.php?pkg=linux&arch=sh4&ver=4.19.20-1&stamp\x1550088221&raw=0
> Apart from configuring the sh4 machine and kernel version, we have not altered the default settings of poky. The machine config, kernel .config file and log files are attached. Could you please help us with the kernel compilation for sh4 architecture.
I think you forgot to attach the configuration and log files? I'm not seeing them.
> Note: This issue was not observed with GCC version 4.9.0. Poky 2.5 has GCC Version 7.3.0. Expectation is to compile kernel with GCC 7.3.
If you give me the kernel configuration, I could try it with gcc-8 and report
back.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Kernel compilation for SH4 arch fails with poky 2.5.2
2019-03-04 13:01 Kernel compilation for SH4 arch fails with poky 2.5.2 Raveendra.Reddy.P
2019-03-04 13:23 ` John Paul Adrian Glaubitz
@ 2019-03-05 14:06 ` Raveendra.Reddy.P
2019-03-06 18:03 ` John Paul Adrian Glaubitz
2 siblings, 0 replies; 4+ messages in thread
From: Raveendra.Reddy.P @ 2019-03-05 14:06 UTC (permalink / raw)
To: linux-sh
SGkgQWRyaWFuLA0KDQo+SSBoYXZlbid0IHNlZW4gdGhpcyBwYXJ0aWN1bGFyIGVycm9y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XRpb24sIEkgY291bGQgdHJ5IGl0IHdpdGggZ2NjLTgg
YW5kIHJlcG9ydCBiYWNrLg0KV2UgYXJlIGFibGUgdG8gY29tcGlsZSBzdWNjZXNzZnVsbHkgYWZ0
ZXIgcmVtb3ZpbmcvZGlzYWJsaW5nICJDT05GSUdfREVCVUdfSU5GTyIgZnJvbSBvdXIgY29uZmln
IGZpbGUuIEdlbmVyYWxseSB0aGlzIGlzIHVzZWQgZm9yIEdEQiBkZWJ1Z2dpbmcgcHVycG9zZS4N
CkRvZXMgdGhpcyByZW1vdmFsIHdpbGwgY2F1c2UgYW55IHNpZGUtZWZmZWN0cy4gUGxlYXNlIHNo
YXJlIHlvdXIgdGhvdWdodHMuDQoNCj5BZHJpYW4NCg=
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Kernel compilation for SH4 arch fails with poky 2.5.2
2019-03-04 13:01 Kernel compilation for SH4 arch fails with poky 2.5.2 Raveendra.Reddy.P
2019-03-04 13:23 ` John Paul Adrian Glaubitz
2019-03-05 14:06 ` Raveendra.Reddy.P
@ 2019-03-06 18:03 ` John Paul Adrian Glaubitz
2 siblings, 0 replies; 4+ messages in thread
From: John Paul Adrian Glaubitz @ 2019-03-06 18:03 UTC (permalink / raw)
To: linux-sh
Hi Raveendra!
Apologies for my late reply, I have been traveling.
On 3/5/19 11:06 PM, Raveendra.Reddy.P@dell.com wrote:
>> If you give me the kernel configuration, I could try it with gcc-8 and report back.
> We are able to compile successfully after removing/disabling "CONFIG_DEBUG_INFO" from our config file. Generally this is used for GDB debugging purpose.
> Does this removal will cause any side-effects. Please share your thoughts.
Since GDB is currently not supporting the Linux/SH target (I do have
an out-of-tree patchset on my github [1]), I think you are not losing
if you disable CONFIG_DEBUG_INFO.
Adrian
> [1] https://github.com/glaubitz/binutils-gdb/tree/linux-sh
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-03-06 18:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-04 13:01 Kernel compilation for SH4 arch fails with poky 2.5.2 Raveendra.Reddy.P
2019-03-04 13:23 ` John Paul Adrian Glaubitz
2019-03-05 14:06 ` Raveendra.Reddy.P
2019-03-06 18:03 ` John Paul Adrian Glaubitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).