-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello George, Hello Elena,

Am 04.03.2012 22:48, schrieb George N. White III:
> On 3/2/12, Arne Babenhauserheide (IMK)
> <[email protected]> wrote:
>> I was able to track them down to configure.ac: If the compiler
>> path in $CC contained a dash (-) and $CC contained no flags, the
>> full compiler path was added to the front of the CFLAGS. As a
>> consequence, icc could not link anymore.
> 
> You are not the only one to encounter this problem,   On MacOSX
> using macports, the compilers have names like gcc-mp-4.6,and can
> produce invalid $CFLAGS as you describe.   A workaround is to
> provide "wrapper" scripts. e.g. gccmp46 contains "exec gcc-mp-4.6
> "$@""

Good to know. I did not think of that way to get it to work :)

> I looked at hdf-4.2.6 and the same problem applies to F77 there,
> so probably in hdf-4.2.7 as well.

F77 worked for me (ifort), but that could just be blind luck…

>> PS: Sorry for only jumping in here without introduction. I just 
>> thought it better to send the patch to you instead of letting it
>> rot on my disk, and hdf-forum was the most fitting address I
>> could find.
> 
> I have been meaning to look into this problem but since there is a 
> workaround it was low priority.  Open source projects need efforts
> of people like you who make the effort to understand problems and
> suggest fixes.  Thanks.

Well, actually I started with rewriting the Makefiles. When I realized
that that would become a bit tedious, I remembered the autotools
lessons I learned to compile stuff for the Hurd :)

I’m glad my patch helps!

Also this is one of the big advantages of free software: I spent over
2 months wading through various compiler problems on the cluster, so I
learned bit by bit how to trace down problems appearing on this
machine. I would not expect primary developers to actually do that
work (which includes finding the right compiler-flags for all the
different libraries and such - forgetting -fPIC really hurts :) ).

Best wishes and thanks for the warm welcome!
Arne
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPVNHrAAoJEFyD82SnDaCeoVcH/jLdhc3qpSK1FIDtx0EJpV2Q
71mj1lT3QxVcDGukUxr10g9nFbOWnBP9AwTqupsdBaaUr27EltTAcRrSAHI9EX+l
7OJMi+nMdRWv7a7n/YuIn+4KIMUSgiWq5zeKnw3D5G5QuNNdiPyzkLVe/2gwgun6
F3VbVblsZofI9xCH0MY/ZsekLJWr+S6YUjmGIcHwdgrxTMYdZXLzjaspbv+aRjdw
nKwpQMQKw/RZvH5y21ATNnyeWXMZ0eTLrzYHTicLu6H5H9jWPz64diqU5kPaOSgD
loOvt1+HfM6FbA9zDflJLeRPrjepbEgcmScSoOolCHzg0q6iOm4b8uuEWSAoaVE=
=5J/x
-----END PGP SIGNATURE-----

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to