delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/17/00:32:05

Date: Mon, 17 Jun 2002 13:33:52 +0900
From: Kirill Kryukov <kkryukov AT lab DOT nig DOT ac DOT jp>
X-Mailer: The Bat! (v1.60g)
Organization: NIG
X-Priority: 3 (Normal)
Message-ID: <141154652939.20020617133352@lab.nig.ac.jp>
To: djgpp AT delorie DOT com
Subject: what is ___gxx_personality_v0 ?
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Hello,

I will appreciate any help or comment.

When I call :    gcc.exe -o test.exe test.cc foo.cc
gcc tells me :

C:/djgpp/tmp/ccMugof3.o(.eh_frame+0x11):test.cc: undefined reference
to '___gxx_personality_v0'
collect2: ld returned 1 exit status

The sources are:

===== test.cc =====

int foo();

int main()
{
  return foo();
}

===== foo.cc =====

int foo()
{
  return 1;
}

===== end =====


(this is minimum code to reproduce that message, it needs two files,
one file alone will compile fine)

This is true for DJGPP zips of June 9-th, I don't have earlier
release now, but there were no any problems before.

I tried default installation, just unzip files and set environment.
This reproduces under both Win98 and WinXP, with DJGPP installed
freshly on both. Actually, only used bnu2112.zip,
djdev204_alpha_win2k.zip, gcc31b.zip and gpp31b.zip.

Anyway, it does not seem like "expected behavior".



If can be of any help, this is outcome of same command with '-v' added:
( gcc.exe -v -o test.exe test.cc foo.cc )


Reading specs from c:/djgpp/lib/gcc-lib/djgpp/3.1/specs
Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls : (reconfigured) ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls : (reconfigured) ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls : (reconfigured) ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls : (reconfigured) ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls : (reconfigured) ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls --enable-languages=c,c++
Thread model: single
gcc version 3.1
c:/djgpp/lib/gcc-lib/djgpp/3.1/cc1plus.exe -v -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -Asystem=msdos -Asystem=unix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ -DMSDOS -DGO32 -DDJGPP=2 -Dunix -remap -imacros c:/djgpp/lib/gcc-lib/djgpp/3.1/djgpp.ver test.cc -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase test.cc -version -o c:/djgpp/tmp/ccVCULj5.s
GNU CPP version 3.1 (cpplib) (80386, BSD syntax)
GNU C++ version 3.1 (djgpp)
compiled by GNU C version 3.1.
ignoring nonexistent directory "c:/djgpp/djgpp/include"
#include "..." search starts here:
#include <...> search starts here:
c:/djgpp/lang/cxx-v31
c:/djgpp/lang/cxx-v31/djgpp
c:/djgpp/lang/cxx-v31/backward
c:/djgpp/lib/gcc-lib/djgpp/3.1/include
c:/djgpp/include
End of search list.
c:/djgpp/bin/as.exe --traditional-format -o c:/djgpp/tmp/ccZlqqN5.o c:/djgpp/tmp/ccVCULj5.s
c:/djgpp/lib/gcc-lib/djgpp/3.1/cc1plus.exe -v -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -Asystem=msdos -Asystem=unix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ -DMSDOS -DGO32 -DDJGPP=2 -Dunix -remap -imacros c:/djgpp/lib/gcc-lib/djgpp/3.1/djgpp.ver foo.cc -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase foo.cc -version -o c:/djgpp/tmp/ccVCULj5.s
GNU CPP version 3.1 (cpplib) (80386, BSD syntax)
GNU C++ version 3.1 (djgpp)
compiled by GNU C version 3.1.
ignoring nonexistent directory "c:/djgpp/djgpp/include"
#include "..." search starts here:
#include <...> search starts here:
c:/djgpp/lang/cxx-v31
c:/djgpp/lang/cxx-v31/djgpp
c:/djgpp/lang/cxx-v31/backward
c:/djgpp/lib/gcc-lib/djgpp/3.1/include
c:/djgpp/include
End of search list.
c:/djgpp/bin/as.exe --traditional-format -o c:/djgpp/tmp/ccfnufLq.o c:/djgpp/tmp/ccVCULj5.s
c:/djgpp/lib/gcc-lib/djgpp/3.1/collect2.exe -o test.exe c:/djgpp/lib/crt0.o -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djgpp/3.1 -Lc:/djgpp/bin -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djgpp/3.1/../../.. c:/djgpp/tmp/ccZlqqN5.o c:/djgpp/tmp/ccfnufLq.o -lgcc -lc -lgcc -Tdjgpp-x.djl
c:/djgpp/tmp/ccZlqqN5.o(.eh_frame+0x11):test.cc: undefined reference to `___gxx_personality_v0'
collect2: ld returned 1 exit status



(BTW, anyone has idea what is "c:/djgpp/djgpp/include" which is
"ignored nonexistent" ? )

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019