public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* ctype_members.cc: error: redefinition
@ 2008-07-24 14:25 Unga
  2008-07-24 16:11 ` Unga
  2008-07-25 13:38 ` Unga
  0 siblings, 2 replies; 7+ messages in thread
From: Unga @ 2008-07-24 14:25 UTC (permalink / raw)
  To: gcc-help

Hi all

I'm compiling GCC 4.3.1 on FreeBSD 7.0 and I get following error:

libtool: compile:  gcc/xgcc -shared-libgcc -B./gcc -nostdinc++ ... -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -O2 -g -g -O2 -c ctype_members.cc  -fPIC -DPIC -o .libs/ctype_members.o

ctype_members.cc:136: error: redefinition of 'bool std::ctype<wchar_t>::do_is(long unsigned int, wchar_t) const'

Please note, from the above "libtool: compile:" line -B, -L, -I lines were removed to make a summary.

What caused this error?

I can provide more info on this.

Kind regards
Unga


      

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ctype_members.cc: error: redefinition
  2008-07-24 14:25 ctype_members.cc: error: redefinition Unga
@ 2008-07-24 16:11 ` Unga
  2008-07-25 13:38 ` Unga
  1 sibling, 0 replies; 7+ messages in thread
From: Unga @ 2008-07-24 16:11 UTC (permalink / raw)
  To: gcc-help

--- On Thu, 7/24/08, Unga <unga888@yahoo.com> wrote:

> From: Unga <unga888@yahoo.com>
> Subject: ctype_members.cc: error: redefinition
> To: gcc-help@gcc.gnu.org
> Date: Thursday, July 24, 2008, 6:04 PM
> Hi all
> 
> I'm compiling GCC 4.3.1 on FreeBSD 7.0 and I get
> following error:
> 
> libtool: compile:  gcc/xgcc -shared-libgcc -B./gcc
> -nostdinc++ ... -fno-implicit-templates -Wall -Wextra
> -Wwrite-strings -Wcast-qual
> -fdiagnostics-show-location=once -ffunction-sections
> -fdata-sections -O2 -g -g -O2 -c ctype_members.cc  -fPIC
> -DPIC -o .libs/ctype_members.o
> 
> ctype_members.cc:136: error: redefinition of 'bool
> std::ctype<wchar_t>::do_is(long unsigned int,
> wchar_t) const'
> 
> Please note, from the above "libtool: compile:"
> line -B, -L, -I lines were removed to make a summary.
> 
> What caused this error?
> 
> I can provide more info on this.
> 

I thought add little bit of more information.

This compilation error happens only inside of a chroot jail. Most probably something may be missing inside the chroot jail, but it does not say anything missing. 

I'm compiling on a i386 system.

How to know whether is it something missing? or is it something else? 

Appreciate very much any help in this regard. Many thanks in advance.

Regards
Unga





      

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ctype_members.cc: error: redefinition
  2008-07-24 14:25 ctype_members.cc: error: redefinition Unga
  2008-07-24 16:11 ` Unga
@ 2008-07-25 13:38 ` Unga
  2008-07-25 13:49   ` Eljay Love-Jensen
  1 sibling, 1 reply; 7+ messages in thread
From: Unga @ 2008-07-25 13:38 UTC (permalink / raw)
  To: gcc-help


--- On Thu, 7/24/08, Unga <unga888@yahoo.com> wrote:

> From: Unga <unga888@yahoo.com>
> Subject: ctype_members.cc: error: redefinition
> To: gcc-help@gcc.gnu.org
> Date: Thursday, July 24, 2008, 6:04 PM
> Hi all
> 
> I'm compiling GCC 4.3.1 on FreeBSD 7.0 and I get
> following error:
> 
> libtool: compile:  gcc/xgcc -shared-libgcc -B./gcc
> -nostdinc++ ... -fno-implicit-templates -Wall -Wextra
> -Wwrite-strings -Wcast-qual
> -fdiagnostics-show-location=once -ffunction-sections
> -fdata-sections -O2 -g -g -O2 -c ctype_members.cc  -fPIC
> -DPIC -o .libs/ctype_members.o
> 
> ctype_members.cc:136: error: redefinition of 'bool
> std::ctype<wchar_t>::do_is(long unsigned int,
> wchar_t) const'
> 
> Please note, from the above "libtool: compile:"
> line -B, -L, -I lines were removed to make a summary.
> 
> What caused this error?
> 
> I can provide more info on this.
> 

Anybody care to look into this issue? :)

Unga


      

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ctype_members.cc: error: redefinition
  2008-07-25 13:38 ` Unga
@ 2008-07-25 13:49   ` Eljay Love-Jensen
  2008-07-25 15:50     ` Eljay Love-Jensen
  2008-07-26 21:51     ` Unga
  0 siblings, 2 replies; 7+ messages in thread
From: Eljay Love-Jensen @ 2008-07-25 13:49 UTC (permalink / raw)
  To: unga888, GCC-help

Hi Unga,

> Anybody care to look into this issue? :)

What was your compile line?

What is the path to your GCC source?

What is the path to your build location?

Do you have all the prerequisites to build GCC, as per the documentation?
<http://gcc.gnu.org/install/>

Sincerely,
--Eljay

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ctype_members.cc: error: redefinition
  2008-07-25 13:49   ` Eljay Love-Jensen
@ 2008-07-25 15:50     ` Eljay Love-Jensen
  2008-07-26 21:51     ` Unga
  1 sibling, 0 replies; 7+ messages in thread
From: Eljay Love-Jensen @ 2008-07-25 15:50 UTC (permalink / raw)
  To: unga888, GCC-help

> What was your compile line?

I meant to say...

What was your configure line?

