Hi,

Could you try creating the hello.c file with:

"""
#include<stdio.h>

main() {
    printf("Hello world\n");
}
"""

Then type:

$ gcc -arch ppc hello.c -o hello
$ ./hello

What does this show on your system?  Does the gcc command fail?  This
would be the exact extension of the det_arch() method.

Regards,

Edward




On 19 May 2014 10:51, Troels Emtekær Linnet <[email protected]> wrote:
> Hi Ed.
>
> I actually had to set: 'i386', 'x86_64'
> Since my python is 32 bit from the EPD.
>
> If I compiled only with 'x86_64', and did "from target_functions
> import relax_fit"
> I got at error relating to "relax_fit.so" being a wrong architecture.
>
> I cannot do ppc.
>
> Best
> Trpeæs
>
> 2014-05-19 9:34 GMT+02:00 Edward d'Auvergne <[email protected]>:
>> Hi Troels,
>>
>> Maybe the proper way to solve this is for the det_arch() method to
>> create a simple 'hello world' C program, dump it in a temporary
>> directory, try to compile it with the different -arch flags, and then
>> see if a binary was created.  As the current test shows that all 3
>> architectures are supported
>> (http://thread.gmane.org/gmane.science.nmr.relax.devel/4756/focus=4764),
>> a proper compilation test might be required.  My build machine is Mac
>> OS 10.6, simply to allow support for all 3 architectures in a
>> 'univeral binary', as XCode for Mac OS >= 10.7 drops support 'ppc'.  I
>> also have a 10.8 test machine and compilation works fine there.
>>
>> Regards,
>>
>> Edward
>>
>>
>> On 18 May 2014 22:05, Troels E. Linnet <[email protected]> 
>> wrote:
>>> Update of bug #22052 (project relax):
>>>
>>>                   Status:                    None => Wont Fix
>>>              Assigned to:                    None => tlinnet
>>>              Open/Closed:                    Open => Closed
>>>
>>>     _______________________________________________________
>>>
>>> Follow-up Comment #1:
>>>
>>> Solution found here:
>>> http://permalink.gmane.org/gmane.science.nmr.relax.devel/4758
>>>
>>> Change sconstruct
>>>
>>> sed -i "" "s/archs = \['i386', 'ppc', 'x86\_64']/archs = \['x86\_64'\]/g"
>>> sconstruct
>>>
>>>     _______________________________________________________
>>>
>>> Reply to this item at:
>>>
>>>   <http://gna.org/bugs/?22052>
>>>
>>> _______________________________________________
>>>   Message sent via/by Gna!
>>>   http://gna.org/
>>>
>>>
>>> _______________________________________________
>>> relax (http://www.nmr-relax.com)
>>>
>>> This is the relax-devel mailing list
>>> [email protected]
>>>
>>> To unsubscribe from this list, get a password
>>> reminder, or change your subscription options,
>>> visit the list information page at
>>> https://mail.gna.org/listinfo/relax-devel

_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-devel mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-devel

Reply via email to