Re: [yocto] error with SDK that supports Qt creator

"Crane" <[email protected]>
Newsgroups org.yoctoproject.lists.yocto
Message-ID <[email protected]>
Thanks Raj.

I am building meta-toolchain-qt5 and come across this error and couldn't find the solution.
Doing "-c cleanall" on the recipe qtxmlpatterns doesn't work for this error.
Any idea?

> 
> ERROR: qtxmlpatterns-native-5.15.13+git-r0 do_populate_sysroot: Error
> executing a python function in exec_func_python() autogenerated:
> The stack trace of python calls that resulted in this exception/failure
> was:
> File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
> 0001:
> *** 0002:uninative_changeinterp(d)
> 0003:
> File:
> '/home/crane/work/yocto/build/../sources/poky/meta/classes-global/uninative.bbclass',
> lineno: 179, function: uninative_changeinterp
> 0175:            if not elf.isDynamic():
> 0176:                continue
> 0177:
> 0178:            os.chmod(f, s[stat.ST_MODE] | stat.S_IWUSR)
> *** 0179:            subprocess.check_output(("patchelf-uninative",
> "--set-interpreter", d.getVar("UNINATIVE_LOADER"), f),
> stderr=subprocess.STDOUT)
> 0180:            os.chmod(f, s[stat.ST_MODE])
> 0181:}
> File: '/usr/lib/python3.10/subprocess.py', lineno: 421, function:
> check_output
> 0417:        else:
> 0418:            empty = b''
> 0419:        kwargs['input'] = empty
> 0420:
> *** 0421:    return run(*popenargs, stdout=PIPE, timeout=timeout,
> check=True,
> 0422:               **kwargs).stdout
> 0423:
> 0424:
> 0425:class CompletedProcess(object):
> File: '/usr/lib/python3.10/subprocess.py', lineno: 526, function: run
> 0522:            # We don't call process.wait() as .__exit__ does that for
> us.
> 0523:            raise
> 0524:        retcode = process.poll()
> 0525:        if check and retcode:
> *** 0526:            raise CalledProcessError(retcode, process.args,
> 0527:                                     output=stdout, stderr=stderr)
> 0528:    return CompletedProcess(process.args, retcode, stdout, stderr)
> 0529:
> 0530:
> Exception: subprocess.CalledProcessError: Command '('patchelf-uninative',
> '--set-interpreter',
> '/home/crane/work/yocto/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2',
> '/home/crane/work/yocto/build/tmp/work/x86_64-linux/qtxmlpatterns-native/5.15.13+git/sstate-build-populate_sysroot/recipe-sysroot-native/usr/bin/xmlpatternsvalidator')'
> returned non-zero exit status 1.
> Subprocess output:
> patchelf: section header table out of bounds
> ERROR: Logfile of failure stored in:
> /home/crane/work/yocto/build/tmp/work/x86_64-linux/qtxmlpatterns-native/5.15.13+git/temp/log.do_populate_sysroot.103564
> 
> ERROR: Task
> (virtual:native:/home/crane/work/yocto/build/../sources/meta-qt5/recipes-qt/qt5/qtxmlpatterns_git.bb:do_populate_sysroot)
> failed with exit code '1'
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.