Bug#635923: ghdl: FTBFS: features.h:323:26: error: bits/predefs.h: No such file or directory

2012-05-10 Thread Artur Rona

tags 635923 patch
thanks



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#635923: ghdl: FTBFS: features.h:323:26: error: bits/predefs.h: No such file, or directory

2012-04-22 Thread Artur Rona

Tags: patch

Hello,

In Ubuntu is a patch to fix multiarch already. I'm attaching it. Please 
consider apply it.


--
Pozdrawiam / Kind regards,
Artur Rona

diff -u ghdl-0.29+gcc4.3.4+dfsg/debian/rules 
ghdl-0.29+gcc4.3.4+dfsg/debian/rules
--- ghdl-0.29+gcc4.3.4+dfsg/debian/rules
+++ ghdl-0.29+gcc4.3.4+dfsg/debian/rules
@@ -31,19 +31,19 @@
touch setup-stamp
 
 configure: configure-stamp
-configure-stamp: setup
+configure-stamp: setup-stamp
dh_testdir
(cd gcc/build  CC=$(CC) CFLAGS=$(CFLAGS) CPPFLAGS= LDFLAGS= 
FFLAGS= CXXFLAGS= ../configure $(GCC_CONFIGURE_OPTS))
touch configure-stamp
 
 build: build-stamp
-build-stamp: configure
+build-stamp: configure-stamp
dh_testdir
CC=$(CC) CFLAGS=$(CFLAGS) CPPFLAGS= LDFLAGS= FFLAGS= 
CXXFLAGS= $(MAKE) -C gcc/build
touch build-stamp
 
 install: install-stamp
-install-stamp: build
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_prep
diff -u ghdl-0.29+gcc4.3.4+dfsg/gcc/gcc/Makefile.in 
ghdl-0.29+gcc4.3.4+dfsg/gcc/gcc/Makefile.in
--- ghdl-0.29+gcc4.3.4+dfsg/gcc/gcc/Makefile.in
+++ ghdl-0.29+gcc4.3.4+dfsg/gcc/gcc/Makefile.in
@@ -281,6 +281,8 @@
 GMPLIBS = @GMPLIBS@
 GMPINC = @GMPINC@
 
+with_float = @with_float@
+
 CPPLIB = ../libcpp/libcpp.a
 CPPINC = -I$(srcdir)/../libcpp/include
 
@@ -1667,10 +1669,11 @@
$(MULTILIB_EXTRA_OPTS) \
$(MULTILIB_EXCLUSIONS) \
$(MULTILIB_OSDIRNAMES) \
+   $(MULTIARCH_DIRNAME) \
@enable_multilib@ \
 tmp-mlib.h; \
else \
- $(SHELL) $(srcdir)/genmultilib '' '' '' '' '' '' '' no \
+ $(SHELL) $(srcdir)/genmultilib '' '' '' '' '' '' '' 
$(MULTIARCH_DIRNAME) no \
 tmp-mlib.h; \
fi
$(SHELL) $(srcdir)/../move-if-change tmp-mlib.h multilib.h
only in patch2:
unchanged:
--- ghdl-0.29+gcc4.3.4+dfsg.orig/gcc/gcc/common.opt
+++ ghdl-0.29+gcc4.3.4+dfsg/gcc/gcc/common.opt
@@ -1275,6 +1275,10 @@
 Common JoinedOrMissing Negative(gcoff)
 Generate debug information in extended XCOFF format
 
+imultiarch
+Common Joined Separate RejectDriver Var(imultiarch) Init(0)
+-imultiarch dir  Set dir to be the multiarch include subdirectory
+
 o
 Common Joined Separate
 -o file  Place output into file
only in patch2:
unchanged:
--- ghdl-0.29+gcc4.3.4+dfsg.orig/gcc/gcc/c-incpath.c
+++ ghdl-0.29+gcc4.3.4+dfsg/gcc/gcc/c-incpath.c
@@ -148,8 +148,14 @@
  if (!strncmp (p-fname, cpp_GCC_INCLUDE_DIR, len))
{
  char *str = concat (iprefix, p-fname + len, NULL);
- if (p-multilib  imultilib)
+ if (p-multilib == 1  imultilib)
str = concat (str, dir_separator_str, imultilib, NULL);
+ else if (p-multilib == 2)
+   {
+ if (!imultiarch)
+   continue;
+ str = concat (str, dir_separator_str, imultiarch, NULL);
+   }
  add_path (str, SYSTEM, p-cxx_aware, false);
}
}
@@ -193,8 +199,14 @@
  else
str = update_path (p-fname, p-component);
 
