[yocto] arm-angstrom-linux-gnueabi-gcc: fatal error: no input files

Fabien Lahoudere fabien.lahoudere at collabora.co.uk
Thu Mar 30 05:46:19 PDT 2017


Seems to be related to missing CFLAGS to compile.
IMO you should look at how other recipe build qt4 apps.

On Thu, 2017-03-30 at 14:38 +0200, Yuvarajesh Valleru wrote:
> Thanks, It worked. But experienced another error.
> 
> ERROR: helloworld-1.0-r0 do_compile: Function failed: do_compile (log 
> file is located at 
> /home/cc/src/oe-core/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/helloworld/1.0-
> r0/temp/log.do_compile.31394)
> ERROR: Logfile of failure stored in: 
> /home/cc/src/oe-core/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/helloworld/1.0-
> r0/temp/log.do_compile.31394
> Log data follows:
> > DEBUG: Executing shell function do_compile
> > 
> 
> /home/cc/src/oe-core/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/helloworld/1.0-
> r0/helloworld.cpp:1:23: 
> fatal error: QTextStream: No such file or directory
> > compilation terminated.
> > WARNING: exit code 1 from a shell command.
> > ERROR: Function failed: do_compile (log file is located at 
> 
> /home/cc/src/oe-core/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/helloworld/1.0-
> r0/temp/log.do_compile.31394)
> ERROR: Task 
> (/home/cc/src/oe-core/build/../layers/meta-laye/recipes-
> hi/helloworld/helloworld_1.0.bb:do_compile) 
> failed with exit code '1'
> NOTE: Tasks Summary: Attempted 591 tasks of which 590 didn't need to be 
> rerun and 1 failed.
> NOTE: Writing buildhistory
> 
> Summary: 1 task failed:
> /home/cc/src/oe-core/build/../layers/meta-layer/recipes-hi/helloworld/helloworld_1.0.bb:do_compile
> Summary: There was 1 WARNING message shown.
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
> 
> 
> Am 30.03.2017 um 12:54 schrieb Fabien Lahoudere:
> > Try
> > 
> > do_compile() {
> >            ${CC} ${S}/helloworld.cpp -o ${S}/helloworld
> > }
> > 
> > On Thu, 2017-03-30 at 12:43 +0200, Yuvarajesh Valleru wrote:
> > > Here is the tree for my recipe and also attached the error.
> > > 
> > > /home/cc/src/oe-core/build/../layers/meta-layer/recipes-hi/helloworld/
> > > ├── files
> > > │ ├── helloworld.cpp
> > > │ └── helloworld.pro
> > > └── helloworld_1.0.bb
> > > 
> > > 1 directory, 3 files
> > > 
> > > ERROR: helloworld-1.0-r0 do_compile: Function failed: do_compile (log
> > > file is located at
> > > /home/cc/src/oe-core/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-
> > > gnueabi/helloworld/1.0-
> > > r0/temp/log.do_compile.23742)
> > > 
> > > ERROR: Logfile of failure stored in: /home/cc/src/oe-core/build/tmp-glibc/work/armv7at2hf-
> > > neon-
> > > angstrom-linux-gnueabi/helloworld/1.0-r0/temp/log.do_compile.23742
> > > Log data follows:
> > > > DEBUG: Executing shell function do_compile
> > > > arm-angstrom-linux-gnueabi-gcc: error: helloworld.cpp: No such file or directory
> > > > arm-angstrom-linux-gnueabi-gcc: fatal error: no input files
> > > > compilation terminated.
> > > > WARNING: exit code 1 from a shell command.
> > > > ERROR: Function failed: do_compile (log file is located at /home/cc/src/oe-core/build/tmp-
> > > > glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/helloworld/1.0-
> > > > r0/temp/log.do_compile.23742)
> > > 
> > > ERROR: Task (/home/cc/src/oe-core/build/../layers/meta-layer/recipes-
> > > hi/helloworld/helloworld_1.0.bb:do_compile) failed with exit code '1'
> > > NOTE: Tasks Summary: Attempted 591 tasks of which 584 didn't need to be rerun and 1 failed.
> > > NOTE: Writing buildhistory
> > > 
> > > Summary: 1 task failed:
> > >     /home/cc/src/oe-core/build/../layers/meta-layer/recipes-
> > > hi/helloworld/helloworld_1.0.bb:do_compile
> > > Summary: There was 1 WARNING message shown.
> > > Summary: There was 1 ERROR message shown, returning a non-zero exit code.
> > > 
> > > 
> > > 
> 
> 



More information about the yocto mailing list