gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] GM2 66.4.0 on Arch Linux


From: Stefan Husmann
Subject: [Gm2] GM2 66.4.0 on Arch Linux
Date: Mon, 20 Nov 2017 18:00:40 +0100

Hello,

the build fails under Arch Linux x86_64 with the following message:

gcc-ranlib-6 libgcov.a
/home/haawda/paketierung/meine_Pakete/gm2/src/build-6.4.0/./gcc/xgcc 
-B/home/haawda/paketierung/meine_Pakete/gm2/src/build-6.4.0/./gcc/ 
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem 
/usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include  
  -g -O2 -O2  -g -O2 -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings 
-Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes 
-Wold-style-definition  -isystem ./include   -fpic -mlong-double-80 
-DUSE_ELF_SYMVER -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fpic 
-mlong-double-80 -DUSE_ELF_SYMVER -I. -I. -I../.././gcc 
-I../../../gcc-6.4.0+gm2-1.6.4/gm2/gcc-versionno/libgcc 
-I../../../gcc-6.4.0+gm2-1.6.4/gm2/gcc-versionno/libgcc/. 
-I../../../gcc-6.4.0+gm2-1.6.4/gm2/gcc-versionno/libgcc/../gcc 
-I../../../gcc-6.4.0+gm2-1.6.4/gm2/gcc-versionno/libgcc/../include 
-I../../../gcc-6.4.0+gm2-1.6.4/gm2/gcc-versionno/libgcc/config/libbid 
-DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS  -DUSE_TLS -o unwind-dw2.o -MT 
unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -c 
../../../gcc-6.4.0+gm2-1.6.4/gm2/gcc-versionno/libgcc/unwind-dw2.c 
-fvisibility=hidden -DHIDE_EXPORTS
In file included from 
../../../gcc-6.4.0+gm2-1.6.4/gm2/gcc-versionno/libgcc/unwind-dw2.c:401:0:
./md-unwind-support.h: In function 'x86_64_fallback_frame_state':
./md-unwind-support.h:65:47: error: dereferencing pointer to incomplete type 
'struct ucontext'
       sc = (struct sigcontext *) (void *) &uc_->uc_mcontext;
                                               ^~
make[3]: *** 
[../../../gcc-6.4.0+gm2-1.6.4/gm2/gcc-versionno/libgcc/shared-object.mk:14: 
unwind-dw2.o] Error 1
make[3]: Leaving directory 
'/home/haawda/paketierung/meine_Pakete/gm2/src/build-6.4.0/x86_64-pc-linux-gnu/libgcc'
make[2]: *** [Makefile:17406: all-stage1-target-libgcc] Error 2

To get that far I applied some patches:
diff -ur gcc-6.4.0+gm2-1.6.4.orig/gm2/gcc-versionno/gcc/plugin.h 
gcc-6.4.0+gm2-1.6.4.new/gm2/gcc-versionno/gcc/plugin.h
--- gcc-6.4.0+gm2-1.6.4.orig/gm2/gcc-versionno/gcc/plugin.h     2016-01-04 
15:30:50.000000000 +0100
+++ gcc-6.4.0+gm2-1.6.4.new/gm2/gcc-versionno/gcc/plugin.h      2017-10-21 
17:22:26.032158167 +0200
@@ -21,6 +21,7 @@
 #define PLUGIN_H
 
 #include "highlev-plugin-common.h"
+#include <dlfcn.h>
 
 /* Event names.  */
 enum plugin_event

diff -ur gcc-6.4.0+gm2-1.6.4.orig/gm2/gcc-versionno/libiberty/fibheap.c 
gcc-6.4.0+gm2-1.6.4.new/gm2/gcc-versionno/libiberty/fibheap.c
--- gcc-6.4.0+gm2-1.6.4.orig/gm2/gcc-versionno/libiberty/fibheap.c      
2017-10-21 13:06:52.340541409 +0200
+++ gcc-6.4.0+gm2-1.6.4.new/gm2/gcc-versionno/libiberty/fibheap.c       
2017-10-21 13:08:55.260068032 +0200
@@ -31,6 +31,7 @@
 #ifdef HAVE_STRING_H
 #include <string.h>
 #endif
+#include <limits.h>
 #include "libiberty.h"
 #include "fibheap.h"
 
diff -ur gcc-6.4.0+gm2-1.6.4.orig/gm2/gcc-versionno/libiberty/pex-unix.c 
gcc-6.4.0+gm2-1.6.4.new/gm2/gcc-versionno/libiberty/pex-unix.c
--- gcc-6.4.0+gm2-1.6.4.orig/gm2/gcc-versionno/libiberty/pex-unix.c     
2015-10-18 12:33:37.000000000 +0200
+++ gcc-6.4.0+gm2-1.6.4.new/gm2/gcc-versionno/libiberty/pex-unix.c      
2017-10-21 17:02:55.936911970 +0200
@@ -43,9 +43,8 @@
 
 #include <sys/types.h>
 
-#ifdef HAVE_FCNTL_H
 #include <fcntl.h>
-#endif
+
 #ifdef HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif

What can I do?

Best Regards

Stefan Husmann



reply via email to

[Prev in Thread] Current Thread [Next in Thread]