Bug 821 - cp: illegal operation
Summary: cp: illegal operation
Status: RESOLVED WONTFIX
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2009.11
Hardware: Macintosh Mac OS
: P5 normal
Target Milestone: 2010.02
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-21 23:13 UTC by Markus Schabel
Modified: 2010-02-21 18:53 UTC (History)
1 user (show)

See Also:
Host: MacBook Pro running Snow Leopard
Target: ARM SX-560
Build: buildroot


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Schabel 2009-12-21 23:13:10 UTC
When building the toolchain on my Mac, it always halts because of an illegal parameter for cp. the parameter "-d" is not supported on Mac OS X. The following patch should work on all systems:

--- Makefile    2008-02-25 09:15:31.000000000 +0100
+++ Makefile    2009-12-22 00:04:29.000000000 +0100
@@ -283,11 +257,11 @@
 $(BR2_DEPENDS_DIR): .config
 	rm -rf $@
 	mkdir -p $(@D)
+	cp -af $(CONFIG)/buildroot-config $@
-	cp -dpRf $(CONFIG)/buildroot-config $@
 
 dirs: $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
Comment 1 Peter Korsgaard 2010-01-28 22:59:15 UTC
Sorry, I think you'll run into a lot more problems than that to use BR on !Linux.
E.G.:

git grep 'cp -d'|wc -l
185

On top of that comes the build systems of the individual packages. I think you'll have a lot easier time dual booting / running Linux in a VM.

Comment 2 Thomas Petazzoni 2010-02-21 18:53:40 UTC
We do not support building on Mac OS X at the moment, unless someone with access to this system steps in to maintain such a port.