Thanks for your suggestion. Unfortunately, I am still seeing the same errors.
···
_______________________________________
From: hdf-forum-bounces@hdfgroup.org [hdf-forum-bounces@hdfgroup.org] On Behalf Of Mark Miller [miller86@llnl.gov]
Sent: Wednesday, July 29, 2009 11:43 AM
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] (no subject)
I ran into this too and wondered the same thing. Why is HDF5's configure
script passing GNU flags to a non-GNU compiler?
I fixed by setting CFLAGS/CXXFLAGS explicitly in the configuration...
./configure CC=pathcc CXX=pathCC FC=pathf90 F77=pathf90 CFLAGS=-fPIC CXXFLAGS=-fPIC --enable-production
Mark
On Wed, 2009-07-29 at 11:32 -0600, Atencio, Jonathan Gerald wrote:
I am attempting to build hdf5 1.8.3 with a pathscale 3.2 compiler. I am encountering the following issue:
% export CC=pathcc CXX=pathCC F77=pathf90 F90=pathf90
% ./configure --enable-fortran --enable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
...
compiler 'pathcc' is GNU gcc-4.2.0
...
SUMMARY OF THE HDF5 CONFIGURATION
=================================General Information:
-------------------
HDF5 Version: 1.8.3
Configured on: Wed Jul 29 11:24:18 MDT 2009
Configured by: jgatenc@glory144
Configure mode: production
Host system: x86_64-unknown-linux-gnu
Uname information: Linux glory144 2.6.18-63chaos #1 SMP Fri Dec 19 15:37:16 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
Byte sex: little-endian
Libraries:
Installation point: /gscratch1/jgatenc/hdf5-1.8.3/hdf5Compiling Options:
------------------
Compilation Mode: production
C Compiler: /projects/global/x86_64/compilers/pathscale/3.2/bin/pathcc (gcc-4.2.0)
CFLAGS/H5_CFLAGS: /-std=c99 -pedantic -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wfloat-equal -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wdisabled-optimization -Wformat=2 -Wunreachable-code -Wendif-labels -Wdeclaration-after-statement -Wold-style-definition -Winvalid-pch -Wvariadic-macros -Wnonnull -Winit-self -Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wunused-macros -Wunsafe-loop-optimizations -Wc++-compat -Wvolatile-register-var -Wstrict-overflow -O -fomit-frame-pointer -finline-functions
CPPFLAGS/H5_CPPFLAGS: -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_SOURCE -D_BSD_SOURCE / -DNDEBUG -UH5_DEBUG_API
Shared Libraries: yes
Static Libraries: yes
Statically Linked Executables: no
Extra libraries: -lz -lm
Archiver: ar
Ranlib: ranlib
Debugged Packages:
API Tracing: noLanguages:
----------
Fortran: yes
Fortran Compiler: pathf90
Fortran Flags: -I.
C++: noFeatures:
---------
Parallel HDF5: no
High Level library: yes
Threadsafety: no
Default API Mapping: v18
With Deprecated Public Symbols: yes
I/O filters (external): deflate(zlib)
I/O filters (internal): shuffle,fletcher32,nbit,scaleoffset
MPE: no
Direct VFD: no
dmalloc: no
Clear file buffers before write: yes
Using memory checker: no
Function Stack Tracing: no
GPFS: no
Strict File Format Checks: no
Optimization Instrumentation: no
Linux Large File Support (LFS): yes% make
Making all in src
make[1]: Entering directory `/gscratch1/jgatenc/hdf5-1.8.3/src'
make all-am
make[2]: Entering directory `/gscratch1/jgatenc/hdf5-1.8.3/src'
/bin/sh ../libtool --tag=CC --mode=compile pathcc -DHAVE_CONFIG_H -I. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_SOURCE -D_BSD_SOURCE -DNDEBUG -UH5_DEBUG_API -std=c99 -pedantic -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wfloat-equal -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wdisabled-optimization -Wformat=2 -Wunreachable-code -Wendif-labels -Wdeclaration-after-statement -Wold-style-definition -Winvalid-pch -Wvariadic-macros -Wnonnull -Winit-self -Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wunused-macros -Wunsafe-loop-optimizations -Wc++-compat -Wvolatile-register-var -Wstrict-overflow -O -fomit-frame-pointer -finline-functions -MT H5.lo -MD -MP -MF .deps/H5.Tpo -c -o H5.lo H5.c
libtool: compile: pathcc -DHAVE_CONFIG_H -I. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_SOURCE -D_BSD_SOURCE -DNDEBUG -UH5_DEBUG_API -std=c99 -pedantic -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wfloat-equal -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wdisabled-optimization -Wformat=2 -Wunreachable-code -Wendif-labels -Wdeclaration-after-statement -Wold-style-definition -Winvalid-pch -Wvariadic-macros -Wnonnull -Winit-self -Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wunused-macros -Wunsafe-loop-optimizations -Wc++-compat -Wvolatile-register-var -Wstrict-overflow -O -fomit-frame-pointer -finline-functions -MT H5.lo -MD -MP -MF .deps/H5.Tpo -c H5.c -fPIC -DPIC -o .libs/H5.o
pathcc WARNING: -Wdisabled-optimization is ignored
pathcc ERROR parsing -Wold-style-definition: unknown flag
pathcc ERROR parsing -Wvariadic-macros: unknown flag
pathcc ERROR parsing -Winit-self: unknown flag
pathcc ERROR parsing -Wmissing-include-dirs: unknown flag
pathcc ERROR parsing -Wc++-compat: unknown flag
pathcc ERROR parsing -Wvolatile-register-var: unknown flag
pathcc ERROR parsing -Wstrict-overflow: unknown flag
PathScale(TM) Compiler Suite: Version 3.2
Changeset: 1192db93e3df4f01cddf0b957c29dbd9632cf61c
Built by: gautam@eng-05.pathscale.com in /scratch/gautam/nightly-compiler-build-pending/ekopath-pending
Built on: 2008-06-16 16:45:36 -0700
Thread model: posix
GNU gcc version 4.2.0 (PathScale 3.2 driver)
make[2]: *** [H5.lo] Error 1
make[2]: Leaving directory `/gscratch1/jgatenc/hdf5-1.8.3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/gscratch1/jgatenc/hdf5-1.8.3/src'
make: *** [all-recursive] Error 1For some reason, we are passing GNU options to pathscale. Your help is greatly appreciated.
Thanks,
Jonathan
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://*mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
--
Mark C. Miller, Lawrence Livermore National Laboratory
email: mailto:miller86@llnl.gov
(M/T/W) (925)-423-5901 (!!LLNL BUSINESS ONLY!!)
(Th/F) (530)-753-8511 (!!LLNL BUSINESS ONLY!!)
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org