Bug 13250 - parted-native fails to build
Summary: parted-native fails to build
Status: RESOLVED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: 2.6.3
Hardware: Other arm
: Undecided normal
Target Milestone: ---
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-03-29 15:31 UTC by Marc Ferland
Modified: 2019-03-29 17:25 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
temporary fix (814 bytes, patch)
2019-03-29 15:31 UTC, Marc Ferland
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Ferland 2019-03-29 15:31:52 UTC
Created attachment 4456 [details]
temporary fix

Got the following error when building parted-native:

ERROR: parted-native-3.2-r1 do_install: oe_runmake failed
ERROR: parted-native-3.2-r1 do_install: Function failed: do_install (log file is located at /home/vagrant/build/tmp/work/x86_64-linux/parted-native/3.2-r1/temp/log.do_install.24234)
ERROR: Logfile of failure stored in: /home/vagrant/build/tmp/work/x86_64-linux/parted-native/3.2-r1/temp/log.do_install.24234
Log data follows:
| DEBUG: Executing shell function do_install
| NOTE: make -j 4 DESTDIR=/home/vagrant/build/tmp/work/x86_64-linux/parted-native/3.2-r1/image install
| GNUmakefile:43: /maint.mk: No such file or directory
| make: *** No rule to make target '/maint.mk'.  Stop.
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install (log file is located at /home/vagrant/build/tmp/work/x86_64-linux/parted-native/3.2-r1/temp/log.do_install.24234)
ERROR: Task (virtual:native:/vagrant/yocto/poky/meta/recipes-extended/parted/parted_3.2.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 128 tasks of which 127 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  virtual:native:/vagrant/yocto/poky/meta/recipes-extended/parted/parted_3.2.bb:do_install
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

I temporarily fixed the build issue with the attached patch. It looks like the Makefile provided in the layer was generated by running the configure script in the source directory (and not in the build directory). The Makefile should probably be regenerated for version 3.2 (since it mentions 3.1)...

I tested my patch with parted and parted-native and both built fine.

Note: I'm using poky on the thud layer rev:faeb366bc3eb322f5f203cfe08dc4cf529a822e9
Comment 1 Ross Burton 2019-03-29 17:06:58 UTC
recipes-extended/parted/files/Makefile is only used in do_install_ptest and is copied into $D directly, so I doubt that's actually the fix and this probably actually breaks the test suite on target.

I suspect what happened is that you added a new patch and it forced a rebuild, which then worked.

If you can replicate this failure after removing this change please re-open, but your patch literally cannot solve a build-time issue.
Comment 2 Marc Ferland 2019-03-29 17:25:49 UTC
You're right. 

I did a:
bitbake -c cleansstate parted parted-native && bitbake parted parted-native

and it worked. My mistake!