Thread overview
[Issue 24294] ImportC: unrecognized command line option -Wno-builtin-macro-redefined with gcc
[Issue 24294] ImportC: required GCC version?
Dec 24, 2023
Walter Bright
Dec 24, 2023
kdevel
Dec 28, 2023
Walter Bright
Dec 28, 2023
Walter Bright
Dec 28, 2023
Walter Bright
Dec 28, 2023
Walter Bright
Dec 28, 2023
Dlang Bot
Dec 28, 2023
Dlang Bot
December 24, 2023
https://issues.dlang.org/show_bug.cgi?id=24294

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
Not sure what to do about this. compiler/src/dmd/link.d adds this switch, as it is necessary in order for druntime/src/importc.h to do its job.

--
December 24, 2023
https://issues.dlang.org/show_bug.cgi?id=24294

--- Comment #2 from kdevel <kdevel@vogtner.de> ---
(In reply to Walter Bright from comment #1)
> Not sure what to do about this. compiler/src/dmd/link.d adds this switch, as it is necessary in order for druntime/src/importc.h to do its job.

GCC: Put a note into the documentation that this switch is used and that a certain GCC version is required. It is in GCC since 2008 [1], but I could not find the exact GCC version number.

How is the problem solved with other compilers (clang, msvc)?

[1] https://gcc.gnu.org/legacy-ml/gcc-patches/2008-07/msg02321.html

--
December 28, 2023
https://issues.dlang.org/show_bug.cgi?id=24294

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ImportC

--
December 28, 2023
https://issues.dlang.org/show_bug.cgi?id=24294

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86_64                      |All

--
December 28, 2023
https://issues.dlang.org/show_bug.cgi?id=24294

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ImportC: required GCC       |ImportC: unrecognized
                   |version?                    |command line option
                   |                            |-Wno-builtin-macro-redefine
                   |                            |d with gcc

--
December 28, 2023
https://issues.dlang.org/show_bug.cgi?id=24294

--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> ---
Thanks for your help with this!

--
December 28, 2023
https://issues.dlang.org/show_bug.cgi?id=24294

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dlang.org pull request #3751 "fix Issue 24294 - ImportC: unrecognized command line option -Wno-buil…" fixing this issue:

- fix Issue 24294 - ImportC: unrecognized command line option -Wno-builtin-macro-redefined with gcc

https://github.com/dlang/dlang.org/pull/3751

--
December 28, 2023
https://issues.dlang.org/show_bug.cgi?id=24294

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dlang.org pull request #3751 "fix Issue 24294 - ImportC: unrecognized command line option -Wno-buil…" was merged into master:

- eadcaa3aad76bbf3046d7669c53307a304b71f40 by Walter Bright:
  fix Issue 24294 - ImportC: unrecognized command line option
-Wno-builtin-macro-redefined with gcc

https://github.com/dlang/dlang.org/pull/3751

--