linker (?) issues on 10.5 with gcc (cmake/TenFourFox)
Riccardo Mottola
riccardo.mottola at libero.it
Fri Oct 4 06:34:35 UTC 2019
Hi,
I yesterday reported off-list to Ken that while trying to build
TenFourFox on Intel, I get these warnings (and the compilation
failure).
Compilation uses gcc 4.8 which is "proven" since the beninning.
host_pathsub.o
cc1: warning: command line option '-fpermissive' is valid for
C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option '-fpermissive' is valid for
C++/ObjC++ but not for C [enabled by default]
/var/folders/mJ/mJ67mpr-H98jpbARHqMfQE+++TI/-Tmp-//cczAOeZ5.s:546:11:
warning: section "__textcoal_nt" is deprecated
.section __TEXT,__textcoal_nt,coalesced,pure_instructions
^ ~~~~~~~~~~~~~
/var/folders/mJ/mJ67mpr-H98jpbARHqMfQE+++TI/-Tmp-//cczAOeZ5.s:546:11:
note: change section name to "__text"
.section __TEXT,__textcoal_nt,coalesced,pure_instructions
^ ~~~~~~~~~~~~~
/var/folders/mJ/mJ67mpr-H98jpbARHqMfQE+++TI/-Tmp-//ccLeFZ5b.s:1231:11:
warning: section "__textcoal_nt" is deprecated
.section __TEXT,__textcoal_nt,coalesced,pure_instructions
^ ~~~~~~~~~~~~~
/var/folders/mJ/mJ67mpr-H98jpbARHqMfQE+++TI/-Tmp-//ccLeFZ5b.s:1231:11:
note: change section name to "__text"
.section __TEXT,__textcoal_nt,coalesced,pure_instructions
^ ~~~~~~~~~~~~~
nsinstall_real
gmake[5]: *** [/Users/multix/code/tenfourfox/config/rules.mk:1400:
../dist/bin/nsinstall] Bus error
the real failure is perhaps different, since nsinstall fails.
However, today I was upgrading 10.5 macports and cmake compiles with
gcc 6 by default and I noticed this:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.15.4/Source/cmFileCommand.cxx:
In member function 'bool
{anonymous}::cURLProgressHelper::UpdatePercentage(double, double,
std::string&)':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.15.4/Source/cmFileCommand.cxx:1528:66:
error: call of overloaded 'lround(double)' is ambiguous
this->CurrentPercentage = std::lround(value / total * 100.0);
^
In file included from /opt/local/include/LegacySupport/cmath:54:0,
from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.15.4/Source/cmFileCommand.cxx:13:
/opt/local/include/gcc6/c++/cmath:1662:3: note: candidate: constexpr
long int std::lround(float)
lround(float __x)
^~~~~~
/opt/local/include/gcc6/c++/cmath:1666:3: note: candidate: constexpr
long int std::lround(long double)
lround(long double __x)
^~~~~~
make[2]: *** [Source/CMakeFiles/CMakeLib.dir/cmFileCommand.cxx.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
<stdin>:1:11: warning: section "__textcoal_nt" is deprecated
.section __TEXT,__textcoal_nt,coalesced,pure_instructions
^ ~~~~~~~~~~~~~
<stdin>:1:11: note: change section name to "__text"
.section __TEXT,__textcoal_nt,coalesced,pure_instructions
^ ~~~~~~~~~~~~~
<stdin>:357:11: warning: section "__textcoal_nt" is deprecated
.section __TEXT,__textcoal_nt,coalesced,pure_instructions
^ ~~~~~~~~~~~~~
<stdin>:357:11: note: change section name to "__text"
.section __TEXT,__textcoal_nt,coalesced,pure_instructions
^ ~~~~~~~~~~~~~
<stdin>:465:11: warning: section "__textcoal_nt" is deprecated
.section __TEXT,__textcoal_nt,coalesced,pure_instructions
^ ~~~~~~~~~~~~~
<stdin>:465:11: note: change section name to "__text"
.section __TEXT,__textcoal_nt,coalesced,pure_instructions
^ ~~~~~~~~~~~~~
while the failure is clearly the std::lround float vs. double issue (I
thought this had been solved?) the warnings below are quite familiar.
Something to worry about? an issue in our chain?
Riccardo
More information about the macports-users
mailing list