add ability to build cross compiler

Bug #863101 reported by Marcin Juszkiewicz
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-snapshot (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Rather no one will build gcc-snapshot as cross compiler but I got this functionality done during work on gcc-linaro packages (native + cross).

My patches were made with 20110813 version so current version needs work - gcc-multiarch.diff got rewritten since then so my changes would need to be adapted first.

I will apply all patches which alter packaging to make it work.

Tags: patch cross
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :
tags: added: cross patch
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

This patch is hardcoding /usr/TRIPLET/include for cross builds. Normally it is PF/TRIPLET/include but gcc-snapshot has PF != /usr so it does not work.

I think that this can be changed to:

ifeq (gcc-snapshot)
  debian_patches += cross-include-trunk.diff
else
  debian_patches += cross-include.diff
endif

way where attached patch would be used to create cross-include-trunk.diff

cause I would prefer to not hardcode it for all cases. Opinion?

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

This is patch against debian/patches/gcc-multiarch.diff from gcc-snapshot 20110813 - I hacked that patch to make gcc-linaro-armel-cross use /usr/TRIPLET/lib for target libraries.

20110914 has this patch totally rewritten and I did not looked yet how to get it working.

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "handle gcc-snapshot-TRIPLET package" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

GCC trunk moved unwind files from src/gcc to src/libgcc - cross-fixes-trunk.diff is a copy of cross-fixes.diff with those changes done

cross-include-trunk.diff hardcodes /usr/TRIPLET/include instead of (prefix)/TRIPLET/include

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :
Marcin Juszkiewicz (hrw)
Changed in gcc-snapshot (Ubuntu):
status: New → In Progress
importance: Undecided → Low
Revision history for this message
Matthias Klose (doko) wrote :

these patches should be applied now

Changed in gcc-snapshot (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.