On Fri, Dec 12, 2008 at 4:49 AM, Verge <[email protected]> wrote: > > ./configure --target=sparc-linux-gcc --host=sparc-linux-gcc > > The host variable I included, due to desperation
This isn't quite the way that these parameters work. They tell configure your system type, whereas you're trying to tell it your compiler. So, --host=i686-pc-linux-gnu says what type of system I will run the compiled binaries on. In turn, when searching for the compiler to use, it will try to find i686-pc-linux-gnu-gcc. FYI, --target is only meaningful if you're building a compiler, even though some people abuse it in their configure scripts. Whereas --host says what kind of system you will run the programs on, --target says what kind of system the programs produced by these programs will run on. If that makes sense. Anyway, it's harmless to set --target as you like, but --host is the important one here. So, are you trying to cross compile mesa or are you just trying use a different compiler? If you just want to specify the compiler, just `export CC=sparc-linux-gcc' before you run ./configure. > Dan Nicholson-2 wrote: >> >> On Thu, Dec 11, 2008 at 12:07 PM, Verge <[email protected]> wrote: >>> >>> As requested. >>> The errors were so much, couldn't dispaly it all. >>> >>> BY the way, I obtained this errors when I try to gmake Mesa after >>> ./configuring it to sparc-linux target. >> >> What arguments did you give to configure? >> >>> Paste of the errors. >>> >>> fakeglx.c: In function `Fake_glXIsDirect': >>> fakeglx.c:1663: error: `ctx' undeclared (first use in this function) >>> fakeglx.c:1664: error: `dpy' undeclared (first use in this function) >>> fakeglx.c:1665: error: dereferencing pointer to incomplete type >> >> Is this the very first error that shows up? Could you also show the >> command make is running when this error is produced? >> >> Yes, this is the first set of errors that shows up. And how can I show the >> command make is running when the error is produced? Log all the messages from running make. Make shows the commands it runs as it builds along. If you're not doing a parallel build, then it will be the command just before these errors. It should be something like gcc -c <bunch of switches> fakeglx.c -o fakeglx.o -- Dan ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
