Skip to contentSkip to conversation

New: cp: illegal operation

Buildroot bugzilla at busybox.net 3 participants 6 messages Dec 21, 2009 – Feb 21, 2010 Kbuild

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=821

Host: MacBook Pro running Snow Leopard
Target: ARM SX-560
Build: buildroot
Summary: cp: illegal operation
Product: buildroot
Version: 2009.11
Platform: Macintosh
OS/Version: Mac OS
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: markus.schabel at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.5

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 2009-12-22 00:04:29.000000000 +0100 renamed from Makefile 2008-02-25 09:15:31.000000000 +0100 +1 -2
@@ -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) \
 
 
-- 

Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

#1 lore raw

Hello Marcus--

It is good to know that you were able to get some aspects of buildroot up and running on Mac OS X. How do you deal with build dependencies? I have been attempting to run buildroot on 10.5 Leopard using the Fink binutils, but I found that I would still have to build fakeroot (and a few other associated utilities and libraries) from scratch.

Is fakeroot included with Mac OS X 10.6? When building, do you still receive errors when stripping executables? When I last tried to run buildroot on OS X, some header files particular to Linux-based systems could not be found.
Nicholas

Quoted 37 lines · bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=821

Host: MacBook Pro running Snow Leopard
Target: ARM SX-560
Build: buildroot
Summary: cp: illegal operation
Product: buildroot
Version: 2009.11
Platform: Macintosh
OS/Version: Mac OS
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: markus.schabel at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.5

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 2009-12-22 00:04:29.000000000 +0100 renamed from Makefile 2008-02-25 09:15:31.000000000 +0100 +1 -1
@@ -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) \
 
 
 
#2 lore raw
In reply to bugzilla at busybox.net
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"bugzilla" == bugzilla <[email protected]> writes:

Hi,

bugzilla> When building the toolchain on my Mac, it always halts bugzilla> because of an illegal parameter for cp. the parameter "-d" is bugzilla> not supported on Mac OS X. The following patch should work on bugzilla> all systems:

bugzilla> --- Makefile 2008-02-25 09:15:31.000000000 +0100
bugzilla> +++ Makefile 2009-12-22 00:04:29.000000000 +0100
bugzilla> @@ -283,11 +257,11 @@
bugzilla> $(BR2_DEPENDS_DIR): .config

 bugzilla>         rm -rf $@
 bugzilla>         mkdir -p $(@D)
 bugzilla> +       cp -af $(CONFIG)/buildroot-config $@
 bugzilla> -       cp -dpRf $(CONFIG)/buildroot-config $@

That's not the only place cp -d is used:

git grep -l 'cp -d'
Makefile
docs/buildroot.html
package/argus/argus.mk
package/berkeleydb/berkeleydb.mk
package/bsdiff/bsdiff.mk
package/directfb-examples/directfb-examples.mk
package/dmalloc/dmalloc.mk
package/dummy/dummy.mk
package/fuse/libfuse.mk
package/gettext/gettext.mk
package/gmp/gmp.mk
package/imagemagick/imagemagick.mk
package/input-tools/input-tools.mk
package/java/concierge/concierge.mk
package/jpeg/jpeg.mk
package/l2tp/l2tp.mk
package/libaio/libaio.mk
package/libcgi/libcgi.mk
package/libcgicc/libcgicc.mk
package/libdrm/libdrm.mk
package/libeXosip2/libeXosip2.mk
package/libfloat/libfloat.mk
package/libgcrypt/libgcrypt.mk

With the above fixed, can you really build on macosx?

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

[Buildroot] [Bug 821] cp: illegal operation

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=821

--- Comment #1 from Peter Korsgaard <[email protected]> 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.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 821] cp: illegal operation

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=821

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |2010.02

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 821] cp: illegal operation

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=821

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
    Remaining Hours|0.5                         |0.0
         Resolution|                            |WONTFIX

--- Comment #2 from Thomas Petazzoni <[email protected]> 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.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.