[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Problem building quagga



Hi,

I'm trying to build quagga (quagga version that is part of uClinux-dist). I get the next error:

checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... ucfront-gcc mb-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[3]: *** [build/build] Error 1
make[3]: Leaving directory `/root/uClinux-dist/user
/quagga'
make[2]: *** [quagga] Error 2
make[2]: Leaving directory `/root/uClinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/uClinux-dist/user'
make: *** [subdirs] Error 1
root@potxandio-laptop:~/uClinux-dist#

Davidm warn me to make sure my config.arch (or your vendors/config/microblaze
/config.arch) is setting CONFIGURE_OPTS appropriately.

Exactly! There were not CONFIGURE_OPTS in my config.arch file. I have added this to the config.arch file:

# These can be used by configure.
# Either configure $(CONFIGURE_OPTS)
# or     configure --host=$(TARGETARCH) --build=$(HOSTARCH) --target=$(TARGETARCH)
#
TARGETARCH    := microblaze-linux
HOSTARCH      := $(shell sh $(ROOTDIR)/tools/config.guess)
CONFIGURE_OPTS := --host=$(TARGETARCH) --build=$(HOSTARCH) --target=$(TARGETARCH)

But I get the next error:

checking build system type... i686-pc-linux-gnu
checking host system type... Invalid configuration `microblaze-linux': machine `microblaze' not recognized
configure: error: /bin/bash ../config.sub microblaze-linux failed
make[3]: *** [build/build] Error 1
make[3]: Leaving directory `/root/uClinux-dist/user/quagga'
make[2]: *** [quagga] Error 2
make[2]: Leaving directory `/root/uClinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/uClinux-dist/user'
make: *** [subdirs] Error 1
root@potxandio-laptop:~/uClinux-dist#

What do I have to write in TARGETARCH option? I have tried several combinations: mb-linux, microblaze-linux, mb-elf-linux, microblaze-elf-linux.

Cheers,

Pello