Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
1,294 Views

Build error while building Intel Aero Image

I am facing build error upon building Intel Aero image. Below is the procedure I followed.

repo init -u https://github.com/intel-aero/intel-aero-manifest.git -b master

repo sync

# Initialize build environment variables by running

export TEMPLATECONF=../meta-intel-aero/conf

source poky/oe-init-build-env

# Build intel-aero-image

bitbake intel-aero-image

Error thrown:

===========

/home/ubuntu/intel_aero/build/tmp/work-shared/qemux86-64/kernel-source/fs/aufs/i_op.c:1393:15: error: 'generic_readlink' undeclared here (not in a function)

| .readlink = generic_readlink,

| ^~~~~~~~~~~~~~~~

| /home/ubuntu/intel_aero/build/tmp/work-shared/qemux86-64/kernel-source/fs/aufs/i_op.c:1407:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]

| .rename = aufs_rename,

| ^~~~~~~~~~~

| /home/ubuntu/intel_aero/build/tmp/work-shared/qemux86-64/kernel-source/fs/aufs/i_op.c:1407:14: note: (near initialization for 'aufs_iop[1].rename')

| cc1: some warnings being treated as errors

Please guide me what I am missing here.

0 Kudos
5 Replies
Highlighted
Community Manager
38 Views

Hello AdityaVarma,

 

 

Thanks for reaching out!

 

 

I will try to build Aero's BSP as it is explained in its wiki ( https://github.com/intel-aero/meta-intel-aero/wiki/Quickstart-Guide) and let you know if I'm able to replicate the issue.

 

 

Meanwhile, please provide us your environmental details in order to see if you are using the appropriate settings.

 

 

I'll get back to you here whenever I have any updates.

 

Pedro M.
0 Kudos
Highlighted
Beginner
38 Views

Hi Pedro M,

I am trying build image for QEMU emulator(qemux86-64) on ubuntu 14.04 machine.

Thank you.

0 Kudos
Highlighted
Community Manager
38 Views

Hi AdityaVarma,

I just checked my build and I found out that it failed. I followed the same steps as you, nevertheless, I got a different error message:

ERROR: python3-setuptools-32.1.1-r0 do_packagedata_setscene: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:

 

File: 'exec_python_func() autogenerated', lineno: 2, function:

 

0001:

 

*** 0002:do_packagedata_setscene(d)

 

0003:

 

File: '/home/makers/Documents/Peter/intel_aero/poky/meta/classes/package.bbclass', lineno: 2168, function: do_packagedata_setscene

 

2164:do_packagedata[sstate-lockfile-shared] = "${PACKAGELOCK}"

 

2165:do_packagedata[stamp-extra-info] = "${MACHINE}"

 

2166:

 

2167:python do_packagedata_setscene () {

 

*** 2168: sstate_setscene(d)

 

2169:}

 

2170:addtask do_packagedata_setscene

 

2171:

 

2172:#

 

File: '/home/makers/Documents/Peter/intel_aero/poky/meta/classes/sstate.bbclass', lineno: 683, function: sstate_setscene

 

0679: break

 

0680:

 

0681:def sstate_setscene(d):

 

0682: shared_state = sstate_state_fromvars(d)

 

*** 0683: accelerate = sstate_installpkg(shared_state, d)

 

0684: if not accelerate:

 

0685: bb.fatal("No suitable staging package found")

 

0686:

 