Doh!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ctype_members.cc: error: redefinition
  2008-07-25 13:49   ` Eljay Love-Jensen
  2008-07-25 15:50     ` Eljay Love-Jensen
@ 2008-07-26 21:51     ` Unga
  2008-07-27  3:33       ` ctype_members.cc: error: redefinition [SOLVED] Unga
  1 sibling, 1 reply; 7+ messages in thread
From: Unga @ 2008-07-26 21:51 UTC (permalink / raw)
  To: Eljay Love-Jensen; +Cc: gcc-help

--- On Fri, 7/25/08, Eljay Love-Jensen <eljay@adobe.com> wrote:

> From: Eljay Love-Jensen <eljay@adobe.com>
> Subject: Re: ctype_members.cc: error: redefinition
> To: unga888@yahoo.com, "GCC-help" <gcc-help@gcc.gnu.org>
> Date: Friday, July 25, 2008, 9:32 PM
> Hi Unga,
> 
> > Anybody care to look into this issue? :)
> 
Thanks for the reply.

> What was your compile line?
> 
../gcc-4.3.1/configure --prefix=/usr \
    		--enable-shared --enable-languages=c,c++ \
		--disable-bootstrap --libexecdir=/usr/libexec \
		--enable-threads=posix --enable-clocale=gnu \
		--infodir=/usr/share/info --mandir=/usr/share/man

But I modified the GCC sources as follows:
1) sed -i '' 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
2) sed -i '' 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in
3) sed -i '' 's@\./fixinc\.sh@-c true@' gcc/Makefile.in

> What is the path to your GCC source?
> 
/usr/home/gcc/gcc-4.3.1

> What is the path to your build location?
> 
/usr/home/gcc/gcc-build

> Do you have all the prerequisites to build GCC, as per the
> documentation?
> <http://gcc.gnu.org/install/>
> 
No, prerequisites available are as follows:

ISO C90 compiler: GCC 4.3.1 (from a different directory)

GNAT: None ***
A POSIX or SVR4 awk: nawk
GNU binutils: Binutils-2.18
    
gzip version 1.2.4 (or later): FreeBSD gzip 20070711
bzip2 version 1.0.2 (or later): Bzip2-1.0.5
GNU make version 3.80 (or later): make-3.81
GNU tar version 1.14 (or later): bsdtar 2.4.17
GNU Multiple Precision Library (GMP) version 4.1 (or later): gmp-4.2.2
MPFR Library version 2.3.0 (or later): mpfr-2.3.1
jar, or InfoZIP (zip and unzip): None ***

autoconf version 2.59: None ***
GNU m4 version 1.4 (or later): m4-1.4.11
automake version 1.9.6: None ***
gettext version 0.14.5 (or later): Gettext-0.17
gperf version 2.7.2 (or later): gperf-3.0.3
DejaGnu 1.4.4: dejagnu-1.4.4
Expect: Expect-5.43.0
Tcl: tcl8.4.19
autogen version 5.5.4 (or later): autogen-5.9.5
guile version 1.4.1 (or later): guile-1.8.5
Flex version 2.5.4 (or later): Flex 2.5.4 (FreeBSD version)
Texinfo version 4.7 (or later): texinfo-4.12
TeX (any working version): None ***
SVN (any version): None ***
SSH (any version): None ***
Perl version 5.6.1 (or later): perl-5.10.0
GNU diffutils version 2.7 (or later): diffutils-2.8.1
patch version 2.5.4 (or later): FreeBSD Patch version 2.1
ecj1: None ***
gjavah: None ***

Are the prerequisites sufficient? Do I specifically require the autoconf and automake to compile and install the GCC?

Kind regards
Unga


      

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ctype_members.cc: error: redefinition [SOLVED]
  2008-07-26 21:51     ` Unga
@ 2008-07-27  3:33       ` Unga
  0 siblings, 0 replies; 7+ messages in thread
From: Unga @ 2008-07-27  3:33 UTC (permalink / raw)
  To: gcc-help

--- On Fri, 7/25/08, Unga <unga888@yahoo.com> wrote:

> From: Unga <unga888@yahoo.com>
> Subject: Re: ctype_members.cc: error: redefinition
> To: "Eljay Love-Jensen" <eljay@adobe.com>
> Cc: gcc-help@gcc.gnu.org
> Date: Friday, July 25, 2008, 11:50 PM
> --- On Fri, 7/25/08, Eljay Love-Jensen
> <eljay@adobe.com> wrote:
> 
> > From: Eljay Love-Jensen <eljay@adobe.com>
> > Subject: Re: ctype_members.cc: error: redefinition
> > To: unga888@yahoo.com, "GCC-help"
> <gcc-help@gcc.gnu.org>
> > Date: Friday, July 25, 2008, 9:32 PM
> > Hi Unga,
> > 
> > > Anybody care to look into this issue? :)
> > 
> Thanks for the reply.
> 
> > What was your compile line?
> > 
> ../gcc-4.3.1/configure --prefix=/usr \
>     		--enable-shared --enable-languages=c,c++ \
> 		--disable-bootstrap --libexecdir=/usr/libexec \
> 		--enable-threads=posix --enable-clocale=gnu \
> 		--infodir=/usr/share/info --mandir=/usr/share/man
> 

--enable-clocale=gnu doesn't work on BSD.

That was the cause, without --enable-clocale option, now GCC get compiled cleanly.

Best regards
Unga


      

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-07-26  3:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-24 14:25 ctype_members.cc: error: redefinition Unga
2008-07-24 16:11 ` Unga
2008-07-25 13:38 ` Unga
2008-07-25 13:49   ` Eljay Love-Jensen
2008-07-25 15:50     ` Eljay Love-Jensen
2008-07-26 21:51     ` Unga
2008-07-27  3:33       ` ctype_members.cc: error: redefinition [SOLVED] Unga

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).