There was a change to the way that siginfo is defined. I was able to build
on Fedora 19 (gcc 4.8.3) with the following change:
Index: osprey-gcc-4.2.0/gcc/config/i386/linux-unwind.h
===================================================================
--- osprey-gcc-4.2.0/gcc/config/i386/linux-unwind.h (revision 4114)
+++ osprey-gcc-4.2.0/gcc/config/i386/linux-unwind.h (working copy)
@@ -137,9 +137,17 @@
{
struct rt_sigframe {
int sig;
+#ifdef __have_siginfo_t
+ siginfo_t *pinfo;
+#else
struct siginfo *pinfo;
+#endif
void *puc;
+#ifdef __have_siginfo_t
+ siginfo_t info;
+#else
struct siginfo info;
+#endif
struct ucontext uc;
} *rt_ = context->cfa;
/* The void * cast is necessary to avoid an aliasing warning.
If it helps, I can check that in to the trunk as well.
-David
On Thu, Aug 21, 2014 at 11:07 PM, Jian-Xin Lai <laij...@gmail.com> wrote:
> siginfo should be defined in /usr/include/bits/siginfo.h. I don't know if
> the compiler can be built on Ubuntu Kylin successfully. Usually we uses
> Redhat(Fedora), SuSE(OpenSuse) or Debian.
>
>
> 2014-08-22 12:09 GMT+08:00 Nancy <nancydream...@gmail.com>:
>
> Hi Jian-Xin,
>>
>> > Another suggestion, you may try the top of trunk by checking out the
>> code
>> > from SVN repository directly:
>> > svn co http://svn.open64.net/svnroot/open64/trunk
>>
>> I have tried the SVN version:
>> make[6]:正在离开目录
>> `/home/nancy/work/build-open64-svn/osprey-gcc-4.2.0/host-unknown/gcc'
>> /home/nancy/work/build-open64-svn/osprey-gcc-4.2.0/host-unknown/gcc/xgcc
>> -B/home/nancy/work/build-open64-svn/osprey-gcc-4.2.0/host-unknown/gcc/
>> -m32
>> -B/home/nancy/toolchains/open64/open64-gcc-4.2.0/x86_64-redhat-linux/bin/
>> -B/home/nancy/toolchains/open64/open64-gcc-4.2.0/x86_64-redhat-linux/lib/
>> -isystem
>> /home/nancy/toolchains/open64/open64-gcc-4.2.0/x86_64-redhat-linux/include
>> -isystem
>> /home/nancy/toolchains/open64/open64-gcc-4.2.0/x86_64-redhat-linux/sys-include
>> -O2 -O2 -O0 -g -DIs_True_On -DTARG_X8664 -DIN_GCC -W -Wall
>> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
>> -Wold-style-definition -isystem ./include -fPIC -g
>> -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I.
>> -I../../../../open64-svn/./osprey-gcc-4.2.0/gcc
>> -I../../../../open64-svn/./osprey-gcc-4.2.0/gcc/.
>> -I../../../../open64-svn/./osprey-gcc-4.2.0/gcc/../include
>> -I../../../../open64-svn/./osprey-gcc-4.2.0/gcc/../../libspin
>> -I../../../../open64-svn/./osprey-gcc-4.2.0/gcc/../libcpp/include
>> -I../../../../open64-svn/./osprey-gcc-4.2.0/gcc/../libdecnumber
>> -I../libdecnumber -fexceptions -fvisibility=hidden -DHIDE_EXPORTS -c
>> ../../../../open64-svn/./osprey-gcc-4.2.0/gcc/unwind-dw2.c -o
>> libgcc/./unwind-dw2.o
>> In file included from
>> ../../../../open64-svn/./osprey-gcc-4.2.0/gcc/unwind-dw2.c:338:
>> ../../../../open64-svn/./osprey-gcc-4.2.0/gcc/config/i386/linux-unwind.h:
>> In function 'x86_fallback_frame_state':
>>
>> ../../../../open64-svn/./osprey-gcc-4.2.0/gcc/config/i386/linux-unwind.h:142:
>> error: field 'info' has incomplete type
>> make[5]: *** [libgcc/./unwind-dw2.o] 错误 1
>> make[5]:正在离开目录
>> `/home/nancy/work/build-open64-svn/osprey-gcc-4.2.0/host-unknown/gcc'
>> make[4]: *** [stmp-multilib] 错误 2
>> make[4]:正在离开目录
>> `/home/nancy/work/build-open64-svn/osprey-gcc-4.2.0/host-unknown/gcc'
>> make[3]: *** [all-gcc] 错误 2
>> make[3]:正在离开目录 `/home/nancy/work/build-open64-svn/osprey-gcc-4.2.0'
>> make[2]: *** [all] 错误 2
>> make[2]:正在离开目录 `/home/nancy/work/build-open64-svn/osprey-gcc-4.2.0'
>> make[1]: *** [cc1] 错误 2
>> make[1]:正在离开目录 `/home/nancy/work/build-open64-svn'
>> make: *** [build] 错误 2
>>
>>
>> Seems the compatibility issue of linux kernel. What's your working
>> linux distribution?
>>
>>
>> --
>> Best Regards,
>> Yu Rong Tan
>>
>
>
>
> --
> Regards,
> Lai Jian-Xin
>
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel