This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: target=mips-elf on solaris


>-----Original Message-----
>From: Jason Addison [mailto:jason_addison@hotmail.com]
>Sent: 18 January 2002 18:29

>Q1: What is considered the ``standard'' directory structure when installing

>my own (not for the system) compiler. When installing my own apps I 
>normally use /home/me/usr/local/. Should I use /home/me/usr/mips/ for
>my new cross compiler?

  Nope, I'd suggest you use your local prefix.  Gcc behaves slightly 
differently according to whether you're compiling a native compiler or a
crosscompiler; native compilers install themselves into $prefix, and 
crosscompilers install themselves into $prefix/$target.  So there's no need
to add the target name to the prefix yourself just to keep them separate,
you can have a whole set of compilers under the same prefix and every target
will install to its own subdir.

  The one restriction worth mentioning is that the cross compiler and the
cross binutils must *both* be configured and compiled using the same $prefix
as each other, so that the compiler knows where to find the tools like as
and ld when it needs them.

>Q2: I'm able to install the binutils, but when it comes time to instal gcc,

>after ``make all install'' I get:

>xgcc: installation problem, cannot exec `mips-tfile': No such file or 
>directory

  Did you use the flags '--with-gnu-as' and '--with-gnu-ld' in the configure
command before building gcc?  That's the general cause of this problem.

       DaveK
-- 
Burn your ID card!  http://www.optional-identity.org.uk/
Help support the campaign, copy this into your .sig!




**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]