DO NOT REPLY [Bug 5170] New: Cross compilation does not work

samba-bugs at samba.org samba-bugs at samba.org
Tue Jan 1 13:29:52 GMT 2008


https://bugzilla.samba.org/show_bug.cgi?id=5170

           Summary: Cross compilation does not work
           Product: rsync
           Version: 3.0.0
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: r.schwebel at pengutronix.de
         QAContact: rsync-qa at samba.org


The makefiles try to build the "mkrounding" tool with the "host" compiler;
however, this file is being executed later in the build, so it has to be
compiled with the "build" compiler. Usually, autotoolized Makefiles solve this
by using CC_FOR_BUILD and the related CFLAGS_FOR_BUILD and LDFLAGS_FOR_BUILD.

Error message, taken during a build for ARM here:

----------8<----------8<----------
arm-v4t-linux-gnueabi-gcc -std=gnu99 -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt
-L/some/path/sysroot/arm-v4t-linux-gnueabi/lib
-L/some/path/sysroot/arm-v4t-linux-gnueabi/usr/lib -Wl,-rpath-link
-Wl,/some/path/sysroot/arm-v4t-linux-gnueabi/usr/lib -o mkrounding -I.
./mkrounding.c
./mkrounding >rounding.h
/bin/sh: ./mkrounding: cannot execute binary file
----------8<----------8<----------

Patch follows soon.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list