Hi,

I found out that if I set the ARCHFLAGS environment variable to  '-arch
x86_64', then perl Makefile.PL and make seems to get through without errors
(still warnings though). But now I get this error on make test:

#     Error:  Can't load
'/Users/ssy/Downloads/PDL-NetCDF-4.19/blib/arch/auto/PDL/NetCDF/NetCDF.bundle'
for module PDL::NetCDF:
dlopen(/Users/ssy/Downloads/PDL-NetCDF-4.19/blib/arch/auto/PDL/NetCDF/NetCDF.bundle,
2): no suitable image found.  Did find:
# /Users/ssy/Downloads/PDL-NetCDF-4.19/blib/arch/auto/PDL/NetCDF/NetCDF.bundle:
mach-o, but wrong architecture at
/System/Library/Perl/5.12/darwin-thread-multi-2level/DynaLoader.pm line 204.

There is a lot of those on the net in different forums, but I haven't been
able to solve my problem.

I checked the architecture.
file
/Users/ssy/Downloads/PDL-NetCDF-4.19/blib/arch/auto/PDL/NetCDF/NetCDF.bundle
gives:

/Users/ssy/Downloads/PDL-NetCDF-4.19/blib/arch/auto/PDL/NetCDF/NetCDF.bundle:
Mach-O 64-bit bundle x86_64

Not sure if that is the way it should be. Other bundles in my perl
distribution has both architectures.

If I don't set ARCHFLAGS to '-arch x86_64', then compilation is with both
i386 and x86_64,
and /Users/ssy/Downloads/PDL-NetCDF-4.19/blib/arch/auto/PDL/NetCDF/NetCDF.bundle
then becomes both i386 and x86_64 architecture, but then I'm back to square
one with the problems explained before.

Checking architecture of installed dependencies:

/Users/ssy> which ncdump
/opt/local/bin/ncdump
/Users/ssy> file /opt/local/bin/ncdump
/opt/local/bin/ncdump: Mach-O 64-bit executable x86_64
/Users/ssy> which pdl
/usr/local/bin/pdl
/Users/ssy> file /usr/local/bin/pdl
/usr/local/bin/pdl: Mach-O 64-bit executable x86_64
/Users/ssy> which perl
/usr/bin/perl
/Users/ssy> file /usr/bin/perl
/usr/bin/perl: Mach-O universal binary with 2 architectures
/usr/bin/perl (for architecture i386): Mach-O executable i386
/usr/bin/perl (for architecture x86_64): Mach-O 64-bit executable x86_64

Any ideas anyone?

-Stig


On Mon, Oct 14, 2013 at 5:49 PM, Doug Hunt <[email protected]> wrote:

> Thanks, Craig!
>
> --Doug
>
> [email protected]
> Software Engineer
> UCAR - COSMIC, Tel. (303) 497-2611
>
> On Sun, 13 Oct 2013, Craig DeForest wrote:
>
>  I'm on it -- but I just triggered an update of my macports tree, so it'll
>> be tomorrow (it'll probably run all night tonight).
>>
>>
>>
>> On Oct 13, 2013, at 9:05 PM, Douglas Hunt <[email protected]> wrote:
>>
>>  Hi Stig:  Sorry to hear PDL::NetCDF is misbehaving for you.  I'm
>>> forwarding this to the PDL list, where there are many kind people who run
>>> PDL on Macs.  Perhaps they can help.  I've only been using Linux, and these
>>> errors don't look familiar to me.
>>>
>>> The floods were quite dramatic, but things are getting back to normal.
>>> We were very lucky to not have had more than the handful of deaths that we
>>> did.  My house was never in danger and the worst we've had is the
>>> inconveniece of water being cut off for a while.  My mom lives in Estes
>>> Park, a mountain town hard hit by the flood, she is staying with us while
>>> sewer service is restored--perhaps several months.
>>>
>>> Best Regards to you and Andrea,
>>>
>>>  Doug
>>>
>>> ---------- Forwarded message ----------
>>> Date: Sun, 13 Oct 2013 18:06:28 +0200
>>> From: Stig Syndergaard <[email protected]>
>>> To: [email protected]
>>> Subject: PDL::NETCDF
>>>
>>> Hi Doug,
>>> I'm trying to install your PDL::NETCDF module on my Mac. I had it
>>> running and working well for years, but then my Mac
>>> got stolen last April, and I got a new one (now running OS X 10.8.4). I
>>> had a backup, so I got all my old stuff back on
>>> to the new Mac, but now the PDL::NETCDF is not working anymore :-(
>>>
>>> I've tried many things, installed new NetCDF library (4.2.1.1), new PDL
>>> (2.007), and downloaded
>>> PDL-NetCDF-4.19. But I can't make the PDL::NETCDF compile right. I've
>>> tried almost everything, including changing
>>> Makefile.PL files to make them look for files in the right paths, but
>>> nothing seems to help much. It may be the
>>> architecture, but I'm not sure. I get many warnings and errors. One of
>>> them (when running make) says:
>>>
>>> ld: warning: ignoring file NetCDF.o, file was built for unsupported file
>>> format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x
>>> 1 0x 3 0x 0 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the
>>> architecture being linked (i386): NetCDF.o
>>>
>>> which made me think that it is related to the 32 vs 64 bit architecture,
>>> but I really don't know much about these
>>> things. And I don't know it this warning is important.
>>>
>>> Another one (when running make test) is:
>>>
>>> #     Error:  Can't find 'boot_PDL__NetCDF' symbol in
>>> /Users/ssy/Downloads/PDL-**NetCDF-4.19/blib/arch/auto/**
>>> PDL/NetCDF/NetCDF.bundle
>>>
>>> which is also the error I get if I ignore everything and install anyways
>>> and try use the module by running one of my
>>> scripts:
>>>
>>> Can't find 'boot_PDL__NetCDF' symbol in /Library/Perl/5.12/darwin-**
>>> thread-multi-2level/auto/PDL/**NetCDF/NetCDF.bundle
>>>
>>> Have you seen anything like these errors/warnings before? Any ideas what
>>> I can do?
>>>
>>> Hope you are doing good in Boulder after all the flooding you had. We
>>> read and heard a lot about it here, and were
>>> thinking about you all.
>>>
>>> Best regards,
>>> -Stig
>>> ______________________________**_________________
>>> Perldl mailing list
>>> [email protected]
>>> http://mailman.jach.hawaii.**edu/mailman/listinfo/perldl<http://mailman.jach.hawaii.edu/mailman/listinfo/perldl>
>>>
>>
>>
>>
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to