Re: [Oklibrary-developers] Building local GCC
Research platform for SAT and other hard problems
Status: Pre-Alpha
Brought to you by:
xgateruq9
|
From: Oliver K. <O.K...@sw...> - 2009-10-27 17:49:36
|
On Mon, Oct 26, 2009 at 05:38:09PM -0400, Matthew Henderson wrote: > Hi, > >> I really just want to install OKlibrary's Maxima at present. Do I really > >> need to install GCC first? With 'oklib allmaxima' it seems that the > >> buildsystem first tries to install GCC. > >> > > > > > > > > not at all! I guess you mean "oklib all" ? > > As you can see, looking into the makefile > > OKplatform/OKsystem/OKlib/Buildsystem/ExternalSources/Makefile > > "all" first creates all compilers, but as you can see in > > OKplatform/OKsystem/OKlib/Buildsystem/ExternalSources/SpecialBuilds/maxima.mak > > "allmaxima" means ecl gnuplot maxima. > > > > > > I really did mean 'oklib allmaxima' but I was slightly mistaken about > the nature of the problem. The buildsystem doesn't try to install GCC, > like I said. Rather, the installation of ECL expects GCC to be already > installed. So, it seems that GCC really should be a dependency of ECL? > Yes, I forgot about that, so you need first to build Gmp and then Ecl, in both cases setting CC and CXX to your system C and C++ compiler. I think this should work. Better to remove old builds and installation in ExternalSources. (Have a look into Buildsystem/ExternalSources/SpecialBuilds, for example ecl.mak, and it should be easy to figure out how the build proceeds.) By the way, the buildsystem for external sources yet does't know about dependencies between different external sources, so this can only by handled by the fixed installation order. Oliver > matthew@artin:~/OKplatform/ExternalSources$ oklib allmaxima > make > --makefile=/home/matthew/OKplatform/.oklib/Configuration/../ExternalSources/Makefile > --directory=/home/matthew/OKplatform/ExternalSources > OKplatform=/home/matthew/OKplatform allmaxima > oklib: /home/matthew/OKplatform/.oklib/log/ExternalSources contains all > output of the build. > > make: Entering directory `/home/matthew/OKplatform/ExternalSources' > mkdir -p /home/matthew/OKplatform/ExternalSources/Installations/Ecl > mkdir -p /home/matthew/OKplatform/ExternalSources/builds/Ecl > mkdir -p /home/matthew/OKplatform/ExternalSources/doc/Ecl > mkdir -p /home/matthew/OKplatform/ExternalSources/doc/Ecl/9.10.2 > if [ -f > /home/matthew/OKplatform/ExternalSources/sources/Ecl/ecl-9.10.2.tar.gz > ]; then tar --extract > --directory=/home/matthew/OKplatform/ExternalSources/builds/Ecl > --file=/home/matthew/OKplatform/ExternalSources/sources/Ecl/ecl-9.10.2.tar.gz > --ungzip; elif [ -f > /home/matthew/OKplatform/ExternalSources/sources/Ecl/ecl-9.10.2.tgz ]; > then tar --extract > --directory=/home/matthew/OKplatform/ExternalSources/builds/Ecl > --file=/home/matthew/OKplatform/ExternalSources/sources/Ecl/ecl-9.10.2.tgz > --ungzip; elif [ -f > /home/matthew/OKplatform/ExternalSources/sources/Ecl/ecl-9.10.2.tar.bz2 > ]; then tar --extract > --directory=/home/matthew/OKplatform/ExternalSources/builds/Ecl > --file=/home/matthew/OKplatform/ExternalSources/sources/Ecl/ecl-9.10.2.tar.bz2 > --bzip2; else exit 1; fi; > cd /home/matthew/OKplatform/ExternalSources/builds/Ecl/ecl-9.10.2; if [ > $? != 0 ]; then exit 1; fi; \ > > LDFLAGS=-Wl,-rpath=/home/matthew/OKplatform/ExternalSources/Installations/Ecl/9.10.2/lib > ./configure > --prefix=/home/matthew/OKplatform/ExternalSources/Installations/Ecl/9.10.2 > --with-gmp-prefix=/home/matthew/OKplatform/ExternalSources/Installations/Gmp/4.1.2/4.3.1 > CC=/home/matthew/OKplatform/ExternalSources/Installations/Gcc/4.1.2/bin/gcc > CXX=/home/matthew/OKplatform/ExternalSources/Installations/Gcc/4.1.2/bin/g++; > if [ $? != 0 ]; then exit 1; fi; \ > make; if [ $? != 0 ]; then exit 1; fi; \ > make install; if [ $? != 0 ]; then exit 1; fi; > Creating directory `build' > Switching to directory `build' to continue configuration. > checking build system type... x86_64-unknown-linux-gnu > checking host system type... x86_64-unknown-linux-gnu > checking for gcc... > /home/matthew/OKplatform/ExternalSources/Installations/Gcc/4.1.2/bin/gcc > checking for C compiler default output file name... > configure: error: in > `/home/matthew/OKplatform/ExternalSources/builds/Ecl/ecl-9.10.2/build': > configure: error: C compiler cannot create executables > See `config.log' for more details. > make: *** [ecl_core] Error 1 > make: Leaving directory `/home/matthew/OKplatform/ExternalSources' > ERROR[oklib]: The external sources build-process returned a value > different from zero: 2 > > > Regards, > Matthew > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Oklibrary-developers mailing list > Okl...@li... > https://lists.sourceforge.net/lists/listinfo/oklibrary-developers -- Dr. Oliver Kullmann Computer Science Department Swansea University Faraday Building, Singleton Park Swansea SA2 8PP, UK http://cs.swan.ac.uk/~csoliver/ |