-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error : Rapberry Pi 3B+ : unrecognized command line option ‘-mgeneral-regs-only’ #2682
Comments
Are you using the newer compiler suggested in linked issue? |
Yes
…On Fri 14 Sep, 2018, 00:39 popcornmix, ***@***.***> wrote:
Are you using the newer compiler suggested in linked issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2682 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE6jA3LwpOdLXZhVfNiaEcpcF7O6yH5Rks5uaq16gaJpZM4WoB-L>
.
|
I think CROSS_COMPILE needs to point to a 64 bit cross compiler. See: https://www.raspberrypi.org/forums/viewtopic.php?t=158127 |
Actually CROSS_COMPILE is pointing to the 4.6.3 compiler version which was
pointed out in the original issue. i.e.
tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/
Is this a 32 bit cross compiler? As per the original issue, even using the
64 bit cross compiler available in the tools repo, the issue was still seen.
Thanks,
Kevin
…On Fri 14 Sep, 2018, 00:49 popcornmix, ***@***.***> wrote:
I think CROSS_COMPILE needs to point to a 64 bit cross compiler.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2682 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE6jA1hYBDqeyJudOX-lzoE-IrVmdfxsks5uaq_IgaJpZM4WoB-L>
.
|
No, you need a cross-compiler for 64-bit arm. e.g. |
Sure, will try that.
But is it OK to use the The GNU C compiler for arm64 architecture for
building raspbian? I was assuming the compilers in tools repo were
specifically for Raspberry Pi and the aarch64-linux-gnu won't have the Pi
specific changes?
…On Fri 14 Sep, 2018, 00:59 popcornmix, ***@***.***> wrote:
No, you need a cross-compiler for 64-bit arm. e.g.
CROSS_COMPILE=aarch64-linux-gnu
If you are running on Ubuntu,
sudo apt-get install gcc-aarch64-linux-gnu
will likely get it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2682 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE6jAyA2sU99ykEpVSiQLZ3duYGEtcsMks5uarIqgaJpZM4WoB-L>
.
|
The gcc we have in our repo is just for convenience. You can use any arm32 or arm64 cross compiler from wherever you want. |
Yup. Using Also read that arm64 doesn't have decompressing capacity; hence "make zImage" won't work. Had to do "make Image". |
Any solution? I am having the same issue. |
It might help if you explained what your specific problem is. You can see the current state here |
I was following the directions posted. But even trying the additional steps for buster 10, I still got the given error. The additional steps were supposed to avoid the error, per the documentation. Not sure if the documentation is wrong or maybe a missing step? or something has changed as buster 10 has matured? |
@Nodi-Rubrum Can you provide more details please? "having the same issue" is a bit vague, especially as the original problem was reported 2 years ago. Which OS are you running? On which platform? Which kernel are you trying to compile? Which steps / instructions have you followed? Which step gives you the error? Please copy'n'paste the error message if possible. |
Hi,
I quite don't the remember the steps which solved the issue but seems like
I was trying to compile the raspian linux with FPU enabled and got the
error. Probably using an arm compiler with FPU support might solve the
issue.
Thanks,
Kevin
…On Wed, 16 Sep, 2020, 12:30 Andrew Scheller, ***@***.***> wrote:
@Nodi-Rubrum <https://github.com/Nodi-Rubrum> Can you provide more
details please? "having the same issue" is a bit vague, especially as the
original problem was reported 2 years ago.
Which OS are you running? On which platform? Which kernel are you trying
to compile? Which steps / instructions have you followed? Which step gives
you the error? Please copy'n'paste the error message if possible.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#2682 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHKGA4QF4JYE6QBGUYCPGTSGBPCLANCNFSM4FVAD6FQ>
.
|
Hi,
I am trying to compile the latest rpi-4.14.y branch using defconfig file : arch/arm64/configs/bcmrpi3_defconfig.
The issue is same as #1974. Compilation is failing with the error in subject line.
Using the gcc compiler : tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/
The console output is as follows:
kevinjjames@iris ~/raspberrypi/raspian-linux $ make ARCH=arm64 CROSS_COMPILE=${CCPREFIX} bcmrpi3_defconfig
configuration written to .config
kevinjjames@iris ~/raspberrypi/raspian-linux $ make ARCH=arm64 CROSS_COMPILE=${CCPREFIX} -j4
arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
scripts/kconfig/conf --silentoldconfig Kconfig
arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
arm-linux-gnueabihf-gcc: error: unrecognized command line option '-mgeneral-regs-only'
scripts/Makefile.build:328: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:587: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:568: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Any pointers?
Thanks,
Kevin
The text was updated successfully, but these errors were encountered: