bladox.com Forum Index bladox.com
Turbo SIM Toolkit Adapter Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

binutils install problem, current gcc and binutils too new?

 
Post new topic   Reply to topic    bladox.com Forum Index -> Development
View previous topic :: View next topic  
Author Message
progress
Guest





PostPosted: Thu Mar 30, 2006 8:08 pm    Post subject: binutils install problem, current gcc and binutils too new? Reply with quote

I seem to have a problem configuring/installing the binutils for Fedora Core 3.

I set the CC with the following command:
export "CC=/usr/bin/gcc"

And then in the binutils directory I try to run the following:
./configure --target=avr

I get the following results:
===
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... avr-unknown-none
checking build system type... i686-pc-linux-gnu
*** This configuration is not supported in the following subdirectories:
target-libiberty
(Any other directories should still work fine.)
/usr/local/bin/ld: unrecognized option '--as-needed'
/usr/local/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
*** The command '/usr/bin/gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
===

Would this not work because I have a newer version of GCC and binutils? my current versions are:
gcc-3.4.4-2.fc3
binutils-2.15.92.0.2-5.1

Is there a way for me to use my current gcc and to somehow "target" the avr platform?

Thanks.
Back to top
pz
Guest





PostPosted: Fri Mar 31, 2006 6:51 am    Post subject: Reply with quote

This is pretty strange and something must be wrong in fc3. We have fc2 on some boxes without any problem. IIRC we also played with fc4. What happens without setting CC?
"Our" binutils is very little modified official package without configure being touched at all.

As for your gcc/binutils versions this is ok, there shouldn't be any issue.
Back to top
progress
Guest





PostPosted: Fri Mar 31, 2006 6:48 pm    Post subject: Reply with quote

The same thing happens without the "CC" environment.:
===
(# ./configure --target=avr)
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... avr-unknown-none
checking build system type... i686-pc-linux-gnu
*** This configuration is not supported in the following subdirectories:
target-libiberty
(Any other directories should still work fine.)
/usr/local/bin/ld: unrecognized option '--as-needed'
/usr/local/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
===

It is a weird situation because I can compile via Tavrix with another computer, but I can't get the USB Thumbdrive to mount, so I can't transfer my sourcecode to the tavrix machine and return the resulting .trb files to my FC3 machine to upload via CEMU (which is currently missing from the Tavrix image.) :)

What is the "conftest.c" code?

thank you.
Back to top
pz
Guest





PostPosted: Mon Apr 03, 2006 7:00 am    Post subject: Reply with quote

"conftest.c" - it's part of autoconf, used to check environment, etc. to create Makefiles, config.h for a given box. Unrelated to our modification.
Whate happens without --targer=avr? I think it will be the same, something is wrong with your fedora installation. Is it complete?
Back to top
progress
Guest





PostPosted: Mon Apr 03, 2006 9:28 pm    Post subject: Reply with quote

Yes, it is basically the same:
====
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
/usr/local/bin/ld: unrecognized option '--as-needed'
/usr/local/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
====

I am fairly confident that I have everything that is needed for development, unless I need any of the legacy development stuff (ie compatibility libraries for RHL 6.2 and 7.3).
Back to top
progress
Guest





PostPosted: Tue Apr 04, 2006 5:50 pm    Post subject: Reply with quote

Never mind... the path had an incorrect version of "ld" that came before the appropriate one.

Thanks for you help!
Back to top
selmaguzel



Joined: 14 May 2008
Posts: 1

PostPosted: Wed May 14, 2008 1:53 pm    Post subject: /usr/local/bin/ld: unrecognized option '--hash-style=both' Reply with quote

Hi,
I am new member and I hope you'll help me!
When I wanted to install binutils-2.15,after running the command ./configure,I got the error below:
/usr/local/bin/ld: unrecognized option '--hash-style=both'

First,it was OK.But then,when I wanted to run ./configure for core-utils,I got error and I decided to do all processes again,and now I am contrite:(

How can I correct?
And my real purpose is installing glibc for cross-compiling gcc.

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    bladox.com Forum Index -> Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group