build gcc on Windows

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

build gcc on Windows

Andy Little
Hi,

 I have been trying to do an install from BOOST_ROOT on Windows using gcc as the
toolset.
I have gcc installed in C:/djgpp2  (\bin) and the command I am using is:

call bjam "-sTOOLS=gcc" "-sGXX=gpp"  "-sGCC_ROOT_DIRECTORY=C:\djgpp2"  install

 However Whatever I try I simply get error on every compilation as shown below.

I am sure that there is something very simple that I am doing wrong.
Any help appreciated.

regards
Andy Little

--------------------------------------------------

Please refer to the Boost.Regex documentation for more information
(and if you don't know what ICU is then you probably don't need it).
...found 16399 targets...
...updating 2052 targets...
gcc-C++-action
bin\boost\libs\date_time\build\boost_date_time.dll\gcc\debug\greg_month.obj


    "C:\djgpp2\bin\gpp"   -c -Wall -ftemplate-depth-255  -DBOOST_ALL_DYN_LINK=1
-DUSE_DATE_TIME_PRE_1_33_FACET_IO  -g -O0 -fno-inline   -I"bin\boost\libs\date_time\build"
   -I "C:\boost\boost_1_33_0"  -o
"bin\boost\libs\date_time\build\boost_date_time.dll\gcc\debug\greg_month.obj"
"C:\boost\boost_1_33_0\libs\date_time\build\../src/gregorian/greg_month.cpp"


...failed gcc-C++-action
bin\boost\libs\date_time\build\boost_date_time.dll\gcc\debug\greg_month.obj...
gcc-C++-action
bin\boost\libs\date_time\build\boost_date_time.dll\gcc\debug\greg_weekday.obj
The system cannot execute the specified program

    "C:\djgpp2\bin\gpp"   -c -Wall -ftemplate-depth-255  -DBOOST_ALL_DYN_LINK=1
-DUSE_DATE_TIME_PRE_1_33_FACET_IO  -g -O0 -fno-inline   -I"bin\boost\libs\date_time\build"
   -I "C:\boost\boost_1_33_0"  -o
"bin\boost\libs\date_time\build\boost_date_time.dll\gcc\debug\greg_weekday.obj"
"C:\boost\boost_1_33_0\libs\date_time\build\../src/gregorian/greg_weekday.cpp"


...failed gcc-C++-action
bin\boost\libs\date_time\build\boost_date_time.dll\gcc\debug\greg_weekday.obj...
gcc-C++-action
bin\boost\libs\date_time\build\boost_date_time.dll\gcc\debug\date_generators.obj
The system cannot execute the specified program




_______________________________________________
Boost-build mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: build gcc on Windows

Rene Rivera
Andy Little wrote:

> Hi,
>
>  I have been trying to do an install from BOOST_ROOT on Windows using gcc as the
> toolset.
> I have gcc installed in C:/djgpp2  (\bin) and the command I am using is:
>
> call bjam "-sTOOLS=gcc" "-sGXX=gpp"  "-sGCC_ROOT_DIRECTORY=C:\djgpp2"  install
>
>  However Whatever I try I simply get error on every compilation as shown below.
>
> I am sure that there is something very simple that I am doing wrong.
> Any help appreciated.
[...]

>     "C:\djgpp2\bin\gpp"   -c -Wall -ftemplate-depth-255  -DBOOST_ALL_DYN_LINK=1
> -DUSE_DATE_TIME_PRE_1_33_FACET_IO  -g -O0 -fno-inline   -I"bin\boost\libs\date_time\build"
>    -I "C:\boost\boost_1_33_0"  -o
> "bin\boost\libs\date_time\build\boost_date_time.dll\gcc\debug\greg_month.obj"
> "C:\boost\boost_1_33_0\libs\date_time\build\../src/gregorian/greg_month.cpp"
>
>
> ...failed gcc-C++-action
> bin\boost\libs\date_time\build\boost_date_time.dll\gcc\debug\greg_month.obj...
> gcc-C++-action
> bin\boost\libs\date_time\build\boost_date_time.dll\gcc\debug\greg_weekday.obj
> The system cannot execute the specified program

Weird... I'm shooting in the dark here. But maybe you could try doing
"-sGXX=gpp.exe". Can't think of what else could be the problem.



--
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - Grafik/jabber.org
_______________________________________________
Boost-build mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: build gcc on Windows

Andy Little

"Rene Rivera" wrote

> Weird... I'm shooting in the dark here. But maybe you could try doing
> "-sGXX=gpp.exe". Can't think of what else could be the problem.

I tried it but that makes no difference. Oh well I'll keep working on it. It has
to be something pretty simple.

 Boost.Build doesnt expect any exotic unix utilities to be available for gcc
toolset does it ... just gpp and gcc?

regards
Andy Little



_______________________________________________
Boost-build mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: build gcc on Windows

Andy Little
In reply to this post by Rene Rivera

"Rene Rivera"  wrote in message
> Andy Little wrote:

>> ...failed gcc-C++-action
>> bin\boost\libs\date_time\build\boost_date_time.dll\gcc\debug\greg_month.obj...
>> gcc-C++-action
>> bin\boost\libs\date_time\build\boost_date_time.dll\gcc\debug\greg_weekday.obj
>> The system cannot execute the specified program
>
> Weird... I'm shooting in the dark here. But maybe you could try doing
> "-sGXX=gpp.exe". Can't think of what else could be the problem.

Trawling  about on google I came upon these facts specific to DJGPP. that gcc
can't accept a command line longer than 127 characters. I confirmed this by
attempting to invoke gcc with parameter list longer than 127 characters,
whereupon I got the aforesaid error-message:
"The system cannot execute the specified program". I presume not all versions of
DJGPP act like this. Either that or no-one tries to build boost with this system
on Windows

http://maillist.perforce.com/pipermail/jamming/1998-May/000537.html
http://www.turkupetcentre.net/programs/programs_faq.html
http://lists.gnu.org/archive/html/bug-gnu-utils/2002-09/msg00010.html

Anyway its identified the cause of the problem , which is a start!

regards
Andy Little












_______________________________________________
Boost-build mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-build