Ticket #34639 (new defect)
gdc @0.24 Build failure due to redefinition of functions
| Reported by: | biz@… | Owned by: | mww@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.1.1 |
| Keywords: | Cc: | ||
| Port: | gdc |
Description
:info:build .../macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gdc/gdc/work/gcc-4.1.2/gcc/toplev.c:524:1:
error: redefinition of a 'extern inline' function 'floor_log2' is not supported in C99 mode
:info:build floor_log2 (unsigned HOST_WIDE_INT x)
:info:build ^
:info:build .../macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gdc/gdc/work/gcc-4.1.2/gcc/toplev.h:175:1: note: previous definition is here
:info:build floor_log2 (unsigned HOST_WIDE_INT x)
:info:build ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gdc/gdc/work/gcc-4.1.2/gcc/toplev.c:559:1:
error: redefinition of a 'extern inline' function 'exact_log2' is not supported in C99 mode
:info:build exact_log2 (unsigned HOST_WIDE_INT x)
:info:build ^
:info:build .../macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gdc/gdc/work/gcc-4.1.2/gcc/toplev.h:181:1: note: previous definition is here
:info:build exact_log2 (unsigned HOST_WIDE_INT x)
:info:build ^
:info:build 4 warnings and 2 errors generated.
Attachments
Change History
comment:1 Changed 12 months ago by macsforever2000@…
- Owner changed from macports-tickets@… to mww@…
- Port set to gdc
comment:2 Changed 9 months ago by jmr@…
- Summary changed from gdc @0.24 Build failure OSX Lion Xcode 4.3.2 to gdc @0.24 Build failure due to redefinition of functions
Attached patch disables the extra definitions that cause the error in the log, but the symbols are still multiply defined elsewhere. There's probably not much point messing around more with this version, based on gcc 4.1.2; rather updating should be the first step.
Note: See
TracTickets for help on using
tickets.


In the future, please fill in the Port field and Cc the maintainer(s).
Please clean and try again. If it fails, attach the complete main.log file.