Bug 145783 - cross-avr-binutils: linker bug?
Summary: cross-avr-binutils: linker bug?
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Development (show other bugs)
Version: Beta 2
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Juergen Weigert
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-26 11:03 UTC by Stefan Dirsch
Modified: 2006-01-27 00:52 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Dirsch 2006-01-26 11:03:14 UTC
# cat > test.c << EOF
#include <stdio.h>

int main(void)
{
  printf("Hello world!\n");
  return(0);
}
EOF
# avr-gcc -Wall -O2 -o test.elf test.c
/opt/cross/lib/gcc/avr/4.1.0/../../../../avr/bin/ld: this linker was not configured to use sysroots

I'm sure this worked with binutils 2 weeks ago from STABLE. I'll check the version (rpm changelog).

Maybe "--with-build-sysroot=sysroot" is missing as configure option?
Comment 1 Stefan Dirsch 2006-01-26 15:13:59 UTC
Hmm ... downgrading to binutils 2.16.91.0.4 didn't help. :-(

I tried this one:

--> /work/SAVE/oldpackages/stable/binutils/binutils-20060112

Latest RPM entry:
-------------------------------------------------------------------
Tue Jan  3 10:04:06 CET 2006 - dmueller@suse.de

- Don't create empty rpath components when stripping 
Comment 2 Andreas Schwab 2006-01-26 15:57:08 UTC
--with-sysroot=/ is the problem.  I don't think cross-avr-gcc should use that, or rather should use a real sysroot, which needs to be mirrored by cross-avr-binutils then.
Comment 3 Stefan Dirsch 2006-01-26 17:02:29 UTC
Thanks. Disabling sysroot for gcc build fixes this problem. I'll submit an updated gcc package to STABLE once the mbuild is ready.
Comment 4 Michael Matz 2006-01-26 17:04:00 UTC
If the avr guys want to use a real sysroot I'll let them deal with that,
but switching off --with-sysroot=/ for cross-avr is fine too.  It's only
there for SSP support, and I think that's not very relevant for the AVR
platform.
Comment 5 Stefan Dirsch 2006-01-26 17:16:55 UTC
I agree. And now I understand why it still worked 2 weeks ago. Using the --with-sysroot option for the gcc build is a new feature since about 2 weeks.
Comment 6 Stefan Dirsch 2006-01-27 00:52:17 UTC
New gcc package submitted.