Unfortunately, I have not found a way to obtain the correct prefix for
ldscripts at the point in the gcc driver where the ldscripts path is
required, so it uses the compile-time specified prefix: the available specs
options only provide access to files associated with gcc, not ones
associated with binutils.

I could add an environment variable that would override the compiled in
path, but I'd rather not.  For now the only solution is not to move the
files after they're built.

If you file a bug report on this, I'll be reminded to keep thinking about
it.  It may be fixable in 4.6.x; I think they added some more script path
support to specs sometime around then.

Peter

On Mon, Jun 13, 2011 at 11:58 AM, Matthias Hartmann <
matthiashart...@versanet.de> wrote:

> Peter,
>
> I build this on Ubuntu 10.10, which went right on the first.
>
> But after moving the result to another location than it was installed to,
> the linker scripts are looked for at the old place.
>
> I build it with prefix /user/local/msp430 and all was fine.
> After this I moved /user/local/msp430 to /home/user/msp430 and nearly
> everything worked, but the linker scripts are looked for at the old
> location.
> What I am doing wrong?
> /home/user/msp430/bin/../libexec/gcc/msp430/4.5.2/collect2 -m msp430 -o
> LP_TEST.elf /home/user/msp430/bin/../lib/gcc/msp430/4.5.2/crt0ivtbl16.o
> -L/home/user/msp430/bin/../lib/gcc/msp430/4.5.2
> -L/home/user/msp430/bin/../lib/gcc
> -L/home/user/msp430/bin/../lib/gcc/msp430/4.5.2/../../../../msp430/lib
> main.o Soft_UART.o MMA7455.o SPI_lib.o -lgcc -lc -lgcc -lcrt0 -L
> **/usr/local/msp430**/msp430/lib/ldscripts/msp430g2231
> I added the ** for visability.
>
> I have the same problem with a mingw32 build I cross compiled on ubuntu. I
> hope, if above problem with the nativ ubuntu build is solved, I can solve
> the problem with the mingw32 build too.
>
> Thanks!
>
> Matthias
>
>
> Am 13.06.2011 01:59, schrieb Peter Bigot:
>
>> The first versioned release of uniarch mspgcc is now available at the
>> mspgcc
>>
>> project:
>>
>>
>>
>> http://sourceforge.net/projects/mspgcc/files/mspgcc/mspgcc-20110612.tar.bz2
>>
>> This package is the preferred format for most users: it consists of
>> patches
>> to be applied to upstream unmodified distributions of binutils, gcc, and
>> gdb, and references to the corresponding versions of msp430mcu and
>> msp430-libc.
>>
>> This is the 20110612 release of mspgcc.  The name "uniarch" will slowly be
>> deprecated; there is now only one supported mspgcc, and it is this one.
>>
>> Each component is independently versioned; the mspgcc release will
>> generally
>> be the same as the most recent release of any component package.  This
>> release comprises:
>>    msp430-binutils-2.21-20110612
>>    msp430-gcc-4.5.2-20110612
>>    msp430-gdb-7.2-20110103 (legacy, should still work)
>>    msp430mcu-20110613
>>    msp430-libc-20110612
>>
>> (Yes, msp430mcu is dated later; the first release had installation issues,
>> and since I'd already posted it the fixed version has to have a different
>> version number.)
>>
>> Downstream packagers, please get it and let me know if this release format
>> will cause problems for you.  The plan is to tune this packaging, clear up
>> any bugs revealed by more widespread testing, then release mspgcc based on
>> gcc 4.5.3 as a stable product.  Ideally, that will be the version that
>> will
>> be packaged for future releases of Ubuntu, Fedora, etc.
>>
>> Non-packagers: Although basic instructions are included, I am unable to
>> provide how-to support for building the toolchain.  If you know how to
>> build
>> and install your own version of gcc, you'll probably be fine.
>>
>> I believe we have packagers lined up for Debian and Red Hat/Fedora.  Other
>> distributions, including all flavors of Windows, still need somebody to
>> take
>> on the task.
>>
>> Questions and discussion can be on this list, but please report all
>> toolchain bugs on the mspgcc bug tracker at:
>>
>>   http://sourceforge.net/tracker/?group_id=42303&atid=432701
>>
>> Peter
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> EditLive Enterprise is the world's most technically advanced content
>> authoring tool. Experience the power of Track Changes, Inline Image
>> Editing and ensure content is compliant with Accessibility Checking.
>> http://p.sf.net/sfu/ephox-dev2dev
>>
>>
>> _______________________________________________
>> Mspgcc-users mailing list
>> Mspgcc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>>
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
>
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to