Bug 327191

Summary: hdf tries compiling with ecc, not gcc
Product: [Fedora] Fedora Reporter: Doug Chapman <dchapman>
Component: hdfAssignee: Patrice Dumas <pertusus>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: pertusus
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.2r2-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-18 09:18:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Doug Chapman 2007-10-11 03:53:56 UTC
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:

export CC=gcc

and this resolves the problem.  Please consider making this change.

thank you,

Doug Chapman - Fedora-ia64 committee

Version-Release number of selected component (if applicable):

hdf-4.2r1-15.fc8.src.rpm

Comment 1 Patrice Dumas 2007-10-11 18:58:17 UTC
It seems to me that a better fix would be a 
rm config/ia64-linux-gnu
Or even 
rm  config/*linux-gnu
That way the build flags are the optflags.

My tests show that with the following %build the flags and 
compilers are set better

rm config/*linux-gnu
export CFLAGS="$RPM_OPT_FLAGS -fPIC -DHAVE_NETCDF"
export FFLAGS="$RPM_OPT_FLAGS -ffixed-line-length-none"
%configure F77=gfortran --disable-production
make



The autoconf call is also certainly unneeded. Anyway there
is a new hdf version. Orion will you update?
ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/HDF4.2r2.tar.gz

Comment 2 Patrice Dumas 2007-10-16 23:27:05 UTC
Orion, is removing config/*linux-gnu ok with you?

Comment 3 Orion Poplawski 2007-10-17 02:38:54 UTC
(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.

Thanks!