[Bug 43000] New: wine can't be compiled by gcc-2.95.4 (dsound/ dsound_convert.c, C99 ~ lrintf)

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 43000] New: wine can't be compiled by gcc-2.95.4 (dsound/ dsound_convert.c, C99 ~ lrintf)

Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43000

            Bug ID: 43000
           Summary: wine can't be compiled by gcc-2.95.4
                    (dsound/dsound_convert.c, C99 ~ lrintf)
           Product: Wine
           Version: 2.7
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: directx-dsound
          Assignee: [hidden email]
          Reporter: [hidden email]
      Distribution: ---

wine-2.7 @ gcc-2.95.4: compilation fails:

/dlls/dsound/dsound_convert.c: In function `f_to_8':
/dlls/dsound/dsound_convert.c:123: warning: implicit declaration of function
`lrintf'
/dlls/dsound/dsound_convert.c: At top level:
/dlls/dsound/dsound_convert.c:342: Internal compiler error:
/dlls/dsound/dsound_convert.c:342: Internal compiler error in `output_die', at
dwarf2out.c:5433

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 43000] wine can't be compiled by gcc-2.95.4 (dsound/dsound_convert.c, C99 ~ lrintf)

Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43000

Wylda <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
       Distribution|---                         |Debian

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 43000] wine can't be compiled by gcc-2.95.4 (dsound/dsound_convert.c, C99 ~ lrintf)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43000

--- Comment #1 from Wylda <[hidden email]> ---
BTW i did not test commenting lrintf out, to be sure.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 43000] wine can't be compiled by gcc-2.95.4 (dsound/dsound_convert.c, C99 ~ lrintf)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43000

--- Comment #2 from Dmitry Timoshkov <[hidden email]> ---
While it's probably still worth fixing this problem, this particular issue
shouldn't block you from testing just running 'wine winecfg' under older
kernels.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 43000] wine can't be compiled by gcc-2.95.4 (dsound/dsound_convert.c, C99 ~ lrintf)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43000

--- Comment #3 from Wylda <[hidden email]> ---
OK. Just delete dsound folder or is there better way to compile wine?

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 43000] wine can't be compiled by gcc-2.95.4 (dsound/dsound_convert.c, C99 ~ lrintf)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43000

--- Comment #4 from Dmitry Timoshkov <[hidden email]> ---
Does
touch dsound.dll.so
touch dsound.dll.fake
help?

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 43000] wine can't be compiled by gcc-2.95.4 (dsound/dsound_convert.c, C99 ~ lrintf)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43000

--- Comment #5 from Wylda <[hidden email]> ---
> Does ... help?

No, it doesn't. I had to modify all following 4 lines to make it pass.

static inline unsigned char f_to_8(float value)
-    return lrintf((value + 1.f) * 0x80);
+    return 1;

static inline SHORT f_to_16(float value)
-    return le16(lrintf(value * 0x8000));
+    return 1;

static LONG f_to_24(float value)
-    return lrintf(value * 0x80000000U);
+    return 1;

static inline LONG f_to_32(float value)
-    return le32(lrintf(value * 0x80000000U));
+    return 1;


Do you have any other trick to skip building some DLL?

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 43000] wine can't be compiled by gcc-2.95.4 (dsound/dsound_convert.c, C99 ~ lrintf)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43000

Gijs Vermeulen <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #6 from Gijs Vermeulen <[hidden email]> ---
Should be fixed by:
https://source.winehq.org/git/wine.git/commit/06d9c7e25e4ff71731c81f172269c8cd81b0c68a

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 43000] wine can't be compiled by gcc-2.95.4 (dsound/dsound_convert.c, C99 ~ lrintf)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43000

Alex Henrie <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 43000] wine can't be compiled by gcc-2.95.4 (dsound/dsound_convert.c, C99 ~ lrintf)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43000

Alistair Leslie-Hughes <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
    Regression SHA1|                            |06d9c7e25e4ff71731c81f17226
                   |                            |9c8cd81b0c68a

--- Comment #7 from Alistair Leslie-Hughes <[hidden email]> ---
Marking as fixed

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 43000] wine can't be compiled by gcc-2.95.4 (dsound/dsound_convert.c, C99 ~ lrintf)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43000

--- Comment #8 from Gijs Vermeulen <[hidden email]> ---
(In reply to Alistair Leslie-Hughes from comment #7)
> Marking as fixed

You added the SHA1 to the wrong field.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 43000] wine can't be compiled by gcc-2.95.4 (dsound/dsound_convert.c, C99 ~ lrintf)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43000

Alistair Leslie-Hughes <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
    Regression SHA1|06d9c7e25e4ff71731c81f17226 |
                   |9c8cd81b0c68a               |
      Fixed by SHA1|                            |06d9c7e25e4ff71731c81f17226
                   |                            |9c8cd81b0c68a

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 43000] wine can't be compiled by gcc-2.95.4 (dsound/dsound_convert.c, C99 ~ lrintf)

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=43000

Alexandre Julliard <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #9 from Alexandre Julliard <[hidden email]> ---
Closing bugs fixed in 3.0-rc1.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.