Results 1 to 3 of 3
I'm trying to cross compile some software (libmad) and I hit an error in ./configure:
Code:
checking build system type... Invalid configuration
`nios2-linux-uclibc-gcc': machine `nios2-linux' not recognized
configure: error: /bin/sh ...
- 03-27-2008 #1Just Joined!
- Join Date
- Oct 2007
- Posts
- 10
Cross Compiling Error: Invalid configuration
I'm trying to cross compile some software (libmad) and I hit an error in ./configure:
of course I set the host as the binary for the cross compiler, and the cross compiler works fine - I've verified it.Code:checking build system type... Invalid configuration `nios2-linux-uclibc-gcc': machine `nios2-linux' not recognized configure: error: /bin/sh ./config.sub nios2-linux-uclibc-gcc failed
I googled the error and I decided that it must be because the target system must not be on the list of platforms in config.sub or config.guess. I'm fairly sure the program isn't platform dependent. and I opened up config.sub and the target platform isn't on there.
It's puzzling tho because I don't see why I can't just give it the cross compiler and it just calls the cross compiler and get to work - why the program must have a support file for every platform that exists.
Anyway I'm wondering if config.sub or config.guess is different for every program, or can I take the config.sub from a different program. Or is there a way of manually adding lines for supporting different platforms?
edit: or did I not install the cross compiler correctly? Is it a problem with my build platform rather than the makefile?
- 03-27-2008 #2Just Joined!
- Join Date
- Feb 2008
- Posts
- 5
config.sub or config.guess is different for every program.
The problem with config.sub may be looking at different like when you installed cross compiler its path may be different then the one config.sub is looking for. Its bad idea to replace config.sub instaed,try to see if you can copy cross compiler binary to some other location
- 03-27-2008 #3Just Joined!
- Join Date
- Oct 2007
- Posts
- 10
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
# can handle that machine. It does not imply ALL GNU software can.
are u sure?
i'm not on build system atm, but ill check


Reply With Quote