Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

uclinux toolchain installation ( cross compiler setting error)

Hi,

I have just installed altera 9.1sp2 quartusII,nios2eds, nios2-linux-20090929.tar on centOS_5 from InstallNios2Linux tutorial.

1-hen i try to build the binary toolchain (the laptop is i64 architecture but the linux centOS installed is 32 architecture)

$~/nios2-linux/toolchain-build/make gcc elf2flt gdb-host

the message error is

lipthred/linuxthreads.old/wrapsyscall.c:101:error rededfinition of 'msync' ./include/sys/mman.h:97:error: previous definition of 'msync' was here

make[1]: ***[libthread/linuxthreads.old/wrapsyscall.o] Error 1

2-then i have installed the prebuild binary tool chain nios2gcc-20080203.tar.bz2 in /opt/nios2/

the cross compiler nios2-linux-uclibc-gcc is in /opt/nios2/bin

i can compile the hello.c example

also i can do the tryOutuClinux example on 2C35 DE2 kit: configure the fpga with *.sof and run the zimage kernel

3-The problem is when i try continue with the uclinuxDist tutorial:

I DONT INSTALL tar -C your_path -xvf nios2-linux-20090730.tar because 20090929 version its installed

i do make menuconfig correctly

but when i run $../uClinux-dist/ make vendor_hwselect SYSPTF=~/nios2-projects/tryOutuClinux/DE2_NIOS_HOST_MOUSE_VGA.ptf

there is an error with the cross compiler selected --->

[candido@localhost uClinux-dist]$ make vendor_hwselect SYSPTF=~/nios2-projects/tryOutuClinux/DE2_NIOS_HOST_MOUSE_VGA.ptf >> error.txt

make[1]: nios2-linux-gnu-gcc: No se encontró el programa

make[1]: se ingresa al directorio `/home/candido/nios2-linux/uClinux-dist/vendors'

/bin/sh: nios2-linux-gnu-gcc: command not found

/bin/sh: nios2-linux-gnu-gcc: command not found

which: no nios2-linux-gnu-gccbug in (/home/candido/nios2-linux/uClinux-dist/tools:/usr/kerberos/bin:/usr/lib/ccache/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/candido/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/home/candido/nios2-linux/toolchain-build/build/nios2/bin)

which: no nios2-linux-gnu-gccbug in (/home/candido/nios2-linux/uClinux-dist/tools:/usr/kerberos/bin:/usr/lib/ccache/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/candido/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/home/candido/nios2-linux/toolchain-build/build/nios2/bin)

/bin/sh: nios2-linux-gnu-gcc: command not found

make[3]: *** No hay ninguna regla para construir el objetivo `hwselect'. Alto.

make[2]: *** [vendor_hwselect] Error 2

make[1]: *** [vendor_hwselect] Error 2

make: *** [vendor_hwselect] Error 2

i have tried $make vendor_hwselect SYSPTF=~/nios2-projects/tryOutuClinux CROSS_COMPILE=nios2-linux-uclibc-

but the result dont change

4-¿ How can I configure the cross_compile default?

THANKS IN ADVANCE

18 Replies