In order to test freeswitch based components on the PPC64 platform (for
XECS-1441), I updated my system to FC9. There appears to be a problem with
building C++ projects on this platform. Specifically, the checking done by
configure fails when it attempts to check for the default output file name
generated by the C++ compiler. Here is the output:
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
The file config.log contains no useful information with regard to the
problem.
Further investigation revealed that the C++ compiler flag -m64 causes this
problem. When this flag is specified, the compiler (GCC 4.3.0-8) generates
code that is considered by ld incompatible with several libraries. Here is
the output:
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/ppc64-redhat-linux/4.3.0/../../../libc.so when searching
for -lc
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/ppc64-redhat-linux/4.3.0/../../../libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching
for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching
for -lc
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
It appears that this could be a problem with either gcc, ld or libraries.
Removing the -m64 flag could be the simple way to proceed - I don't know
though if that would be correct and also I am not sure how to automatically
generate the C++ flags for our projects without this flag specified. Trying
to determine where the compatibility problem really is does not appear to be
terribly simple either. I would appreciate any suggestion how to resolve
this issue.
Thanks,
Misha
P.S. To reproduce the issue, all what is required is to compile a simple C++
executable with the -m64 flag specified.
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev