[mpich-discuss] Error building mpich-3.1.2 on Solaris 10 with gcc-4.9.0

Aurélien Larcher aurelien.larcher at gmail.com
Thu Sep 4 10:19:45 CDT 2014


Hi Siegmar,

1) For the linking errors you should provide the full build log but it
could just be an issue with the order of arguments passed to Solaris ld, or
if you compiled gcc to use GNU ld, the same issue might occur if the
configure script assumes Solaris => Solaris ld.

2) I keep this sticky note on my wiki:

"Compiler or options invalid for pre-UNIX 03 X/Open applications and
pre-2001 POSIX applications"

/usr/gcc/4.6/lib/gcc/i386-pc-solaris2.11/4.6.3/include-fixed/sys/feature_tests.h:362:2:
error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications
and pre-2001 POSIX applications"

 Conflict of standards between _XOPEN_SOURCE and C99 extensions.

#if defined(_STDC_C99) && (defined(__XOPEN_OR_POSIX) && !defined(_XPG6))

As GCC standards do not match ANSI/ISO/POSIX standards strictly you need to
specify the standard you want to comply with.
Usually adding -D_XOPEN_SOURCE=500 (or 600) and/or -D__EXTENSIONS__ to your
compiler flags is a good start.

Read the 'standards' manpage for further explanations, it is well
documented.

Best regards

Aurelien


-- 
-------------------------------------------------------------------------------
LARCHER Aurélien          | KTH, School of Computer Science and
Communication
Work: +46 (0) 8 790 71 42 | Lindstedtsvägen 5, Plan 4, 100 44 Stockholm,
SWEDEN
-------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20140904/b47f268e/attachment.html>


More information about the discuss mailing list