You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Travis P <sv...@castle.fastmail.fm> on 2004/01/25 18:08:19 UTC
[PATCH] faq to help xlc users compile
On Jan 23, 2004, at 11:40 AM, kfogel@collab.net wrote:
> Travis P <sv...@castle.fastmail.fm> writes:
>> I originally reported it and I think that that is fine, but I do think
>> that
>> documentation mentioning that the "-qlanglvl=extended" flag is
>> recommended for xlc compilation might be a nice touch.
>
> Hmm, can you make a new FAQ item for this, by producing a patch
> against www/project_faq.html in the Subversion tree? That would be a
> big help.
>
Sure. It's below. I waited to double-check that the advice works on a
nice clean 0.37. It does.
I don't mention that I only built the client as the advice should also
apply to anyone trying to build the server as well.
Just FYI: xlc compilers are also now available for MacOS X so assuming
xlc and AIX go hand-in-hand may be erroneous.
( Ref:
http://www-306.ibm.com/common/ssi/fcgi-bin/ssialias?
infotype=an&subtype=ca&supplier=897&appname=IBMLinkRedirect&letternum=EN
US204-005 )
While I wouldn't expect to find its use particularly prevalent, in
high-performance scientific applications such as the Virginia Tech G5
Supercomputing Cluster, it has already reportedly been used.
There's a lot of other experience that perhaps should be documented
somewhere--especially since the list archives searchability appears
sketchy. Search for xlc or aix and you will not find any of my recent
posts to the dev or users lists and the various ensuing conversations
-- I didn't anyway. I also do not see a way to order search results by
date, which will likely be more and more a problem as time progresses
and suggestions about alpha-level Subversion may precede more relevant
discussions about newer versions of Subversion.
-Travis Pouarz
____________________________________
Add FAQ item about compiling with xlc.
* www/project_faq.html
(xlc-compile): New item.
Index: project_faq.html
===================================================================
--- project_faq.html (revision 8515)
+++ project_faq.html (working copy)
@@ -111,6 +111,8 @@
file, but svn says something about "path not found". What's going
on?</a></li>
<li><a href="#digest-auth">Why doesn't HTTP Digest auth work?</a></li>
+<li><a href="#xlc-compile">Compiling with xlc on AIX, I get compilation
+ errors. What's wrong?</a></li>
@@ -1448,6 +1450,18 @@
to see if the description there matches your symptoms.
</p>
+<![CDATA[-----------------------------------------------------------]]>
+
+<h3><a name="xlc-compile">Compiling with xlc on AIX, I get compilation
+ errors. What's wrong?</a></h3>
+
+<p>By default, xlc compiles to a strict standard which is in minor
+conflict with Subversion code in just a couple places. Adding
+<tt>-qlanglvl=extended</tt> to the environment variable CFLAGS
+for configuration and build will make xlc a bit more flexible
+and the code will compile without error.
+</p>
+
<![CDATA[=========================================================]]>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: [PATCH] faq to help xlc users compile
Posted by Travis P <sv...@castle.fastmail.fm>.
On Jan 25, 2004, at 1:20 PM, Greg Hudson wrote:
> On Sun, 2004-01-25 at 13:08, Travis P wrote:
>> +<p>By default, xlc compiles to a strict standard which is in minor
>> +conflict with Subversion code in just a couple places.
>
> That's not an accurate characterization of the current problem. xlc is
> simply buggy in this respect; a compiler must accept duplicate volatile
> qualifiers and most definitely must accept "volatile sig_atomic_t".
>
> (The other problem, which was a signed/unsigned conflict in cram.c, has
> been fixed on the mainline and on the 1.0-stabilization branch, and
> thus
> in the 0.37 release.)
Sure. I tried to avoid the detail by saying "a strict standard" with
no implication
of whose standard was implemented or whether anyone is right or wrong.
And
the CFLAGS suggestion will make compilation more likely to work, even
if the volatile
issue is resolved but another similar issue pops up in the future.
Avoid specific
mention of the need for the suggestion may thus avoid a faq change.
Anyway, those were my thoughts. I've revised the patch below. There
are two versions. Both reworded.
One mentioning duplicate volatile. The other does not. Take your pick.
-Travis
____________________________________
Add FAQ item about compiling with xlc.
* www/project_faq.html
(xlc-compile): New item.
Index: project_faq.html
===================================================================
--- project_faq.html (revision 8515)
+++ project_faq.html (working copy)
@@ -111,6 +111,8 @@
file, but svn says something about "path not found". What's going
on?</a></li>
<li><a href="#digest-auth">Why doesn't HTTP Digest auth work?</a></li>
+<li><a href="#xlc-compile">Compiling with xlc on AIX, I get compilation
+ errors. What's wrong?</a></li>
@@ -1448,6 +1450,17 @@
to see if the description there matches your symptoms.
</p>
+<![CDATA[-----------------------------------------------------------]]>
+
+<h3><a name="xlc-compile">Compiling with xlc on AIX, I get compilation
+ errors. What's wrong?</a></h3>
+
+<p>Adding <tt>-qlanglvl=extended</tt> to the
+environment variable CFLAGS for configuration and build
+will make xlc a bit more flexible and the code will
+compile without error.
+</p>
+
<![CDATA[=========================================================]]>
Index: project_faq.html
===================================================================
--- project_faq.html (revision 8515)
+++ project_faq.html (working copy)
@@ -111,6 +111,8 @@
file, but svn says something about "path not found". What's going
on?</a></li>
<li><a href="#digest-auth">Why doesn't HTTP Digest auth work?</a></li>
+<li><a href="#xlc-compile">Compiling with xlc on AIX, I get compilation
+ errors. What's wrong?</a></li>
@@ -1448,6 +1450,18 @@
to see if the description there matches your symptoms.
</p>
+<![CDATA[-----------------------------------------------------------]]>
+
+<h3><a name="xlc-compile">Compiling with xlc on AIX, I get compilation
+ errors. What's wrong?</a></h3>
+
+<p>By default, xlc complains about duplicate volatile
+qualifiers. Adding <tt>-qlanglvl=extended</tt> to the
+environment variable CFLAGS for configuration and build
+will make xlc a bit more flexible and the code will
+compile without error.
+</p>
+
<![CDATA[=========================================================]]>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: [PATCH] faq to help xlc users compile
Posted by Greg Hudson <gh...@MIT.EDU>.
On Sun, 2004-01-25 at 13:08, Travis P wrote:
> +<p>By default, xlc compiles to a strict standard which is in minor
> +conflict with Subversion code in just a couple places.
That's not an accurate characterization of the current problem. xlc is
simply buggy in this respect; a compiler must accept duplicate volatile
qualifiers and most definitely must accept "volatile sig_atomic_t".
(The other problem, which was a signed/unsigned conflict in cram.c, has
been fixed on the mainline and on the 1.0-stabilization branch, and thus
in the 0.37 release.)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org