* [U-Boot] Building Uboot for Nios2 - linker not found on Linux environment
@ 2015-08-15 2:45 Dave Williams
2015-08-18 0:19 ` Thomas Chou
2015-08-19 16:56 ` Dave Williams
0 siblings, 2 replies; 3+ messages in thread
From: Dave Williams @ 2015-08-15 2:45 UTC (permalink / raw)
To: u-boot
I am trying to build Uboot for Nios2.
I do the following on Linux bash.
> git clone git://git.denx.de/u-boot-nios.git
> cd u-boot-nios/
> make menuconfig
These proceeding steps complete with no visible errors or warnings.
> make all
This step fails with the following error
LD arch/nios2/cpu/built-in.o
/bin/sh: nios2-elf-ld.bfd: command not found
scripts/Makefile.build:354: recipe for target 'arch/nios2/cpu/built-in.o'
failed
make[1]: *** [arch/nios2/cpu/built-in.o] Error 127
Makefile:1037: recipe for target 'arch/nios2/cpu' failed
make: *** [arch/nios2/cpu] Error 2
I tested to confirm that both 'nios2-elf-gcc' and 'nios2-elf-ld' are in the
path and are executable.
It appears the compile completed but the nios2 linker is not found. The
Nios2 binaries - nios2-elf-gcc and nios2-elf-ld are in same path location.
I have been running Nios2 successfully on Linux.
Anyone else seen this error or found a workaround?
Dave
USA
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Building Uboot for Nios2 - linker not found on Linux environment
2015-08-15 2:45 [U-Boot] Building Uboot for Nios2 - linker not found on Linux environment Dave Williams
@ 2015-08-18 0:19 ` Thomas Chou
2015-08-19 16:56 ` Dave Williams
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Chou @ 2015-08-18 0:19 UTC (permalink / raw)
To: u-boot
Hi Dave,
On 08/15/2015 10:45 AM, Dave Williams wrote:
> I am trying to build Uboot for Nios2.
>
> I do the following on Linux bash.
>
>> git clone git://git.denx.de/u-boot-nios.git
>> cd u-boot-nios/
>> make menuconfig
Sorry that the u-boot-nios.git is used for upstreaming to u-boot.git
only, and is not always up-to-date.
Please use u-boot.git instead.
BTW. which version of nios2-elf-gcc did you use? I've tested with v3.4.6
and v4.9.1.
Cheers,
Thomas Chou
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Building Uboot for Nios2 - linker not found on Linux environment
2015-08-15 2:45 [U-Boot] Building Uboot for Nios2 - linker not found on Linux environment Dave Williams
2015-08-18 0:19 ` Thomas Chou
@ 2015-08-19 16:56 ` Dave Williams
1 sibling, 0 replies; 3+ messages in thread
From: Dave Williams @ 2015-08-19 16:56 UTC (permalink / raw)
To: u-boot
To solve the problem of not finding the linker - I had to set the
CROSS_COMPILE
environment variable using these bash commands.
> CROSS_COMPILE=nios2-elf-
> export CROSS_COMPILE
Running make - the build completed with no errors.
THIS WAS fully documented in the README file starting at line 4929.
So I fully deserve a "RTFM idiot" comment and Kudos to the writer(s) of the
Uboot README file.
Dave
On Fri, Aug 14, 2015 at 8:45 PM, Dave Williams <
dave.williams.lists@gmail.com> wrote:
> I am trying to build Uboot for Nios2.
>
> I do the following on Linux bash.
>
> > git clone git://git.denx.de/u-boot-nios.git
> > cd u-boot-nios/
> > make menuconfig
>
> These proceeding steps complete with no visible errors or warnings.
>
> > make all
>
> This step fails with the following error
>
> LD arch/nios2/cpu/built-in.o
> /bin/sh: nios2-elf-ld.bfd: command not found
> scripts/Makefile.build:354: recipe for target 'arch/nios2/cpu/built-in.o'
> failed
> make[1]: *** [arch/nios2/cpu/built-in.o] Error 127
> Makefile:1037: recipe for target 'arch/nios2/cpu' failed
> make: *** [arch/nios2/cpu] Error 2
>
> I tested to confirm that both 'nios2-elf-gcc' and 'nios2-elf-ld' are in
> the path and are executable.
>
> It appears the compile completed but the nios2 linker is not found. The
> Nios2 binaries - nios2-elf-gcc and nios2-elf-ld are in same path location.
>
> I have been running Nios2 successfully on Linux.
>
> Anyone else seen this error or found a workaround?
>
> Dave
> USA
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-19 16:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-15 2:45 [U-Boot] Building Uboot for Nios2 - linker not found on Linux environment Dave Williams
2015-08-18 0:19 ` Thomas Chou
2015-08-19 16:56 ` Dave Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox