* Re: [porting-dev] So it Compiles, what does ./setup create?
[not found] ` <200303302058.02273.kevin.hendricks@sympatico.ca>
@ 2003-04-02 11:34 ` U. George
[not found] ` <200304020756.41030.kevin.hendricks@sympatico.ca>
0 siblings, 1 reply; 8+ messages in thread
From: U. George @ 2003-04-02 11:34 UTC (permalink / raw)
Cc: dev, axp-list
It appears that a throw() from the program setup.bin:
1131 throw InvalidRegistryException(
reason.makeStringAndClear() ,
Reference< XInterface >() );
causes the C++3 ( C++3 bec RH7.2/linux/alpha comes with c++ defaulting
( as well as libs ) to a pre 3 release. I had to manually install c++3 )
runtime to bomb.
The throw appears to be a correct response to the missing
/tmp/sv004.tmp/uno_writerdb.rdb file.
It appears that this is the first throw(). Are there any tests that I
can use to TEST the throw() mechanism for c++3 ( as opposed to not
testing the c++ throw()
A "ldd -r setup.bin" does not report any missing symbols.
#0 0x2000223ad78 in kill () from /lib/libc.so.6.1
#1 0x20002000cf8 in raise (sig=6) at signals.c:65
#2 0x2000223c990 in abort () at ../sysdeps/generic/abort.c:88
#3 0x2000246bd08 in uw_init_context_1 () from /lib/libgcc_s.so.1
#4 0x2000246c6c8 in _Unwind_RaiseException () from /lib/libgcc_s.so.1
#5 0x20002429cc8 in __cxa_throw (obj=0x12007bfe0, tinfo=0x8,
dest=0x20002454014 <get_globals_init_once()::once>)
at ../../../../libstdc++-v3/libsupc++/eh_throw.cc:72
#6 0x2000299e454 in stoc_simreg::SimpleRegistryImpl::open(rtl::OUString
const&, unsigned char, unsigned char) (this=0x200028afae0,
rURL=@0x11fffe1a8,
bReadOnly=0 '\000', bCreate=0 '\000')
at
/mnt/sdb4/OpenOffice/oo_1.0.2_src/stoc/source/simpleregistry/simpleregistry.cxx:1131
(More stack frames follow...)
Kevin B. Hendricks wrote:
> Hi,
>
> The setup did not complete. The progress bar is shown when a partial
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [porting-dev] So it Compiles, what does ./setup create?
[not found] ` <200304020756.41030.kevin.hendricks@sympatico.ca>
@ 2003-04-02 13:43 ` U. George
0 siblings, 0 replies; 8+ messages in thread
From: U. George @ 2003-04-02 13:43 UTC (permalink / raw)
To: Kevin B. Hendricks; +Cc: dev, axp-list
I could follow the "throw()" on an i386, But the i386 strace suggests
that "sv004.tmp/uno_writerdb.rdb" is not there at install. It then
selects "setup_services.rdb" (maybe?) as the alternate?
ie:
open("/tmp/sv001.tmp/uno_writerdb.rdb", O_RDWR) = -1 ENOENT (No such
file or directory)
brk(0x8093000) = 0x8093000
open("/tmp/sv001.tmp/setup_services.rdb", O_RDONLY) = 5
I Do not know if throw() was (or is suppose to be ) thrown inbetween the
2 opens, but on the alpha the first throw() nukes the c++3 library.
how many ways can I say :-{
Kevin B. Hendricks wrote:
> Hi,
>
> Is that throw expected to be caught in higer frames? Can you examine the
> source of the higer frames to see if it should have caught this exception
> and tried another rdb name to find the right registry file.
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [porting-dev] So it Compiles, what does ./setup create?
[not found] ` <200304022152.34067.kevin.hendricks@sympatico.ca>
@ 2003-04-03 3:15 ` U. George
0 siblings, 0 replies; 8+ messages in thread
From: U. George @ 2003-04-03 3:15 UTC (permalink / raw)
To: Kevin B. Hendricks, axp-list
Ok:
from gcc/unwind-dw2.c:
It appears that this routine is looking for some marker on the stack
from all the call frames. It does not find it, so it (silently) aborts.
a real bummer.
static void
uw_init_context_1 (struct _Unwind_Context *context,
void *outer_cfa, void *outer_ra)
{
void *ra = __builtin_extract_return_addr (__builtin_return_address (0));
_Unwind_FrameState fs;
memset (context, 0, sizeof (struct _Unwind_Context));
context->ra = ra;
if (uw_frame_state_for (context, &fs) != _URC_NO_REASON)
abort (); <============ABORTS here
/* Force the frame state to use the known cfa value. */
context->cfa = outer_cfa;
fs.cfa_how = CFA_REG_OFFSET;
fs.cfa_reg = 0;
fs.cfa_offset = 0;
Kevin B. Hendricks wrote:
> Hi,
>
> I don't know Alpha asm at all so this doesn't tell me anything
> unfortunately.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [porting-dev] So it Compiles, what does ./setup create?
[not found] ` <1049501910.14199.3.camel@gandalf.foskey.org>
@ 2003-04-05 1:12 ` U. George
2003-04-05 3:30 ` Kelledin
0 siblings, 1 reply; 8+ messages in thread
From: U. George @ 2003-04-05 1:12 UTC (permalink / raw)
To: dev; +Cc: axp-list
It appears that you are unfamiliar with RH7.2 & ALPHA.
The standard for gcc & g++ compilers on this last ( ie RH is not
making any more ALPHA iso's ) release:
1) gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-102)
2) gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-102) ( very
interesting for g++ -v )
g++3 yields:
1) gcc version 3.0.4 (Red Hat Linux 7.2 3.0.4-1)
One has to manually ( as I did ) install the g++3 compiler in order to
begin building the OO src. My impression is that the g++3 is not a
really supported product for the RH7.2/ALPHA release ( ergo its somewhat
experimental ). This also goes with the gcc3 compiler. You take your
poison -- I gotta take g++3, its not necessarily so with the "C" component.
Time will tell if I can present a mix of gcc & g++3 objects to the
linker ( whats another day in the life of this build ;-} ). I might
agree if the mix was with g++ & g++3 that these objects will cause no
end of grief, but I'd still like to believe that "C" is still "simple &
stupid" enough to mix gcc & gcc3 at whim.
Ken Foskey wrote:
> On Sat, 2003-04-05 at 02:10, U. George wrote:
>
>>Well ( from LinuxAlphaEnv.Set.sh )
>>CC="gcc"
>>CXX="g++3"
>>LINK="gcc"
>>
>>Now i use LINK="gcc3" . I dont think the gcc compiler (should) care
>>about much of anything. The libs used for linking is something all
>>together different. I can be wrong, but i'll see ( albeit not so soon! )
>
>
> Most of my early problems were with mixing compilers like this. STLport
> compiled with gcc and linked with gcc-3.0 caused me no end of grief. I
> beleive these have all been solved but check your logs.
>
> You need to be consistent with your compiler versions. The libraries
> include pathes are different with versions therefore you will pull
> incorrect library versions.
>
> Finally if you link with g++ then you run on a platform without you
> particular release of the compiler setup will fail. It will work fine
> for your testing and if that is strategy number 1 then work with this
> and park the problem to be solved later.
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [porting-dev] So it Compiles, what does ./setup create?
2003-04-05 1:12 ` U. George
@ 2003-04-05 3:30 ` Kelledin
2003-04-05 10:36 ` U. George
0 siblings, 1 reply; 8+ messages in thread
From: Kelledin @ 2003-04-05 3:30 UTC (permalink / raw)
To: axp-list
On Friday 04 April 2003 07:12 pm, U. George wrote:
> Time will
> tell if I can present a mix of gcc & g++3 objects to the
> linker ( whats another day in the life of this build ;-} ). I
> might agree if the mix was with g++ & g++3 that these objects
> will cause no end of grief, but I'd still like to believe that
> "C" is still "simple & stupid" enough to mix gcc & gcc3 at
> whim.
I would say not. I've already seen that mixing gcc2 and gcc3 for
kernels and kernel modules leads to rapid oopses. I'd suspect
trying to link mixed relocatables from gcc2 and gcc3 would be
problematic in userland as well.
I _do_ know that recent binutils (say 2.13.x) can function as a
linker backend to both gcc2 and gcc3. Mixing binaries and
shared objects is also not a problem, as long as the libstdc++
ABI doesn't get dragged into it--gcc3 apparently just made
things incompatible up to the relocatable level.
--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [porting-dev] So it Compiles, what does ./setup create?
2003-04-05 3:30 ` Kelledin
@ 2003-04-05 10:36 ` U. George
2003-04-05 21:37 ` Kelledin
0 siblings, 1 reply; 8+ messages in thread
From: U. George @ 2003-04-05 10:36 UTC (permalink / raw)
To: axp-list
Ahh, but do u know why they are incompatable? Maybe a compiler defect?
Anyway, if this were true, then there is no real need to install the
gcc3 ( et al ) product on the ALPHA. Unless, or course you remove all
things built with gcc2, which in case of this RH7.2/ALPHA release whould
just about mean everything. Or somehow have fenced off areas, one for
all things built with gcc2, all other things built with gcc3.
Kelledin wrote:
> On Friday 04 April 2003 07:12 pm, U. George wrote:
>
>
>
> I would say not. I've already seen that mixing gcc2 and gcc3 for
> kernels and kernel modules leads to rapid oopses. I'd suspect
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [porting-dev] So it Compiles, what does ./setup create?
2003-04-05 21:37 ` Kelledin
@ 2003-04-05 21:19 ` U. George
0 siblings, 0 replies; 8+ messages in thread
From: U. George @ 2003-04-05 21:19 UTC (permalink / raw)
To: axp-list
Unfortunately, Life here on RH7.2/ALPHA is just as what is given. "C" is
2.96. You want version 3, then u install it yourself. If you want more (
ie latest & greatest ) than what RH7.2/ALPHA offers, then you have to
look elsewhere ( and again you are incompatable with the RH7.2/ALPHA
distribution ).
All, in all, I wont know anything 'Till i get at least a port of
OpenOffice Done. It takes some 24+hours to compile ( once all the
initial porting work is done ). Thusfar, with only some 18 more hours to
go, I will try again to see if the abort from a c++ throw() has been
resolved.
Kelledin wrote:
> On Saturday 05 April 2003 04:36 am, U. George wrote:
>
>>Ahh, but do u know why they are incompatable? Maybe a compiler
>>defect?
>
>
> Well, gcc 3.x (specifically, somewhere around gcc-3.1.1) started
> using some new relocatable symbol types on Alpha (17 and 18,
> R_ALPHA_GPRELHIGH and R_ALPHA_GPRELLOW respectively). There are
> probably a few other changes as well (not just Alpha-specific)
> due to new features, rather than compiler defects.
>
>
>>Anyway, if this were true, then there is no real need to
>>install the gcc3 ( et al ) product on the ALPHA. Unless, or
>>course you remove all things built with gcc2, which in case of
>>this RH7.2/ALPHA release whould just about mean everything. Or
>>somehow have fenced off areas, one for all things built with
>>gcc2, all other things built with gcc3.
>
>
> Well, as I mentioned, binaries and shared libraries produced by
> gcc2 or gcc3 can be mixed without problems, as long as libstdc++
> doesn't enter into the picture. That's pretty much all that
> matters at run-time, except for rare packages like XFree86 and
> the kernel that load .o files at run-time.
>
> The deal-breaker is libstdc++. This library represents the C++
> ABI, which didn't really approach finalization until gcc-3.2.
> gcc 2.x had a pretty consistent C++ ABI throughout its life, but
> it was based on the incomplete draft C++ standard of its time,
> rather than the finalized ANSI C++ standard we have now. The
> libstdc++ ABI had to make backwards-incompatible changes to meet
> the requirements of the finalized standard; most of those
> changes started with gcc-3.0 and ended with gcc-3.2.
>
> For that reason, it's advantageous for a distro to provide at
> least the libstdc++ shared libraries from both gcc2 and gcc3,
> just to satisfy precompiled C++ apps. Mixing gcc2-compiled C++
> apps with gcc3-compiled C++ apps could work out 100% fine or
> could cause some pretty interesting problems. Usually any
> problems it causes are not that destructive--just run-time link
> failures that prevent a specific app from running at all.
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [porting-dev] So it Compiles, what does ./setup create?
2003-04-05 10:36 ` U. George
@ 2003-04-05 21:37 ` Kelledin
2003-04-05 21:19 ` U. George
0 siblings, 1 reply; 8+ messages in thread
From: Kelledin @ 2003-04-05 21:37 UTC (permalink / raw)
To: axp-list
On Saturday 05 April 2003 04:36 am, U. George wrote:
> Ahh, but do u know why they are incompatable? Maybe a compiler
> defect?
Well, gcc 3.x (specifically, somewhere around gcc-3.1.1) started
using some new relocatable symbol types on Alpha (17 and 18,
R_ALPHA_GPRELHIGH and R_ALPHA_GPRELLOW respectively). There are
probably a few other changes as well (not just Alpha-specific)
due to new features, rather than compiler defects.
> Anyway, if this were true, then there is no real need to
> install the gcc3 ( et al ) product on the ALPHA. Unless, or
> course you remove all things built with gcc2, which in case of
> this RH7.2/ALPHA release whould just about mean everything. Or
> somehow have fenced off areas, one for all things built with
> gcc2, all other things built with gcc3.
Well, as I mentioned, binaries and shared libraries produced by
gcc2 or gcc3 can be mixed without problems, as long as libstdc++
doesn't enter into the picture. That's pretty much all that
matters at run-time, except for rare packages like XFree86 and
the kernel that load .o files at run-time.
The deal-breaker is libstdc++. This library represents the C++
ABI, which didn't really approach finalization until gcc-3.2.
gcc 2.x had a pretty consistent C++ ABI throughout its life, but
it was based on the incomplete draft C++ standard of its time,
rather than the finalized ANSI C++ standard we have now. The
libstdc++ ABI had to make backwards-incompatible changes to meet
the requirements of the finalized standard; most of those
changes started with gcc-3.0 and ended with gcc-3.2.
For that reason, it's advantageous for a distro to provide at
least the libstdc++ shared libraries from both gcc2 and gcc3,
just to satisfy precompiled C++ apps. Mixing gcc2-compiled C++
apps with gcc3-compiled C++ apps could work out 100% fine or
could cause some pretty interesting problems. Usually any
problems it causes are not that destructive--just run-time link
failures that prevent a specific app from running at all.
--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-04-05 21:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.NEB.4.21.0303301139480.1556-100000@polonius.bigw.org>
[not found] ` <3E878A9A.1000708@voicenet.com>
[not found] ` <200303302058.02273.kevin.hendricks@sympatico.ca>
2003-04-02 11:34 ` [porting-dev] So it Compiles, what does ./setup create? U. George
[not found] ` <200304020756.41030.kevin.hendricks@sympatico.ca>
2003-04-02 13:43 ` U. George
[not found] ` <200304021912.40641.kevin.hendricks@sympatico.ca>
[not found] ` <3E8B997E.1000401@voicenet.com>
[not found] ` <200304022152.34067.kevin.hendricks@sympatico.ca>
2003-04-03 3:15 ` U. George
[not found] ` <3E8DA95D.5060308@voicenet.com>
[not found] ` <200304041058.46442.kevin.hendricks@sympatico.ca>
[not found] ` <3E8DAE64.8000300@voicenet.com>
[not found] ` <1049501910.14199.3.camel@gandalf.foskey.org>
2003-04-05 1:12 ` U. George
2003-04-05 3:30 ` Kelledin
2003-04-05 10:36 ` U. George
2003-04-05 21:37 ` Kelledin
2003-04-05 21:19 ` U. George
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox