On Jun 11, 3:44 pm, "Dmitriy V'jukov" <
dvyu...@gmail.com> wrote:
Yes it is a bit old, but your web site does say, under supported
platforms, "GCC 3.4 and above, Linux, 32-bit".
>
> Second, I have a 64 bit Linux box running Red Hat el5 and g++ version
>
> > 4.1.2. It compiles, allbeit with the same 'deprecated' warning, but
> > when I run the executable it core dumps. gdb gives the stack trace
> > as...
>
> Please post command line that you use for compilation.
>
> Core was generated by `./smr'.
>
> > Program terminated with signal 11, Segmentation fault.
> > #0 0x0000000000402e15 in fiber_start_fnc (p=0xffffffffcaad94b0)
> > at ../../relacy/platform.hpp:182
> > 182 void (*volatile ufnc)(void*) = ctx->fnc;
> > (gdb) where
> > #0 0x0000000000402e15 in fiber_start_fnc (p=0xffffffffcaad94b0)
> > at ../../relacy/platform.hpp:182
> > #1 0x00000037ef241820 in ?? () from /lib64/libc.so.6
> > #2 0x0000000000000000 in ?? ()
>
> > As I said, any help would be appreciated.
>
> This p=0xffffffffcaad94b0 is definitely broken. Pointers are 48 bit on
> Intel64... It's either sign extended or negated or something like this...
> Do I make pointers from int's?..
>
> That "deprecated" warnings is OK :) Why they deprecate such a nice
> thing?... Well, perhaps, I need to remove it.
The compile command was:
g++ -g -o smr smr.cpp
I also have version 4.7.0 of g++ in the same 64 bit linux box. The
same compile command using that version fails as follows:
In file included from /export/home/lxdevws86/brianr/opt/lib/gcc/x86_64-
unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/backward/
strstream:52:0,
from ../../relacy/pch.hpp:39,
from stdafx.h:9,
from smr.cpp:1:
/export/home/lxdevws86/brianr/opt/lib/gcc/x86_64-unknown-linux-gnu/
4.7.0/../../../../include/c++/4.7.0/backward/backward_warning.h:33:2:
warning: #warning This file includes at least one deprecated or
antiquated header which may be removed without further notice at a
future date. Please use a non-deprecated interface with equivalent
functionality instead. For a listing of replacement headers and
interfaces, consult the file backward_warning.h. To disable this
warning use -Wno-deprecated. [-Wcpp]
In file included from ../../relacy/relacy.hpp:29:0,
from ../../relacy/relacy_std.hpp:17,
from smr.cpp:3:
../../relacy/stdlib/condition_variable.hpp:42:22: error: reference
'm_' cannot be declared 'mutable' [-fpermissive]
In file included from ../../relacy/relacy.hpp:33:0,
from ../../relacy/relacy_std.hpp:17,
from smr.cpp:3:
../../relacy/stdlib/windows.hpp: In instantiation of 'static void*
rl::win32_thread_helper<thread_fn_t>::thread(void*) [with thread_fn_t
= unsigned int (*)(void*)]':
../../relacy/stdlib/windows.hpp:361:102: required from here
../../relacy/stdlib/windows.hpp:325:53: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
--
Brian Raven