0687:python sstate_task_prefunc () {

 

File: '/home/makers/Documents/Peter/intel_aero/poky/meta/classes/sstate.bbclass', lineno: 328, function: sstate_installpkg

 

0324: for f in (d.getVar('SSTATEPREINSTFUNCS') or '').split() + ['sstate_unpack_package']:

 

0325: # All hooks should run in the SSTATE_INSTDIR

 

0326: bb.build.exec_func(f, d, (sstateinst,))

 

0327:

 

*** 0328: return sstate_installpkgdir(ss, d)

 

0329:

 

0330:def sstate_installpkgdir(ss, d):

 

0331: import oe.path

 

0332: import subprocess

 

File: '/home/makers/Documents/Peter/intel_aero/poky/meta/classes/sstate.bbclass', lineno: 352, function: sstate_installpkgdir

 

0348: for state in ss['dirs']:

 

0349: if d.getVar('SSTATE_SKIP_CREATION') == '1':

 

0350: continue

 

0351: prepdir(state[1])

 

*** 0352: os.rename(sstateinst + state[0], state[1])

 

0353: sstate_install(ss, d)

 

0354:

 

0355: for plain in ss['plaindirs']:

 

0356: workdir = d.getVar('WORKDIR')

 

Exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/makers/Documents/Peter/intel_aero/poky/build/tmp/work/corei7-64-poky-linux/python3-setuptools/32.1.1-r0/sstate-install-packagedata/pkgdata' -> '/home/makers/Documents/Peter/intel_aero/poky/build/tmp/work/corei7-64-poky-linux/python3-setuptools/32.1.1-r0/pkgdata'

WARNING: Logfile for failed setscene task is /home/makers/Documents/Peter/intel_aero/poky/build/tmp/work/corei7-64-poky-linux/python3-setuptools/32.1.1-r0/temp/log.do_packagedata_setscene.1990

 

WARNING: Setscene task (/home/makers/Documents/Peter/intel_aero/poky/meta/recipes-devtools/python/python3-setuptools_32.1.1.bb:do_packagedata_setscene) failed with exit code '1' - real task will be run instead

 

NOTE: Executing RunQueue Tasks

 

ERROR: python3-setuptools-32.1.1-r0 do_packagedata: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:

 

File: 'exec_python_func() autogenerated', lineno: 2, function:

 

0001:

 

*** 0002:sstate_task_postfunc(d)

 

0003:

 

File: '/home/makers/Documents/Peter/intel_aero/poky/meta/classes/sstate.bbclass', lineno: 708, function: sstate_task_postfunc

 

0704:

 

0705: sstateinst = d.getVar("SSTATE_INSTDIR")

 

0706: d.setVar('SSTATE_FIXMEDIR', shared_state['fixmedir'])

 

0707:

 

*** 0708: sstate_installpkgdir(shared_state, d)

 

0709:

 

0710: bb.utils.remove(d.getVar("SSTATE_BUILDDIR"), recurse=True)

 

0711:}

 

0712:sstate_task_postfunc[dirs] = "${WORKDIR}"

 

File: '/home/makers/Documents/Peter/intel_aero/poky/meta/classes/sstate.bbclass', lineno: 352, function: sstate_installpkgdir

 

0348: for state in ss['dirs']:

 

0349: if d.getVar('SSTATE_SKIP_CREATION') == '1':

 

0350: continue

 

0351: prepdir(state[1])

 

*** 0352: os.rename(sstateinst + state[0], state[1])

 

0353: sstate_install(ss, d)

 

0354:

 

0355: for plain in ss['plaindirs']:

 

0356: workdir = d.getVar('WORKDIR')

 

Exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/makers/Documents/Peter/intel_aero/poky/build/tmp/work/corei7-64-poky-linux/python3-setuptools/32.1.1-r0/sstate-build-packagedata/pkgdata' -> '/home/makers/Documents/Peter/intel_aero/poky/build/tmp/work/corei7-64-poky-linux/python3-setuptools/32.1.1-r0/pkgdata'

ERROR: python3-setuptools-32.1.1-r0 do_packagedata: Function failed: sstate_task_postfunc

 

ERROR: Logfile of failure stored in: /home/makers/Documents/Peter/intel_aero/poky/build/tmp/work/corei7-64-poky-linux/python3-setuptools/32.1.1-r0/temp/log.do_packagedata.2003

 

ERROR: Task (/home/makers/Documents/Peter/intel_aero/poky/meta/recipes-devtools/python/python3-setuptools_32.1.1.bb:do_packagedata) failed with exit code '1'

 

NOTE: Tasks Summary: Attempted 5296 tasks of which 5291 didn't need to be rerun and 1 failed.

Summary: 1 task failed:

 

/home/makers/Documents/Peter/intel_aero/poky/meta/recipes-devtools/python/python3-setuptools_32.1.1.bb:do_packagedata

 

Summary: There were 3 ERROR messages shown, returning a non-zero exit code.

I will try to run some more tests in order to see what might be happening. I will update you here as soon as I have any useful updates.

Pedro M.

0 Kudos
Highlighted
Community Manager
38 Views

Hello AdityaVarma,

 

 

We have an update for your case.

 

 

We've been running some tests and with the latest BSP guide ( https://github.com/intel-aero/meta-intel-aero/wiki/Developing-on-Intel-Aero), we were able to successfully build Aero's image.

 

 

Please try this and let us know how it goes.

 

Pedro M.
0 Kudos
Highlighted
Community Manager
38 Views

Hello AdityaVarma,

 

 

Do you have any updates about this?

 

 

Pedro M.
0 Kudos