You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by "Jim Carroll (JIRA)" <ji...@apache.org> on 2010/04/08 22:01:36 UTC

[jira] Created: (PYLUCENE-3) jcc not compiling on Mac Snow Leopard

jcc not compiling on Mac Snow Leopard
-------------------------------------

                 Key: PYLUCENE-3
                 URL: https://issues.apache.org/jira/browse/PYLUCENE-3
             Project: PyLucene
          Issue Type: Bug
         Environment: Mac: Darwin jcab.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i38
            Reporter: Jim Carroll
            Priority: Trivial


jcc was not compiling for me on mac until I changed setup.py to include the sysroot:


 CFLAGS = {
-    'darwin': ['-fno-strict-aliasing', '-Wno-write-strings'],
+    'darwin': ['-fno-strict-aliasing', '-Wno-write-strings', '-isysroot', '/Developer/SDKs/MacOSX10.5.sdk'],
     'ipod': ['-Wno-write-strings'],
     'linux2': ['-fno-strict-aliasing', '-Wno-write-strings'],


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PYLUCENE-3) jcc not compiling on Mac Snow Leopard

Posted by "Andi Vajda (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PYLUCENE-3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andi Vajda resolved PYLUCENE-3.
-------------------------------

    Resolution: Cannot Reproduce

Resolving this as "can't reproduce". The error you're seeing is probably due to differences in how your environment is setup. Edits of PyLucene's Makefile and JCC's setup.py are expected.

> jcc not compiling on Mac Snow Leopard
> -------------------------------------
>
>                 Key: PYLUCENE-3
>                 URL: https://issues.apache.org/jira/browse/PYLUCENE-3
>             Project: PyLucene
>          Issue Type: Bug
>         Environment: Mac: Darwin jcab.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i38
>            Reporter: Jim Carroll
>            Priority: Trivial
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> jcc was not compiling for me on mac until I changed setup.py to include the sysroot:
>  CFLAGS = {
> -    'darwin': ['-fno-strict-aliasing', '-Wno-write-strings'],
> +    'darwin': ['-fno-strict-aliasing', '-Wno-write-strings', '-isysroot', '/Developer/SDKs/MacOSX10.5.sdk'],
>      'ipod': ['-Wno-write-strings'],
>      'linux2': ['-fno-strict-aliasing', '-Wno-write-strings'],

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PYLUCENE-3) jcc not compiling on Mac Snow Leopard

Posted by "Andi Vajda (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PYLUCENE-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855163#action_12855163 ] 

Andi Vajda commented on PYLUCENE-3:
-----------------------------------

Sure, filing the bug for the record makes sense. Thanks.



