Closed Bug 1849068 Opened 3 years ago Closed 3 years ago

[mingw-trunk] Perma /builds/worker/fetches/clang/bin/../i686-w64-mingw32/include/werapi.h:182:23: error: typedef redefinition with different types ('enum _WER_SUBMIT_RESULT *' vs 'enum _WER_SUBMIT_RESULT')

Categories

(Core :: mozglue, defect, P5)

defect

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: glandium)

Details

Attachments

(1 external file)

Filed by: mh [at] glandium.org
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=426012478&repo=toolchains
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/WLyR8zfOSlWKsjLv3zPO_Q/runs/0/artifacts/public/logs/live_backing.log


[task 2023-08-15T07:08:54.945Z] 07:08:54    ERROR -  /builds/worker/fetches/clang/bin/../i686-w64-mingw32/include/werapi.h:182:23: error: typedef redefinition with different types ('enum _WER_SUBMIT_RESULT *' vs 'enum _WER_SUBMIT_RESULT')
[task 2023-08-15T07:08:54.945Z] 07:08:54     INFO -    182 | } WER_SUBMIT_RESULT, *PWER_SUBMIT_RESULT;
[task 2023-08-15T07:08:54.945Z] 07:08:54     INFO -        |                       ^
[task 2023-08-15T07:08:54.945Z] 07:08:54     INFO -  /builds/worker/checkouts/gecko/mozglue/misc/RuntimeExceptionModule.cpp:18:32: note: expanded from macro 'PWER_SUBMIT_RESULT'
[task 2023-08-15T07:08:54.945Z] 07:08:54     INFO -     18 | #    define PWER_SUBMIT_RESULT WER_SUBMIT_RESULT*
[task 2023-08-15T07:08:54.945Z] 07:08:54     INFO -        |                                ^
[task 2023-08-15T07:08:54.945Z] 07:08:54     INFO -  /builds/worker/fetches/clang/bin/../i686-w64-mingw32/include/werapi.h:182:3: note: previous definition is here
[task 2023-08-15T07:08:54.945Z] 07:08:54     INFO -    182 | } WER_SUBMIT_RESULT, *PWER_SUBMIT_RESULT;
[task 2023-08-15T07:08:54.945Z] 07:08:54     INFO -        |   ^
[task 2023-08-15T07:08:54.945Z] 07:08:54    ERROR -  /builds/worker/fetches/clang/bin/../i686-w64-mingw32/include/werapi.h:182:23: error: expected ';' after top level declarator
[task 2023-08-15T07:08:54.945Z] 07:08:54     INFO -    182 | } WER_SUBMIT_RESULT, *PWER_SUBMIT_RESULT;
[task 2023-08-15T07:08:54.946Z] 07:08:54     INFO -        |                       ^
[task 2023-08-15T07:08:54.946Z] 07:08:54     INFO -  /builds/worker/checkouts/gecko/mozglue/misc/RuntimeExceptionModule.cpp:18:49: note: expanded from macro 'PWER_SUBMIT_RESULT'
[task 2023-08-15T07:08:54.946Z] 07:08:54     INFO -     18 | #    define PWER_SUBMIT_RESULT WER_SUBMIT_RESULT*
[task 2023-08-15T07:08:54.946Z] 07:08:54     INFO -        |                                                 ^
[task 2023-08-15T07:08:54.946Z] 07:08:54     INFO -  2 errors generated.
Assignee: nobody → mh+mozilla

Mingw trunk recently gained the missing pieces we were #define'ing.
Unfortunately, the way were doing that is not compatible with them being
there now, so we change it so that it works with both the current
version of mingw we use, and trunk by:

  • using a typedef for HREPORT instead of a #define, which is the same
    declaration as in trunk
  • because PWER_SUBMIT_RESULT is a typedef with the underlying
    WER_SUBMIT_RESULT type defined inline, we can't typedef it.
    Fortunately, there's only one thing using PWER_SUBMIT_RESULT in the
    old version of werapi.h in mingw (WerReportSubmit), so we #define
    it to change its definition instead.
  • WER_MAX_PREFERRED_MODULES_BUFFER is a #define without parens in
    the new header, which would conflict, but #define'ing to the same
    value as in the new header, without the parens makes it work.
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/a317d1d25b68 Change how the missing pieces are setup for mingw. r=bobowen
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: