Bug#674352: lv2proc: FTBFS: gcc: error: unrecognized command line option '-V'

Lucas Nussbaum lucas at lucas-nussbaum.net
Thu May 24 09:32:58 UTC 2012


Source: lv2proc
Version: 0.4.0-3
Severity: serious
Tags: wheezy sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20120524 qa-ftbfs
Justification: FTBFS on amd64

Hi,

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

Relevant part:
> gcc version 4.7.0 (Debian 4.7.0-9) 
> configure:3001: $? = 0
> configure:2990: gcc -V >&5
> gcc: error: unrecognized command line option '-V'
> gcc: fatal error: no input files
> compilation terminated.
> configure:3001: $? = 4
> configure:2990: gcc -qversion >&5
> gcc: error: unrecognized command line option '-qversion'
> gcc: fatal error: no input files
> compilation terminated.
> configure:3001: $? = 4
> configure:3021: checking whether the C compiler works
> configure:3043: gcc   -Wl,--as-needed conftest.c  >&5
> configure:3047: $? = 0
> configure:3095: result: yes
> configure:3098: checking for C compiler default output file name
> configure:3100: result: a.out
> configure:3106: checking for suffix of executables
> configure:3113: gcc -o conftest   -Wl,--as-needed conftest.c  >&5
> configure:3117: $? = 0
> configure:3139: result: 
> configure:3161: checking whether we are cross compiling
> configure:3169: gcc -o conftest   -Wl,--as-needed conftest.c  >&5
> configure:3173: $? = 0
> configure:3180: ./conftest
> configure:3184: $? = 0
> configure:3199: result: no
> configure:3204: checking for suffix of object files
> configure:3226: gcc -c   conftest.c >&5
> configure:3230: $? = 0
> configure:3251: result: o
> configure:3255: checking whether we are using the GNU C compiler
> configure:3274: gcc -c   conftest.c >&5
> configure:3274: $? = 0
> configure:3283: result: yes
> configure:3292: checking whether gcc accepts -g
> configure:3312: gcc -c -g  conftest.c >&5
> configure:3312: $? = 0
> configure:3353: result: yes
> configure:3370: checking for gcc option to accept ISO C89
> configure:3433: gcc  -c -g -O2  conftest.c >&5
> configure:3433: $? = 0
> configure:3446: result: none needed
> configure:3468: checking dependency style of gcc
> configure:3579: result: none
> configure:3594: checking for gcc option to accept ISO C99
> configure:3743: gcc  -c -g -O2  conftest.c >&5
> conftest.c:61:29: error: expected ';', ',' or ')' before 'text'
> conftest.c: In function 'main':
> conftest.c:115:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar'
> conftest.c:115:18: error: 'newvar' undeclared (first use in this function)
> conftest.c:115:18: note: each undeclared identifier is reported only once for each function it appears in
> conftest.c:125:3: error: 'for' loop initial declarations are only allowed in C99 mode
> conftest.c:125:3: note: use option -std=c99 or -std=gnu99 to compile your code
> configure:3743: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME "LV2proc"
> | #define PACKAGE_TARNAME "lv2proc"
> | #define PACKAGE_VERSION "0.4.0"
> | #define PACKAGE_STRING "LV2proc 0.4.0"
> | #define PACKAGE_BUGREPORT "zanga.mail at gmail.com"
> | #define PACKAGE_URL ""
> | #define PACKAGE "lv2proc"
> | #define VERSION "0.4.0"
> | /* end confdefs.h.  */
> | #include <stdarg.h>
> | #include <stdbool.h>
> | #include <stdlib.h>
> | #include <wchar.h>
> | #include <stdio.h>
> | 
> | // Check varargs macros.  These examples are taken from C99 6.10.3.5.
> | #define debug(...) fprintf (stderr, __VA_ARGS__)
> | #define showlist(...) puts (#__VA_ARGS__)
> | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
> | static void
> | test_varargs_macros (void)
> | {
> |   int x = 1234;
> |   int y = 5678;
> |   debug ("Flag");
> |   debug ("X = %d\n", x);
> |   showlist (The first, second, and third items.);
> |   report (x>y, "x is %d but y is %d", x, y);
> | }
> | 
> | // Check long long types.
> | #define BIG64 18446744073709551615ull
> | #define BIG32 4294967295ul
> | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
> | #if !BIG_OK
> |   your preprocessor is broken;
> | #endif
> | #if BIG_OK
> | #else
> |   your preprocessor is broken;
> | #endif
> | static long long int bignum = -9223372036854775807LL;
> | static unsigned long long int ubignum = BIG64;
> | 
> | struct incomplete_array
> | {
> |   int datasize;
> |   double data[];
> | };
> | 
> | struct named_init {
> |   int number;
> |   const wchar_t *name;
> |   double average;
> | };
> | 
> | typedef const char *ccp;
> | 
> | static inline int
> | test_restrict (ccp restrict text)
> | {
> |   // See if C++-style comments work.
> |   // Iterate through items via the restricted pointer.
> |   // Also check for declarations in for loops.
> |   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
> |     continue;
> |   return 0;
> | }
> | 
> | // Check varargs and va_copy.
> | static void
> | test_varargs (const char *format, ...)
> | {
> |   va_list args;
> |   va_start (args, format);
> |   va_list args_copy;
> |   va_copy (args_copy, args);
> | 
> |   const char *str;
> |   int number;
> |   float fnumber;
> | 
> |   while (*format)
> |     {
> |       switch (*format++)
> | 	{
> | 	case 's': // string
> | 	  str = va_arg (args_copy, const char *);
> | 	  break;
> | 	case 'd': // int
> | 	  number = va_arg (args_copy, int);
> | 	  break;
> | 	case 'f': // float
> | 	  fnumber = va_arg (args_copy, double);
> | 	  break;
> | 	default:
> | 	  break;
> | 	}
> |     }
> |   va_end (args_copy);
> |   va_end (args);
> | }
> | 
> | int
> | main ()
> | {
> | 
> |   // Check bool.
> |   _Bool success = false;
> | 
> |   // Check restrict.
> |   if (test_restrict ("String literal") == 0)
> |     success = true;
> |   char *restrict newvar = "Another string";
> | 
> |   // Check varargs.
> dh_auto_configure: ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --libexecdir=${prefix}/lib/lv2proc --disable-maintainer-mode --disable-dependency-tracking returned exit code 1
> make: *** [build] Error 25

The full build log is available from:
   http://people.debian.org/~lucas/logs/2012/05/24/lv2proc_0.4.0-3_unstable.log

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.





More information about the pkg-multimedia-maintainers mailing list