Thanks a lot, Jeff. I'll try what you told me and let you know the result. On Tue, Apr 20, 2010 at 2:03 PM, Jeff Squyres <jsquy...@cisco.com> wrote:
> On Apr 19, 2010, at 12:08 PM, Baowei Liu wrote: > > > Sorry I didn't give you such details in my first email. I tried what > you said--the tarball attached to this email includes the configure and make > output information: > > > > ./configure --prefix=/usr/local/openmpi | tee config.out > > sudo make all > make.out > > > > The same error appeared: > > > > libtool: compile: gcc -DHAVE_CONFIG_H -I. > -I../../../../../ompi/mca/coll/hierarch -I../../../../opal/include > -I../../../../orte/include -I../../../../ompi/include > -I../../../../opal/mca/paffinity/linux/plpa/src/libplpa -I../../../../.. > -I../../../.. -I../../../../../opal/include -I../../../../../orte/include > -I../../../../../ompi/include -D_REENTRANT -O3 -DNDEBUG -finline-functions > -fno-strict-aliasing -fvisibility=hidden -MT coll_hierarch.lo -MD -MP -MF > .deps/coll_hierarch.Tpo -c > ../../../../../ompi/mca/coll/hierarch/coll_hierarch.c -fno-common -DPIC -o > .libs/coll_hierarch.o > > as: more than one -arch option (not allowed, use cc(1) instead) > > make[2]: *** [coll_hierarch.lo] Error 1 > > make[1]: *** [all-recursive] Error 1 > > make: *** [all-recursive] Error 1 > > > > As I said, I tried to get rid of this error by setting "-arch" option > when configure, like: > > Ah, ok, now I understand what you tried; thanks. > > The above error message is a little puzzling because Open MPI is not > providing any -arch flags on the compile command line. But it's the > assembler that is complaining (as). Weird. > > The source file where the problem is occuring isn't particularly special > (ompi/mca/coll/hierarch/coll_hiearch.c). I can't imagine why it would cause > this issue. :-\ > > Try copy-n-pasting the "gcc ... .libs/coll_hierarch.o" command line to a > shell and running it in the ompi/mca/coll/hierarch directory and see if you > can get it to run. Try snipping out the -O3 and see if that helps. Try > removing -fvisibility, etc. See if you can get it to go by selectively > removing command line flags. > > Other than that, I'm out of ideas. It sounds like it could be either a > compiler bug, or some kind of bad interaction between your different > compiler / assembler versions on your system...? > > -- > Jeff Squyres > jsquy...@cisco.com > For corporate legal information go to: > http://www.cisco.com/web/about/doing_business/legal/cri/ > > > _______________________________________________ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users >