mainAutoconf - Support: sr #110846, cross-compilation is not entered...

 
 

sr #110846: cross-compilation is not entered when build_alias and host_alias are the same

Submitter:  None
Submitted:  Wed 01 Mar 2023 02:18:17 PM UTC
   
 
Priority:  * 5 - Unprioritized Severity:  3 - Normal
Status:  Duplicate Privacy:  Public
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Closed Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 08 Dec 2023 06:26:23 PM UTC, comment #2: 

Note that cross compilation mode can be forced on, today, with e.g.


./configure --host=aarch64-unknown-linux-gnu cross_compiling=yes


Zack Weinberg <zackw>
Group administrator
Fri 08 Dec 2023 02:28:18 AM UTC, comment #1: 

We regret the delay in responding to this bug report.

I believe this is the same as #110348.  The proposal there would make it so you could force a configure script into cross-compilation mode, even when the build and host triples are the same and the cross-compiled executables can run on the build system, by specifying --host and not --build.  Would that work for you?  (Please reply in #110348, I'm going to close this report.)

This will not happen for 2.72 but hopefully will for the release after that.

Zack Weinberg <zackw>
Group administrator
Wed 01 Mar 2023 02:18:17 PM UTC, original submission:  

This might be the desired use case, but when cross compiling with systems like buildroot one might have the same architecture on --build and --host.

Example: Compile on Apple silicon (aarch64-unknown-linux-gnu) for a Cortex A75 based system (aarch64-unknown-linux-gnu). Cross compiling isn't automatically detected.
And there seems to be no way to force it if we know that we are cross compiling.

See: http://autobuild.buildroot.net/results/6d4/6d4bc520c12313508d0fadee11d5b88c35a3cba9/build-end.log

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by zackw (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-12-08 zackw StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-04b1.
    Corresponding source code