LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-07-2010, 05:01 PM   #1
LeoPorter
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
Crosstool from x86 linux to alpha linux lacks detailed debug information


I have a working build of crosstool - it was built for gcc 3.4.3 using glibc 2.3.5 going from 32-bit x86 linux to 64-bit alpha linux. As far as I can tell -- it compiles correctly (output of alpha emulation matches expected) but it has a major flaw. When I use the cross compiler and attempt to add detailed debug information, it compiles, but does not have the debug information.

For example, when I execute:
> /home/leporter/crosstool/gcc-3.4.3-glibc-2.3.5/alpha-unknown-linux-gnu/bin/alpha-unknown-linux-gnu-gcc-3.4.3 -g -o hello main.c
OR
> /home/leporter/crosstool/gcc-3.4.3-glibc-2.3.5/alpha-unknown-linux-gnu/bin/alpha-unknown-linux-gnu-gcc-3.4.3 -gstabs -o hello main.c

I get a working alpha binary for hello world. BUT - when I run objdump - this is what I get

> /home/leporter/crosstool/gcc-3.4.3-glibc-2.3.5/alpha-unknown-linux-gnu/bin/alpha-unknown-linux-gnu-objdump -g hello

hello: file format elf64-alpha

/home/leporter/crosstool/gcc-3.4.3-glibc-2.3.5/alpha-unknown-linux-gnu/bin/alpha-unknown-linux-gnu-objdump: hello: no recognized debugging information

Frustratingly - if I use my x86 gcc version 3.4.6 to do the compilation (same arguments, just using the x86 compiler, not the cross compiler) - it correctly embeds the debug information.

Has anyone else had problems with detailed debug information in crosstool? I'd greatly appreciate advice.

Leo
 
Old 04-08-2010, 11:50 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
This sounds like a problem difficult to diagnose. It may be easier to move to crosstool-NG, which is more up-to-date, and is still actively supported.
--- rod.
 
Old 04-09-2010, 10:27 AM   #3
LeoPorter
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by theNbomr View Post
This sounds like a problem difficult to diagnose. It may be easier to move to crosstool-NG, which is more up-to-date, and is still actively supported.
--- rod.
Hi Rod - thank you. I'll look into crosstool-NG. I had visions of diving into gcc myself and I'm not a big fan of that.

Thanks again,

Leo
 
  


Reply

Tags
debug


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
detailed information about mdadm output bertl1982 Linux - General 3 01-11-2010 05:00 AM
CentOS Detailed System Information kexpert Linux - Newbie 6 11-19-2009 12:03 AM
looking for x86 debug for dos, on linux DarkPlexus Linux - Newbie 2 12-30-2008 06:21 PM
Detailed information on PID and SID Curtor Linux - Newbie 6 12-11-2008 10:31 AM
Detailed information on Fedora services mrkawphy Linux - Newbie 1 08-22-2006 12:45 PM


All times are GMT -5. The time now is 08:08 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration