[Buildroot] AVR32 misery
Bernhard Fischer
rep.dot.nop at gmail.com
Fri Sep 28 16:24:34 UTC 2007
On Fri, Sep 28, 2007 at 08:42:07AM +0200, Ulf Samuelsson wrote:
>fre 2007-09-28 klockan 07:20 +0200 skrev Hans-Christian Egtvedt:
>> On Fri, 2007-09-28 at 02:08 +0200, Ulf Samuelsson wrote:
>> > I think I have found one problem
>> > "toolchain_build_avr32/gcc-4.1.2-initial/gcc/as" is a script file
>> > which should call the assembler.
>> >
>> > It contains
>> >
>> > #!/bin/sh
>> > exec "$@"
>> >
>> > and should contain:
>> > #!/bin/sh
>> > exec <buildroot>/build_avr32/staging_dir/bin/avr32-linux-uclibc-ld "$@"
>>
>> This should really not mather, because the PATH variable should be set
>> before starting to compile the cross-compiler.
>>
>> Perhaps this is as easy as a missing TARGET_CONFIGURE_OPTS?
>>
>
>I have added ORIGINAL_*_FOR_TARGET /DEFAULT_*/*_FOR_TARGET to
>HOST_CONFIGURE_OPTS
>(it fails during gcc-4.1.2-final)
>And now use HOST_CONFIGURE_OPTS for configure and make.
Passing CONFIGURE_OPTS to make after an autoconf'igured package was
configured is not needed.
>
>As a result, it seems that ld/nm/objcopy now has the right path,
>but the assembler doesn't.
>
> echo '#!$(SHELL)' > as; \
> echo 'exec $(ORIGINAL_AS_FOR_TARGET) "$$@"' >> as ; \
>
>results in as containing
>+++++++++++++++
>#!/bin/bash
>exec "$@"
>---------------
>
>I suspect, I have to configure with "-with-gnu-as" or with
>"-with-as=$(STAGING_DIR)/../*-as"as well,
>(It is already configured with "-with-gnu-ld")
>and the machine is working overtime, testing that at the moment.
We don't need to pass --with-gnu-ld nor --with-gnu-as. If sombody finds
a different assembler or linker, then this is a consequence of something
going wrong previously. The target is linux and not irix or something
like that.
More information about the buildroot
mailing list