> jcc not compiling on Mac Snow Leopard
> -------------------------------------
>
>                 Key: PYLUCENE-3
>                 URL: https://issues.apache.org/jira/browse/PYLUCENE-3
>             Project: PyLucene
>          Issue Type: Bug
>         Environment: Mac: Darwin jcab.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i38
>            Reporter: Jim Carroll
>            Priority: Trivial
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> jcc was not compiling for me on mac until I changed setup.py to include the sysroot:
>  CFLAGS = {
> -    'darwin': ['-fno-strict-aliasing', '-Wno-write-strings'],
> +    'darwin': ['-fno-strict-aliasing', '-Wno-write-strings', '-isysroot', '/Developer/SDKs/MacOSX10.5.sdk'],
>      'ipod': ['-Wno-write-strings'],
>      'linux2': ['-fno-strict-aliasing', '-Wno-write-strings'],

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (PYLUCENE-3) jcc not compiling on Mac Snow Leopard

Posted by Bill Janssen <ja...@parc.com>.
Andi Vajda <va...@apache.org> wrote:

> Why is Apple installing headers there then ?

Not sure.  My understanding is that it's best regarded as a transient
effect that may go away at any point in the future via a software
update.  Indeed, with the DP of Snow Leopard, those headers weren't
there.

Bill

Re: [jira] Commented: (PYLUCENE-3) jcc not compiling on Mac Snow Leopard

Posted by Andi Vajda <va...@apache.org>.
Why is Apple installing headers there then ?

Re: [jira] Commented: (PYLUCENE-3) jcc not compiling on Mac Snow Leopard

Posted by Bill Janssen <ja...@parc.com>.
Andi Vajda (JIRA) <ji...@apache.org> wrote:

> Why is this a bug ?

I asked about this on the Apple java-dev mailing list a few weeks ago,
and got back an answer similar to what Jim suggests.  This is from Mike
Swingler at Apple (swingler@apple.com):

> On Mar 19, 2010, at 9:23 PM, Bill Janssen wrote:
> 
> > [I find jni.h in the standard /System libraries, for instance]
> > 
> > /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0
> > 
> > Is this a good idea?
> 
> No. There are no binaries that you may link against in the versioned
> JVM directories, so it is not appropriate to use headers from those
> directories either.
> 
> > Or, should I always use
> > /Developer/SDKs/System/Library/Frameworks/JavaVM.framework/Versions/XX/Headers
> > when compiling JNI code?  Presumably at some point in the future, Apple might
> > like to introduce more of the JDK/JRE distinction, perhaps for the iPhone or
> > iPad?  In which case jni.h might not be there at all without the developer SDK.
>
> You should link against the JavaVM.framework and use the jni.h from
> the Mac OS X 10.x SDK. The only exception to this is to link directly
> against the JavaVM.framework on your system if you require new
> functionality that was provided in a Java software update, and not
> part of an actual SDK (though this case should be rare).

So, Jim's mod seems in accord with Apple's thinking.

Bill

[jira] Commented: (PYLUCENE-3) jcc not compiling on Mac Snow Leopard

Posted by "Andi Vajda (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PYLUCENE-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855129#action_12855129 ] 

Andi Vajda commented on PYLUCENE-3:
-----------------------------------

Why is this a bug ?

PyLucene and JCC compile just fine for me on Snow Leopard and have since 
10.6 was released.

Maybe your environment is different and hence edits are needed in PyLucene's 
Makefile or JCC's setup.py.

Yes, having to do this is frustrating, to say the least, but guessing at all 
possible dev env setups is even worse.

If you consider this a bug, what fix do you suggest ?
(adding the -isysroot parameter for everyone is probably not correct)


> jcc not compiling on Mac Snow Leopard
> -------------------------------------
>
>                 Key: PYLUCENE-3
>                 URL: https://issues.apache.org/jira/browse/PYLUCENE-3
>             Project: PyLucene
>          Issue Type: Bug
>         Environment: Mac: Darwin jcab.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i38
>            Reporter: Jim Carroll
>            Priority: Trivial
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> jcc was not compiling for me on mac until I changed setup.py to include the sysroot:
>  CFLAGS = {
> -    'darwin': ['-fno-strict-aliasing', '-Wno-write-strings'],
> +    'darwin': ['-fno-strict-aliasing', '-Wno-write-strings', '-isysroot', '/Developer/SDKs/MacOSX10.5.sdk'],
>      'ipod': ['-Wno-write-strings'],
>      'linux2': ['-fno-strict-aliasing', '-Wno-write-strings'],

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PYLUCENE-3) jcc not compiling on Mac Snow Leopard

Posted by "Jim Carroll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PYLUCENE-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855137#action_12855137 ] 

Jim Carroll commented on PYLUCENE-3:
------------------------------------

It doesn't bother me if there isn't a good fix for this... but I thought I'd file the issue in a place where others could see my fix.

> jcc not compiling on Mac Snow Leopard
> -------------------------------------
>
>                 Key: PYLUCENE-3
>                 URL: https://issues.apache.org/jira/browse/PYLUCENE-3
>             Project: PyLucene
>          Issue Type: Bug
>         Environment: Mac: Darwin jcab.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i38
>            Reporter: Jim Carroll
>            Priority: Trivial
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> jcc was not compiling for me on mac until I changed setup.py to include the sysroot:
>  CFLAGS = {
> -    'darwin': ['-fno-strict-aliasing', '-Wno-write-strings'],
> +    'darwin': ['-fno-strict-aliasing', '-Wno-write-strings', '-isysroot', '/Developer/SDKs/MacOSX10.5.sdk'],
>      'ipod': ['-Wno-write-strings'],
>      'linux2': ['-fno-strict-aliasing', '-Wno-write-strings'],

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PYLUCENE-3) jcc not compiling on Mac Snow Leopard

Posted by "Jim Carroll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PYLUCENE-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855142#action_12855142 ] 

Jim Carroll commented on PYLUCENE-3:
------------------------------------

By the way, the error that I got was that it could not find the file map in a 

#include <map>



> jcc not compiling on Mac Snow Leopard
> -------------------------------------
>
>                 Key: PYLUCENE-3
>                 URL: https://issues.apache.org/jira/browse/PYLUCENE-3
>             Project: PyLucene
>          Issue Type: Bug
>         Environment: Mac: Darwin jcab.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i38
>            Reporter: Jim Carroll
>            Priority: Trivial
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> jcc was not compiling for me on mac until I changed setup.py to include the sysroot:
>  CFLAGS = {
> -    'darwin': ['-fno-strict-aliasing', '-Wno-write-strings'],
> +    'darwin': ['-fno-strict-aliasing', '-Wno-write-strings', '-isysroot', '/Developer/SDKs/MacOSX10.5.sdk'],
>      'ipod': ['-Wno-write-strings'],
>      'linux2': ['-fno-strict-aliasing', '-Wno-write-strings'],

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.