- if (p-multilib  imultilib)
+ if (p-multilib == 1  imultilib)
str = concat (str, dir_separator_str, imultilib, NULL);
+ else if (p-multilib == 2)
+   {
+ if (!imultiarch)
+   continue;
+ str = concat (str, dir_separator_str, imultiarch, NULL);
+   }
 
  add_path (str, SYSTEM, p-cxx_aware, false);
}
only in patch2:
unchanged:
--- ghdl-0.29+gcc4.3.4+dfsg.orig/gcc/gcc/cppdefault.h
+++ ghdl-0.29+gcc4.3.4+dfsg/gcc/gcc/cppdefault.h
@@ -43,9 +43,11 @@
   C++.  */
   const char add_sysroot;  /* FNAME should be prefixed by
   cpp_SYSROOT.  */
-  const char multilib; /* FNAME should have the multilib path
-  specified with -imultilib
-  appended.  */
+  const char multilib; /* FNAME should have appended
+  - the multilib path specified with -imultilib
+when 1 is passed,
+  - the multiarch path specified with
+-imultiarch, when 2 is passed.  */
 };
 
 extern const struct default_include cpp_include_defaults[];
only in patch2:
unchanged:
--- ghdl-0.29+gcc4.3.4+dfsg.orig/gcc/gcc/genmultilib
+++ ghdl-0.29+gcc4.3.4+dfsg/gcc/gcc/genmultilib
@@ -73,6 +73,8 @@
 # the os directory names are used exclusively.  Use the mapping when
 # there is no one-to-one equivalence between GCC levels and the OS.
 
+# The optional eight argument is the multiarch name.
+
 # The last option should be yes if multilibs are enabled.  If it is not
 # yes, all GCC multilib dir names will be ..
 
@@ -121,7 +123,8 @@
 extra=$5
 exclusions=$6
 

Bug#635923: ghdl: FTBFS: features.h:323:26: error: bits/predefs.h: No such file or directory

2011-07-29 Thread Lucas Nussbaum
Source: ghdl
Version: 0.29+gcc4.3.4+dfsg-1
Severity: serious
Tags: wheezy sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20110727 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
 /build/ghdl-fbKkNL/ghdl-0.29+gcc4.3.4+dfsg/gcc/build/./gcc/xgcc 
 -B/build/ghdl-fbKkNL/ghdl-0.29+gcc4.3.4+dfsg/gcc/build/./gcc/ 
 -B/usr/lib/ghdl/x86_64-linux-gnu/bin/ -B/usr/lib/ghdl/x86_64-linux-gnu/lib/ 
 -isystem /usr/lib/ghdl/x86_64-linux-gnu/include -isystem 
 /usr/lib/ghdl/x86_64-linux-gnu/sys-include -O2 -g -O -O2  -O2 -g -O   
 -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../.././gcc 
 -I../../../libgcc -I../../../libgcc/. -I../../../libgcc/../gcc 
 -I../../../libgcc/../include -I../../../libgcc/config/libbid 
 -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o _muldi3.o -MT 
 _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c 
 ../../../libgcc/../gcc/libgcc2.c \
 
 In file included from /usr/include/stdio.h:28,
  from ../../../libgcc/../gcc/tsystem.h:90,
  from ../../../libgcc/../gcc/libgcc2.c:33:
 /usr/include/features.h:323:26: error: bits/predefs.h: No such file or 
 directory
 /usr/include/features.h:356:25: error: sys/cdefs.h: No such file or directory
 /usr/include/features.h:388:23: error: gnu/stubs.h: No such file or directory
[...]
 ../../../libgcc/../gcc/libgcc2.h:457: error: storage class specified for 
 parameter '__parityti2'
 ../../../libgcc/../gcc/libgcc2.h:457: warning: parameter names (without 
 types) in function declaration
 ../../../libgcc/../gcc/libgcc2.h:460: error: storage class specified for 
 parameter '__enable_execute_stack'
 ../../../libgcc/../gcc/libgcc2.h:463: error: expected declaration specifiers 
 before '#pragma'
 ../../../libgcc/../gcc/libgcc2.c:2223: error: old-style parameter 
 declarations in prototyped function definition
 ../../../libgcc/../gcc/libgcc2.c:566: error: expected '{' at end of input
 make[3]: *** [_muldi3.o] Error 1

The full build log is available from:
   
http://people.debian.org/~lucas/logs/2011/07/27/ghdl_0.29+gcc4.3.4+dfsg-1_lsid64.buildlog

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.

-- 
| Lucas Nussbaum
| lu...@lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lu...@nussbaum.fr GPG: 1024D/023B3F4F |



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org