Red Hat Bugzilla – Bug 327191
hdf tries compiling with ecc, not gcc
Last modified: 2007-11-30 17:12:18 EST
Description of problem:
I am in the process of bringing up Fedora on ia64 and the hdf package fails to
compile. It fails in the configure stage with:
configure: error: C compiler cannot create executables
See `config.log' for more details.
For some reason it appears to be trying to use ecc for the compiler. I added
the following to the spec file just before it calls configure:
and this resolves the problem. Please consider making this change.
Doug Chapman - Fedora-ia64 committee
Version-Release number of selected component (if applicable):
It seems to me that a better fix would be a
That way the build flags are the optflags.
My tests show that with the following %build the flags and
compilers are set better
export CFLAGS="$RPM_OPT_FLAGS -fPIC -DHAVE_NETCDF"
export FFLAGS="$RPM_OPT_FLAGS -ffixed-line-length-none"
%configure F77=gfortran --disable-production
The autoconf call is also certainly unneeded. Anyway there
is a new hdf version. Orion will you update?
Orion, is removing config/*linux-gnu ok with you?
(In reply to comment #2)
> Orion, is removing config/*linux-gnu ok with you?
If the config files don't seem to bring anything useful, it probably is best to
set the flags explicitly. Go ahead and build the new version as well.