* [ECOS] cc1plus problem
@ 2001-05-24 23:14 Nicola Bergamin [BW]
2001-05-25 6:22 ` Robin Farine
2001-05-25 6:39 ` Jonathan Larmour
0 siblings, 2 replies; 3+ messages in thread
From: Nicola Bergamin [BW] @ 2001-05-24 23:14 UTC (permalink / raw)
To: ecos-discuss
Hi,
I've tried to build gcc2.95.2 under cygwin1.3.1.
using source files:
binutils-2.10.1.tar.gz2,
gcc-core-2.95.2.tar.bz2
gcc-g++-2.95.2.tar.bz2
and patch:
ecos-gcc-2952.pat
The build seemed ok, except that "cc1plus.exe" was not built at all!
Another strange thing, "libgcc.a" was 99kB, appeared too small in
size.
(I checked with other builds, it should make 240kB)
The instruction I followed is the standard set in eCos website, and
here is the
command file I used under bash shell:
(just report here the GCC section...)
************************************
#!/bin/sh
target=arm-elf
prefix=/tools_ecos
mkdir -p /tmp/build/build_gcc
cd /tmp/build/build_gcc/src/gcc/gcc-2.95.2/configure \
--target=$target \
--prefix=$prefix \
--exec_prefix=$prefix/xgcc \
--with-gnu-as \
--with-gnu-ld \
--with-newlib -v 2>&1 | tee configure-xgcc.out
make -w all-gcc install-gcc LANGUAGES="c c" 2>&1 | tee make-
xgcc.out
***********************************************************************
By changing to ...LANGUAGES="c c++"
everything worked, cc1plus.exe was built and libgcc.a got 240kB
size, as expected.
Does anybody know the meaning of "c c", and "c c++" strings?
What's wrong with the original build commands?
Thanks
Nicola
------------------------------------------
Nicola Bergamin
BlueWind Embedded Systems Design
Via Steffani, 7/B
I-31033 Castelfranco Veneto (TV)
Office: +39 0 423 723431
Fax : +39 0 423 744738
GSM : +39 335 7556736
mailto:nicola.bergamin@bluewind.it
http://www.bluewind.it
------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] cc1plus problem
2001-05-24 23:14 [ECOS] cc1plus problem Nicola Bergamin [BW]
@ 2001-05-25 6:22 ` Robin Farine
2001-05-25 6:39 ` Jonathan Larmour
1 sibling, 0 replies; 3+ messages in thread
From: Robin Farine @ 2001-05-25 6:22 UTC (permalink / raw)
To: Nicola Bergamin [BW]; +Cc: ecos-discuss
"Nicola Bergamin [BW]" <nicola.bergamin@bluewind.it> writes:
> Hi,
> I've tried to build gcc2.95.2 under cygwin1.3.1.
> using source files:
>
> binutils-2.10.1.tar.gz2,
> gcc-core-2.95.2.tar.bz2
> gcc-g++-2.95.2.tar.bz2
>
> and patch:
> ecos-gcc-2952.pat
>
> The build seemed ok, except that "cc1plus.exe" was not built at all!
> Another strange thing, "libgcc.a" was 99kB, appeared too small in
> size.
You should rather refer to the gcc documentation for this kind of problems.
>
> (I checked with other builds, it should make 240kB)
>
> The instruction I followed is the standard set in eCos website, and
> here is the
> command file I used under bash shell:
> (just report here the GCC section...)
> ************************************
> #!/bin/sh
> target=arm-elf
> prefix=/tools_ecos
> mkdir -p /tmp/build/build_gcc
>
> cd /tmp/build/build_gcc/src/gcc/gcc-2.95.2/configure \
> --target=$target \
> --prefix=$prefix \
> --exec_prefix=$prefix/xgcc \
> --with-gnu-as \
> --with-gnu-ld \
> --with-newlib -v 2>&1 | tee configure-xgcc.out
>
> make -w all-gcc install-gcc LANGUAGES="c c" 2>&1 | tee make-
> xgcc.out
> ***********************************************************************
>
> By changing to ...LANGUAGES="c c++"
> everything worked, cc1plus.exe was built and libgcc.a got 240kB
> size, as expected.
>
> Does anybody know the meaning of "c c", and "c c++" strings?
As you might already know, gcc compiles different programming languages. The
LANGUAGES make variable defines which languages you want to build gcc for.
> What's wrong with the original build commands? Thanks Nicola
It specifies two times C but not C++ so you do not get C++ and that's why your
libgcc is smaller, it doesn't contains the C++ runtime support.
Robin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] cc1plus problem
2001-05-24 23:14 [ECOS] cc1plus problem Nicola Bergamin [BW]
2001-05-25 6:22 ` Robin Farine
@ 2001-05-25 6:39 ` Jonathan Larmour
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Larmour @ 2001-05-25 6:39 UTC (permalink / raw)
To: Nicola Bergamin [BW]; +Cc: ecos-discuss
"Nicola Bergamin [BW]" wrote:
> The instruction I followed is the standard set in eCos website, and
> here is the
> command file I used under bash shell:
> (just report here the GCC section...)
> ************************************
> #!/bin/sh
> target=arm-elf
> prefix=/tools_ecos
> mkdir -p /tmp/build/build_gcc
>
> cd /tmp/build/build_gcc/src/gcc/gcc-2.95.2/configure \
> --target=$target \
> --prefix=$prefix \
> --exec_prefix=$prefix/xgcc \
> --with-gnu-as \
> --with-gnu-ld \
> --with-newlib -v 2>&1 | tee configure-xgcc.out
>
> make -w all-gcc install-gcc LANGUAGES="c c" 2>&1 | tee make-
> xgcc.out
> ***********************************************************************
>
> By changing to ...LANGUAGES="c c++"
> everything worked, cc1plus.exe was built and libgcc.a got 240kB
> size, as expected.
The instructions on the website say LANGUAGES="c c++". Give me an exact URL
if you think otherwise.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-05-25 6:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-24 23:14 [ECOS] cc1plus problem Nicola Bergamin [BW]
2001-05-25 6:22 ` Robin Farine
2001-05-25 6:39 ` Jonathan Larmour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).