Debian Bug report logs - #598937
stlport5.2: FTBFS on armel: #error Weird WCHAR_MIN or WCHAR_MAX macro value.

version graph

Package: src:stlport5.2; Maintainer for src:stlport5.2 is Torsten Werner <twerner@debian.org>;

Reported by: Cyril Brulebois <kibi@debian.org>

Date: Sun, 3 Oct 2010 11:18:02 UTC

Severity: important

Tags: patch

Found in versions stlport5.2/5.2.1-5, stlport5.2/5.2.1-5.1

Fixed in version 5.2.1-5+rm

Done: Niels Thykier <niels@thykier.net>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, kibi@debian.org, Torsten Werner <twerner@debian.org>:
Bug#598937; Package src:stlport5.2. (Sun, 03 Oct 2010 11:18:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Cyril Brulebois <kibi@debian.org>:
New Bug report received and forwarded. Copy sent to kibi@debian.org, Torsten Werner <twerner@debian.org>. (Sun, 03 Oct 2010 11:18:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Cyril Brulebois <kibi@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: stlport5.2: FTBFS on armel: #error Weird WCHAR_MIN or WCHAR_MAX macro value.
Date: Sun, 03 Oct 2010 13:15:24 +0200
Source: stlport5.2
Version: 5.2.1-5
Severity: important
User: debian-arm@lists.debian.org
Usertags: eabi

Hi,

your package FTBFS on armel:
| c++ -pthread -fexceptions -O2 -g -Wall -fuse-cxa-atexit -fvisibility=hidden -g -O2 -g -Wall -O2  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../../stlport  -c -o obj/gcc/so/macro_checks.o ../../../test/unit/macro_checks.cpp
| ../../../test/unit/macro_checks.cpp:82:4: error: #error Weird WCHAR_MIN or WCHAR_MAX macro value.
| make[1]: *** [obj/gcc/so/macro_checks.o] Error 1

Full build logs:
  https://buildd.debian.org/status/package.php?p=stlport5.2

Mraw,
KiBi.




Information forwarded to debian-bugs-dist@lists.debian.org, Torsten Werner <twerner@debian.org>:
Bug#598937; Package src:stlport5.2. (Sat, 27 Nov 2010 10:06:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Konstantinos Margaritis <markos@genesi-usa.com>:
Extra info received and forwarded to list. Copy sent to Torsten Werner <twerner@debian.org>. (Sat, 27 Nov 2010 10:06:05 GMT) Full text and rfc822 format available.

Message #10 received at 598937@bugs.debian.org (full text, mbox):

From: Konstantinos Margaritis <markos@genesi-usa.com>
To: 598937@bugs.debian.org, debian-glibc@lists.debian.org
Subject: Re: stlport5.2: FTBFS on armel: #error Weird WCHAR_MIN or WCHAR_MAX macro value.
Date: Sat, 27 Nov 2010 12:04:19 +0200
Hi,

I got the same error in the armhf port. In more detail, the actual error is 
caused by the ambiguity in the definition of WCHAR_MAX.

On armel/armhf WCHAR_MAX is in fact defined in bits/wchar.h:

#define __WCHAR_MAX	( (wchar_t) - 1 )

whereas on amd64 it's defined explicitly as:

/* Use GCC's __WCHAR_MAX__ when available.  */
#ifdef __WCHAR_MAX__
#define __WCHAR_MAX     __WCHAR_MAX__
#else
#define __WCHAR_MAX     (2147483647)
#endif

/* GCC may also define __WCHAR_UNSIGNED__.
   Use L'\0' to give the expression the correct (unsigned) type.  */
#ifdef __WCHAR_UNSIGNED__
#define __WCHAR_MIN       L'\0'

/* Failing that, rely on the preprocessor's knowledge of the
   signedness of wchar_t.  */
#elif L'\0' - 1 > 0
#define __WCHAR_MIN       L'\0'
#else
#define __WCHAR_MIN       (-__WCHAR_MAX - 1)
#endif

I'm thinking it's more likely a glibc bug, as I fail to see an apparent reason 
why WCHAR_MIN/MAX are defined different on each of these platforms. It 
probably has to be reassigned to eglibc, but I'm cross-posting this to the 
eglibc maintainers first.

Regards

Konstantinos




Information forwarded to debian-bugs-dist@lists.debian.org, Torsten Werner <twerner@debian.org>:
Bug#598937; Package src:stlport5.2. (Mon, 14 Feb 2011 04:18:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nobuhiro Iwamatsu <iwamatsu@nigauri.org>:
Extra info received and forwarded to list. Copy sent to Torsten Werner <twerner@debian.org>. (Mon, 14 Feb 2011 04:18:03 GMT) Full text and rfc822 format available.

Message #15 received at 598937@bugs.debian.org (full text, mbox):

From: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
To: 598937@bugs.debian.org, debian-glibc@lists.debian.org
Cc: markos@genesi-usa.com, riku.voipio@iki.fi
Subject: Re: Re: stlport5.2: FTBFS on armel: #error Weird WCHAR_MIN or WCHAR_MAX macro value.
Date: Mon, 14 Feb 2011 13:15:43 +0900
[Message part 1 (text/plain, inline)]
Hi,

> I'm thinking it's more likely a glibc bug, as I fail to see an apparent reason
> why WCHAR_MIN/MAX are defined different on each of these platforms. It
> probably has to be reassigned to eglibc, but I'm cross-posting this to the
> eglibc maintainers first.

I think too.
wchar_t is not handled in cpp. WCHAR_MAX becomes -1.

I updated patch of local-eabi-wchar.diff.
# This header was included by #444580.

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
[local-eabi-wchar.diff (text/x-patch, attachment)]

Bug Marked as found in versions stlport5.2/5.2.1-5.1. Request was from Hector Oron <zumbi@debian.org> to control@bugs.debian.org. (Mon, 28 Mar 2011 14:06:06 GMT) Full text and rfc822 format available.

Added tag(s) patch. Request was from Hector Oron <zumbi@debian.org> to control@bugs.debian.org. (Wed, 06 Apr 2011 23:01:15 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Torsten Werner <twerner@debian.org>:
Bug#598937; Package src:stlport5.2. (Sun, 18 Dec 2011 00:36:14 GMT) Full text and rfc822 format available.

Acknowledgement sent to peter green <plugwash@p10link.net>:
Extra info received and forwarded to list. Copy sent to Torsten Werner <twerner@debian.org>. (Sun, 18 Dec 2011 00:36:14 GMT) Full text and rfc822 format available.

Message #24 received at 598937@bugs.debian.org (full text, mbox):

From: peter green <plugwash@p10link.net>
To: 598937@bugs.debian.org
Cc: Carlos O'Donell <carlos@systemhalted.org>
Subject: Carlos O'Donell's comments on 598937
Date: Sun, 18 Dec 2011 00:35:19 +0000
Carlos O'Donell made the following comments about bug 598937 and it's
associated patch on debian-arm. I am forwarding them to the bug report so
they are there for the next person who looks at it (be it me or someone 
else).

http://lists.debian.org/debian-arm/2011/12/msg00061.html

>ISO C99 says that WCHAR_MAX must be a constant expression and the
>above definition is such an expression. Technically the program needs
>fixing (see below though for the "standards matter but so do users"),
>there is nothing wrong with a type cast and a constant value e.g.
>signed -1 converted to unsigned int (ARM GNU/Linux value for wchar_t).
>
>However, the real issue here is that it differs from x86, the most
>common architecture, and differences from x86 cause porting problems.
>The patch itself is insufficient because it doesn't take into account
>wordsize. When we switch to the 64-bit ARM ABI it should just work.
>Therefore you need to check for __WORDSIZE and *only* define a value
>if we are *not* 64-bits. You don't want to define anything for the
>64-bit case until the 64-bit ARM ABI is out and finalized.





Reply sent to Niels Thykier <niels@thykier.net>:
You have taken responsibility. (Fri, 01 Nov 2013 21:33:11 GMT) Full text and rfc822 format available.

Notification sent to Cyril Brulebois <kibi@debian.org>:
Bug acknowledged by developer. (Fri, 01 Nov 2013 21:33:11 GMT) Full text and rfc822 format available.

Message #29 received at 598937-done@bugs.debian.org (full text, mbox):

From: Niels Thykier <niels@thykier.net>
To: 565055-done@bugs.debian.org, 650737-done@bugs.debian.org, 598937-done@bugs.debian.org, 676449-done@bugs.debian.org
Subject: stlport5.2 removed from Debian
Date: Fri, 01 Nov 2013 22:31:57 +0100
Version: 5.2.1-5+rm

Hi,

All your FTBFS bug are RM'ed from unstable, testing and stable.  It may
remain open for oldstable until that is no longer supported (or someone
fixes it via opu if applicable).

kthxbye,
~Niels




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 30 Nov 2013 07:43:36 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 05:33:44 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.