I just downloaded the 1.6.9 sources and I have been trying to compile
the C++ library in addition to the regular libraries. This is the
configure line that I am using:
and then make, make install. But the C++ library is not getting built.
Is anyone else having this problem? I was also trying to build a 64
bit version of the library by exporting CPPFLAGS="-arch x86_64" but
when I start that compiling I get the following error:
587:[mjackson@Shepard:hdf5-169]$ make
make lib
rm -f .libs/H5.lo
gcc -arch x86_64 -std=c99 -Wno-long-long -O -fomit-frame-pointer
-finline-functions -I. -I. -UH5_DEBUG_API -DNDEBUG x86_64 -arch -c
H5.c -fno-common -DPIC -o .libs/H5.lo
gcc-4.0: Invalid arch name : -c
i686-apple-darwin9-gcc-4.0.1: make[2]: *** [H5.lo] Error 1
x86_64: No such file or directory
make[1]: *** [lib] Error 1
make: *** [all] Error 2
This is the output at the end of the configure stage:
Compilation Mode: Production
C Compiler: gcc
CFLAGS: -arch x86_64 -std=c99
-Wno-long-long -O -fomit-frame-pointer -finline-functions
CPPFLAGS: -UH5_DEBUG_API -DNDEBUG x86_64 -arch
LDFLAGS:
Debug Mode: None
Shared Libraries: Yes
Static Libraries: Yes
Statically Linked Executables: No
Tracing: No
Optimization Instrumentation: No
Note the reversal of the CPPFLAGS in the configure output?
Any help on this would be greatly appreciated.
Mike Jackson
···
----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.
which will obviously cause compiler errors. It would seem like there
is some sort of parsing of the CPPFLAGS going on instead of using them
verbatim from the command line environment.
It seemed that the correct compiler is not specified. I don't know anything
about the system you're using. You might need to "setenv CXX" to the
correct compiler. Also, did you try removing the "==yes" from all the other
options? I'm not aware that you need the "==yes."
Sorry if I can't be more help!
-----Original Message-----
From: Mike Jackson [mailto:mike.jackson@bluequartz.net]
Sent: Thursday, June 11, 2009 10:21 PM
To: Binh-Minh Ribler
Subject: Re: [hdf-forum] Compiling C++ library under OS X 10.5 (version
1.6.9)
Now that gives the following:
'
checking for g++... g++
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
configure: error: ./configure failed for c++
Looking through the config.log doesn't really reveal much.
Did you try just --enable-cxx, not --enable-cxx==yes?
Just a thought...
Binh-Minh
-----Original Message-----
From: Mike Jackson [mailto:mike.jackson@bluequartz.net]
Sent: Thursday, June 11, 2009 10:00 PM
To: hdf-forum
Subject: [hdf-forum] Compiling C++ library under OS X 10.5 (version 1.6.9)
I just downloaded the 1.6.9 sources and I have been trying to compile
the C++ library in addition to the regular libraries. This is the
configure line that I am using:
and then make, make install. But the C++ library is not getting built.
Is anyone else having this problem? I was also trying to build a 64
bit version of the library by exporting CPPFLAGS="-arch x86_64" but
when I start that compiling I get the following error:
587:[mjackson@Shepard:hdf5-169]$ make
make lib
rm -f .libs/H5.lo
gcc -arch x86_64 -std=c99 -Wno-long-long -O -fomit-frame-pointer
-finline-functions -I. -I. -UH5_DEBUG_API -DNDEBUG x86_64 -arch -c
H5.c -fno-common -DPIC -o .libs/H5.lo
gcc-4.0: Invalid arch name : -c
i686-apple-darwin9-gcc-4.0.1: make[2]: *** [H5.lo] Error 1
x86_64: No such file or directory
make[1]: *** [lib] Error 1
make: *** [all] Error 2
This is the output at the end of the configure stage:
Compilation Mode: Production
C Compiler: gcc
CFLAGS: \-arch x86\_64 \-std=c99
-Wno-long-long -O -fomit-frame-pointer -finline-functions
CPPFLAGS: -UH5_DEBUG_API -DNDEBUG x86_64 -arch
LDFLAGS:
Debug Mode: None
Shared Libraries: Yes
Static Libraries: Yes
Statically Linked Executables: No
Tracing: No
Optimization Instrumentation: No
Note the reversal of the CPPFLAGS in the configure output?
Any help on this would be greatly appreciated.
Mike Jackson
----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.
----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.
Isn't CPPFLAGS for preprocessor flags? If so, you don't want to pass -
arch there.
···
On 6/11/09 10:55 PM, Mike Jackson said:
export CPPFLAGS="-arch x86_64"
--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.
Isn't CPPFLAGS for preprocessor flags? If so, you don't want to pass -
arch there.
--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.
Right; so set arch in CFLAGS and CXXFLAGS (but not CPPFLAGS). I think
you are confusing CXXFLAGS and CPPFLAGS.
···
On 6/12/09 2:55 PM, Michael Jackson said:
Well, OK. But I still need to get the -arch flag into the C++ compile
commands. Just setting CFLAGS isn't good enough for this build system.
--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.
Well, OK. But I still need to get the -arch flag into the C++ compile
commands. Just setting CFLAGS isn't good enough for this build system.
Right; so set arch in CFLAGS and CXXFLAGS (but not CPPFLAGS). I think
you are confusing CXXFLAGS and CPPFLAGS.
--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.