cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
468 Views
Registered: ‎08-31-2019

aarch64-xilinx-linux-g++: error: cec-ctl.cpp: No such file or directory

Hi fellow engineer,

Recently I make Ultra96 image with DPU module, both versions of Vivado and petalinux are 2018.2, Ulbutun is 16.04.3. In order to accelerate the speed, I downloaded sstate feeds and use the local sstate mirror, unable network sstate feeds and unable BB no network,. But I failed several times when executing petalinux-build command as following,

 

| Making all in cec-ctl

| make[3]: Entering directory '/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/build/utils/cec-ctl'

| ../../../v4l-utils-1.12.3/utils/cec-ctl/msg2ctl.pl 0 ../../../v4l-utils-1.12.3/include/linux/cec.h ../../../v4l-utils-1.12.3/include/linux/cec-funcs.h >cec-ctl-gen.h

| aarch64-xilinx-linux-g++  --sysroot=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../../../v4l-utils-1.12.3/utils/cec-ctl -I../..   -I../../../v4l-utils-1.12.3/lib/include -Wall -Wpointer-arith -D_GNU_SOURCE -I../../../v4l-utils-1.12.3/include   -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0=/usr/src/debug/v4l-utils/1.12.3-r0 -fdebug-prefix-map=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/recipe-sysroot=  -fvisibility-inlines-hidden -c -o cec-ctl.o cec-ctl.cpp

| aarch64-xilinx-linux-g++: error: cec-ctl.cpp: No such file or directory

| aarch64-xilinx-linux-g++: fatal error: no input files

| compilation terminated.

| make[3]: *** [Makefile:531: cec-ctl.o] Error 1

 

It seems no input files of cec-ctl.cpp for v4l-utils module, I have installed all dependent libs. I am puzzled very much and appreciate your instruction!

 

Thank you for your help!

 

0 Kudos
5 Replies
Highlighted
Voyager
Voyager
371 Views
Registered: ‎10-21-2015

Re: aarch64-xilinx-linux-g++: error: cec-ctl.cpp: No such file or directory

Hi

make[3]: Entering directory '/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/build/utils/cec-ctl'
../../../v4l-utils-1.12.3/utils/cec-ctl/msg2ctl.pl 0 ../../../v4l-utils-1.12.3/include/linux/cec.h ../../../v4l-utils-1.12.3/include/linux/cec-funcs.h >cec-ctl-gen.h
aarch64-xilinx-linux-g++  --sysroot=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../../../v4l-utils-1.12.3/utils/cec-ctl -I../..   -I../../../v4l-utils-1.12.3/lib/include -Wall -Wpointer-arith -D_GNU_SOURCE -I../../../v4l-utils-1.12.3/include   -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0=/usr/src/debug/v4l-utils/1.12.3-r0 -fdebug-prefix-map=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/recipe-sysroot=  -fvisibility-inlines-hidden -c -o cec-ctl.o cec-ctl.cpp

Makefile generated after configure task seems to be corrupted

../../../v4l-utils-1.12.3/utils/cec-ctl/ should prefix cec-ctl.cpp 

To fix it, try 'petalinux-build' again after  'petalinux-build -c v4l-utils -x cleansstate'

0 Kudos
Observer
Observer
351 Views
Registered: ‎08-31-2019

Re: aarch64-xilinx-linux-g++: error: cec-ctl.cpp: No such file or directory

thank u very much! But I follow your instruction, the problem is still there as following
| aarch64-xilinx-linux-g++ --sysroot=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../../../v4l-utils-1.12.3/utils/cec-ctl -I../.. -I../../../v4l-utils-1.12.3/lib/include -Wall -Wpointer-arith -D_GNU_SOURCE -I../../../v4l-utils-1.12.3/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0=/usr/src/debug/v4l-utils/1.12.3-r0 -fdebug-prefix-map=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/recipe-sysroot= -fvisibility-inlines-hidden -c -o cec-ctl.o cec-ctl.cpp
| aarch64-xilinx-linux-g++: error: cec-ctl.cpp: No such file or directory
| aarch64-xilinx-linux-g++: fatal error: no input files
| compilation terminated.
| make[3]: *** [Makefile:531: cec-ctl.o] Error 1
| make[3]: Leaving directory '/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/build/utils/cec-ctl'
| make[2]: *** [Makefile:468: all-recursive] Error 1
| make[2]: Leaving directory '/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/build/utils'
| ERROR: oe_runmake failed
| make[1]: *** [Makefile:574: all-recursive] Error 1
| make[1]: Leaving directory '/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/build'
| make: *** [Makefile:501: all] Error 2
| WARNING: /home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/temp/run.do_compile.107359:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/temp/log.do_compile.107359)
ERROR: Task (/home/john/petalinux/components/yocto/source/aarch64/layers/meta-openembedded/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.12.3.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3981 tasks of which 3974 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/john/petalinux/components/yocto/source/aarch64/layers/meta-openembedded/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.12.3.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
0 Kudos
Highlighted
Observer
Observer
312 Views
Registered: ‎08-31-2019

Re: aarch64-xilinx-linux-g++: error: cec-ctl.cpp: No such file or directory

I follow your suggestion and execute 'petalinux-build -c v4l-utils -x cleansstate', cec-ctl.cpp is generated and exists there, but it seems the compiler g++ tool can not find this cec-ctl.cpp, and failed as following
aarch64-xilinx-linux-g++ --sysroot=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../../../v4l-utils-1.12.3/utils/cec-ctl -I../.. -I../../../v4l-utils-1.12.3/lib/include -Wall -Wpointer-arith -D_GNU_SOURCE -I../../../v4l-utils-1.12.3/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0=/usr/src/debug/v4l-utils/1.12.3-r0 -fdebug-prefix-map=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/john/dpu_integration_lab/petalinux/build/tmp/work/aarch64-xilinx-linux/v4l-utils/1.12.3-r0/recipe-sysroot= -fvisibility-inlines-hidden -c -o cec-ctl.o cec-ctl.cpp
| aarch64-xilinx-linux-g++: error: cec-ctl.cpp: No such file or directory
| aarch64-xilinx-linux-g++: fatal error: no input files
| compilation terminated.
I am struggling to find why
0 Kudos
Highlighted
Voyager
Voyager
287 Views
Registered: ‎10-21-2015

Re: aarch64-xilinx-linux-g++: error: cec-ctl.cpp: No such file or directory

Hi

Your aarch64-xilinx-linux-g++ has wrong location for cec-ctl.cpp.

It should be like this 

aarch64-xilinx-linux-g++ ... -fvisibility-inlines-hidden -c -o cec-ctl.o ../../../v4l-utils-1.12.3/utils/cec-ctl/cec-ctl.cpp

I couldn't reproduce your problem; there is no problem to build v4l-utils in my case

 

0 Kudos
Highlighted
Observer
Observer
202 Views
Registered: ‎08-31-2019

Re: aarch64-xilinx-linux-g++: error: cec-ctl.cpp: No such file or directory

now the problem has been solved, first implement the command, petalinux-build -x distclean,then delete the directory of stamp,located in /build/tmp/stamps/aarch64-xilinx-linux,then copy the source files to the subdirectory of v4l-utils, then petalinux-build -c v4l-utils can succeed,I think it is a bug of local sstate database, thank you for your answer!

0 Kudos