Now, I use the SDK2.0 to compile my program which had float variable, but gcc display:
MPFR: Can't allocate memory (size=4294967288)
hello.c: In function 'main':
hello.c:5:5: internal compiler error: Aborted
float a=1.0;
The program:
#include <stdio.h>
int main()
{
float a=1.0;
a += 2;
printf("a:%f \n",a);
return 0;
}
compile the program with the flowing command:
arm-fsl-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a7 --sysroot=/opt/fsl-qoriq/2.0/sysroots/cortexa7hf-vfp-neon-fsl-linux-gnueabi hello.c -o hello
MPFR: Can't allocate memory (size=4294967288)
hello.c: In function 'main':
hello.c:5:5: internal compiler error: Aborted
float a=1.0;
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
It seems that gcc MPFR's bug, then I how to fix it?
There are no problems if this toolchain is used for float operations.
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I have found this issue.Have you solved the issue?
It looks like that toolchain on your Linux host PC is not correctly installed.
Use the following command sequence for toolchain installing and GCC using.
We use ls012atwr as example.
from the following folder:
/QorIQ-SDK-V2.0-20160527-yocto/build_ls1021atwr/tmp/deploy/sdk$
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
hello,
my sh is: fsl-qoriq-glibc-i686-cortexa7hf-vfp-neon-toolchain-2.0.sh (32bit ubuntu)
I exec the up commands,but it still fail.
What error messages do you see?
Perhaps there is a problem for permission for toolshain installing.
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Pavel,I have this issue,too.
I compile simple code with arm-fsl-linux-gnueabi-gcc ,it works.
But I compile libmodbus and iproute2 with arm-fsl-linux-gnueabi-gcc,It will print MPFR: Can't allocate memory (size=4294967288).
Is something wrong here?
hello,
My pc is Virtualbox ubuntu14.
Those error messages:
arm-fsl-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a7 --sysroot=/opt/fsl-qoriq/2.0/sysroots/cortexa7hf-vfp-neon-fsl-linux-gnueabi hello.c -o hello
MPFR: Can't allocate memory (size=4294967288)
hello.c: In function 'main':
hello.c:5:5: internal compiler error: Aborted
float a=1.0;
^
hello,
Those error messages:
arm-fsl-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a7 --sysroot=/opt/fsl-qoriq/2.0/sysroots/cortexa7hf-vfp-neon-fsl-linux-gnueabi hello.c -o hello
MPFR: Can't allocate memory (size=4294967288)
hello.c: In function 'main':
hello.c:5:5: internal compiler error: Aborted
float a=1.0;
^
Have you solved the issue?