> > /usr/bin/c++ --version
> > i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
> > 5658) (LLVM build 2335.15.00)
The R3.14 branch latest builds here for Intel w/o issues using this g++
version.
> g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.2/lto-wrapper.ex
e
Target: mingw32
Configured with: ../gcc-4.5.2/configure
--enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions
--with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry
--enable-libstdcxx-debug --enable-version-sp
ecific-runtime-libs --disable-werror --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.5.2 (GCC)
> error: generic thunk code fails for method ?virtual
> int udpiiu::printFormated(epicsGuard<epicsMutex>&, const char*, ...)?
> which uses ?...?
Reading on the web, I think I understand what the issue is, but have some
trouble understanding why you see it and I don?t when surely it's the same
Intel target (but different OS)?
The workaround might be to pass stdarg instead of "...". I won't be able to
reproduce it here so perhaps I will commit a fix and then you can test?
Jeff
______________________________________________________
Jeffrey O. Hill Email [email protected]
LANL MS H820 Voice 505 665 1831
Los Alamos NM 87545 USA FAX 505 665 5107
Message content: TSPA
With sufficient thrust, pigs fly just fine. However, this is
not necessarily a good idea. It is hard to be sure where they
are going to land, and it could be dangerous sitting under them
as they fly overhead. -- RFC 1925
> -----Original Message-----
> From: Noboru Yamamoto [mailto:[email protected]]
> Sent: Monday, July 25, 2011 8:33 PM
> To: Jeff Hill
> Cc: Eric Norum
> Subject: Re: EPICS on OS X Lion -- C++ problem
>
> (11/07/26 11:28), Noboru Yamamoto wrote:
> > Hi Jeff and Eric:
> >
> > Here are info you asked in my environment (MacBook pro running MacOSX
> > 10.7 aka Lion):
> >
> > (11/07/26 9:41), Jeff Hill wrote:
> >> Hi Eric,
> >>
> >> What version of g++ is installed? I recently installed mingw 4.5.2
> here. I
> >> will update the R3.14 branch from Bazaar in the morning and verify that
> >> everything builds ok.
> >
> > [noboru-mbook:epics/R314/base] noboru% /usr/bin/c++ --version
> > i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
> > 5658) (LLVM build 2335.15.00)
> > Copyright (C) 2007 Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions. There is
> > NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> > PURPOSE.
> >
> >>
> >> Also, please send the complete error message. With C++ (in particular
> g++)
> >> the error messages can be quite verbose, but nevertheless sometimes the
> >> details are needed.
> >>
> > make -C O.darwin-x86 -f ../Makefile TOP=../../.. T_A=darwin-x86 install
> >
> > /usr/bin/c++ -c -DUNIX -Ddarwin -O3 -g -pipe -Wall
> > -arch i386 -fno-common -fPIC -MMD -I. -I../O.Common -I. -I..
> > -I../../../include/os/Darwin -I../../../include -I/usr/include
> > -I/opt/local/include ../udpiiu.cpp
> > ../udpiiu.cpp:1392: error: generic thunk code fails for method ?virtual
> > int udpiiu::printFormated(epicsGuard<epicsMutex>&, const char*, ...)?
> > which uses ?...?
> > make[3]: *** [udpiiu.o] Error 1
> > make[2]: *** [install.darwin-x86] Error 2
> > make[1]: *** [ca.install] Error 2
> > make: *** [src.install] Error 2
> >
> > It will be nice if we can use c/c++ compiler supplied by Apple, so that
> > we can cretae Fat binary.
> Sorry,clang is also supplied by Apple.
>
> Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
> Target: x86_64-apple-darwin11.0.0
> Thread model: posix
>
> Noboru
> >
> > Regards,
> >
> > Noboru
> >
> >> Jeff
> >> ______________________________________________________
> >> Jeffrey O. Hill Email [email protected]
> >> LANL MS H820 Voice 505 665 1831
> >> Los Alamos NM 87545 USA FAX 505 665 5107
> >>
> >> Message content: TSPA
> >>
> >> With sufficient thrust, pigs fly just fine. However, this is
> >> not necessarily a good idea. It is hard to be sure where they
> >> are going to land, and it could be dangerous sitting under them
> >> as they fly overhead. -- RFC 1925
> >>
> >>
> >>> -----Original Message-----
> >>> From: [email protected] [mailto:tech-talk-
> [email protected]]
> >>> On Behalf Of Eric Norum
> >>> Sent: Monday, July 25, 2011 11:54 AM
> >>> To: EPICS Tech Talk
> >>> Subject: EPICS on OS X Lion -- C++ problem
> >>>
> >>> Downloaded and installed OS X Lion and the latest version of Xcode on
> my
> >>> laptop machine. Attempting to build EPICS results in:
> >>> /usr/bin/c++ -c -DUNIX -Ddarwin -O3 -g -Wall
> -
> >>> arch i386 -fno-common -fPIC -MMD -I. -I../O.Common -I. -I.. -
> >>> I../../../include/os/Darwin -I../../../include -
> I/opt/local/include
> >>> -I/sw/include ../udpiiu.cpp
> >>> ../udpiiu.cpp:1391: error: generic thunk code fails for method
> 'virtual
> >>> int udpiiu::printFormated(epicsGuard<epicsMutex>&, const char*, ...)'
> >>> which uses '...'
> >>>
> >>> Suggestions from C++ experts?
> >>> Maybe I should be trying to build with clang instead of gcc?
> >>> --
> >>> Eric Norum
> >>> [email protected]
> >>>
> >>>
> >>
> >>
> >>
> >
- References:
- EPICS on OS X Lion -- C++ problem Eric Norum
- RE: EPICS on OS X Lion -- C++ problem Jeff Hill
- Navigate by Date:
- Prev:
compile epics-base on cygwin-x86 as dynmaical lib Wang Xiaoqiang
- Next:
RE: EPICS on OS X Lion -- C++ problem Jeff Hill
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: EPICS on OS X Lion -- C++ problem Jeff Hill
- Next:
Re: EPICS on OS X Lion -- C++ problem Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|