Cross Compile Ubuntu x86_64 to Raspberry Pi Code Seg Faults When Executed

Bug #1135120 reported by tomdean
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-4.6-armhf-cross (Ubuntu)
New
Undecided
Unassigned

Bug Description

GCC Bugzilla
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56473

I cross compiled a simple application, int main(){return 0;} on Ubuntu with
> arm-linux-gnueabihf-gcc-4.6 -g -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -marm hello.c -Wl,-t -o hello
When executed on a Raspberry Pi, it produced a segment fault.

If I compile on ubuntu and link on the Raspberry Pi, it works as expected.

 >lsb_release -rd
Description: Ubuntu 12.04.2 LTS
Release: 12.04
>apt-cache policy gcc-4.6-arm-linux-gnueabihf
gcc-4.6-arm-linux-gnueabihf:
  Installed: 4.6.3-1ubuntu5cross1.63
  Candidate: 4.6.3-1ubuntu5cross1.63
  Version table:
 *** 4.6.3-1ubuntu5cross1.63 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status

Tags: bot-comment
Revision history for this message
tomdean (tomdean) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1135120/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
tomdean (tomdean) wrote :

Added package

affects: ubuntu → gcc-4.6-armhf-cross (Ubuntu)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.