Qt Creator - Error 1 status when building
-
wrote on 22 Sept 2016, 09:56 last edited by
Dear fellow coders, I encounter an error when building and cross-compiling for my embedded Linux.:
tlv320aic31.o Error 1
Does this error means Qt is unable to find my object file for the build process?
-
Hi,
Can you show the compile log before you get that error ?
-
wrote on 23 Sept 2016, 02:18 last edited byThis post is deleted!
-
wrote on 23 Sept 2016, 03:15 last edited by embdev
@SGaist this is the compile output:
From what I see, there's some error in obtaining my object file. From Qt standpoint, do you think it's the missing object file that is required for this make process? As from my tlv320aic31 folder, the object file is missing and i'm still trying to resolve that portion, as it's pertaining to my embedded Linux target itself.
11:13:43: Running steps for project VDEC_test...
11:13:43: Configuration unchanged, skipping qmake step.
11:13:44: Starting: "/usr/bin/make"
/home/aa/Hi3536_SDK_V2.0.4.0/v1_QtEmbedded-4.8.6/bin/qmake -spec ../../v1_QtEmbedded-4.8.6/mkspecs/qws/linux-hisiv400-arm-g++ -o Makefile ../VDEC_test/VDEC_test.pro
arm-hisiv400-linux-gcc -c -pipe -O2 -Wall -W -I../../v1_QtEmbedded-4.8.6/mkspecs/qws/linux-hisiv400-arm-g++ -I../VDEC_test -I../../mpp_single/sample/common -I../../mpp_single/include -I../../mpp_single/extdrv/tlv320aic31 -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/usr/include -I../../mpp_single/include -I../../mpp_single/include -I../../mpp_single/include -I../../mpp_single/include -I../../mpp_single/include -I../../mpp_single/include -I. -I../VDEC_test -I. -o tlv320aic31.o ../../mpp_single/extdrv/tlv320aic31/tlv320aic31.ccc1: out of memory allocating 3355443200 bytes after a total of 339968 bytes
Makefile:544: recipe for target 'tlv320aic31.o' failed
make: *** [tlv320aic31.o] Error 1
11:13:44: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project VDEC_test (kit: HI3536 Qt4.8)
When executing step "Make"
11:13:44: Elapsed time: 00:00. -
@SGaist this is the compile output:
From what I see, there's some error in obtaining my object file. From Qt standpoint, do you think it's the missing object file that is required for this make process? As from my tlv320aic31 folder, the object file is missing and i'm still trying to resolve that portion, as it's pertaining to my embedded Linux target itself.
11:13:43: Running steps for project VDEC_test...
11:13:43: Configuration unchanged, skipping qmake step.
11:13:44: Starting: "/usr/bin/make"
/home/aa/Hi3536_SDK_V2.0.4.0/v1_QtEmbedded-4.8.6/bin/qmake -spec ../../v1_QtEmbedded-4.8.6/mkspecs/qws/linux-hisiv400-arm-g++ -o Makefile ../VDEC_test/VDEC_test.pro
arm-hisiv400-linux-gcc -c -pipe -O2 -Wall -W -I../../v1_QtEmbedded-4.8.6/mkspecs/qws/linux-hisiv400-arm-g++ -I../VDEC_test -I../../mpp_single/sample/common -I../../mpp_single/include -I../../mpp_single/extdrv/tlv320aic31 -I/opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/usr/include -I../../mpp_single/include -I../../mpp_single/include -I../../mpp_single/include -I../../mpp_single/include -I../../mpp_single/include -I../../mpp_single/include -I. -I../VDEC_test -I. -o tlv320aic31.o ../../mpp_single/extdrv/tlv320aic31/tlv320aic31.ccc1: out of memory allocating 3355443200 bytes after a total of 339968 bytes
Makefile:544: recipe for target 'tlv320aic31.o' failed
make: *** [tlv320aic31.o] Error 1
11:13:44: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project VDEC_test (kit: HI3536 Qt4.8)
When executing step "Make"
11:13:44: Elapsed time: 00:00.@embdev said in Qt Creator - Error 1 status when building:
cc1: out of memory allocating 3355443200 bytes after a total of 339968 bytes
The compiler fails to allocate more than 3GB of RAM:
cc1: out of memory allocating 3355443200 bytes after a total of 339968 bytes
This is strange. How much RAM does your PC have? Is there enough free RAM?
-
@embdev said in Qt Creator - Error 1 status when building:
cc1: out of memory allocating 3355443200 bytes after a total of 339968 bytes
The compiler fails to allocate more than 3GB of RAM:
cc1: out of memory allocating 3355443200 bytes after a total of 339968 bytes
This is strange. How much RAM does your PC have? Is there enough free RAM?
wrote on 23 Sept 2016, 06:35 last edited by embdev@jsulm i'm running Qt Creator 4.1.0 in Ubuntu via Virtualbox machine. I've allocated 7 GB worth of memory to 64-bit Ubuntu (Virtualbox) so should be sufficient. I've also tried allocating 10 GB memory but also same problem.
I did some quick research that it could be due to source code type need to be converted to standard non-Unicode encoding (Click here.) Do you think it could be the source of the problem? I'm still trying to make sense / figure out the source file type if it's possible to convert to another type.
-
@jsulm i'm running Qt Creator 4.1.0 in Ubuntu via Virtualbox machine. I've allocated 7 GB worth of memory to 64-bit Ubuntu (Virtualbox) so should be sufficient. I've also tried allocating 10 GB memory but also same problem.
I did some quick research that it could be due to source code type need to be converted to standard non-Unicode encoding (Click here.) Do you think it could be the source of the problem? I'm still trying to make sense / figure out the source file type if it's possible to convert to another type.
@embdev Could be a compiler bug.
1/8