Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2005-08-12 16:30:08


Actually, Brian just pointed out the problem -- you also need to set
CXXFLAGS=-m32.

On Aug 12, 2005, at 5:15 PM, Jeff Squyres wrote:

> That's a neat one. mpicc shouldn't care about any of this stuff --
> it's a trivial C++ program that invokes none of the MCA framework
> stuff, etc.
>
> I'll try to replicate.
>
> Just out of curiosity -- do other C++ applications work nicely in 32
> bit on that machine? (particularly ones that use std::vector and
> std::string)
>
>
>
> On Aug 12, 2005, at 5:02 PM, Nathan DeBardeleben wrote:
>
>> OK, so I reconfigured, made, etc:
>>
>>> 137 14:29 ./configure CFLAGS=-m32 FFLAGS=-m32
>>> --build=i586-suse-linux --enable-static --disable-shared
>>> --without-threads --prefix=/home/ndebard/local/ompi
>>> --with-devel-headers --disable-io-romio --disable-f77
>>> 138 14:48 make clean all install
>>
>> But mpicc now segfaults immediately:
>>
>>> [sparkplug]~/ompi > /home/ndebard/local/ompi/bin/mpicc
>>> Segmentation fault
>>
>>> [sparkplug]~/ompi > gdb /home/ndebard/local/ompi/bin/mpicc
>>> GNU gdb 6.1
>>> Copyright 2004 Free Software Foundation, Inc.
>>> GDB is free software, covered by the GNU General Public License, and
>>> you are
>>> welcome to change it and/or distribute copies of it under certain
>>> conditions.
>>> Type "show copying" to see the conditions.
>>> There is absolutely no warranty for GDB. Type "show warranty" for
>>> details.
>>> This GDB was configured as "x86_64-suse-linux"...DW_FORM_strp
>>> pointing
>>> outside of .debug_str section [in module
>>> /home/ndebard/local/ompi/bin/mpicc]
>>> Using host libthread_db library "/lib64/tls/libthread_db.so.1".
>>>
>>> (gdb) run
>>> Starting program: /home/ndebard/local/ompi/bin/mpicc
>>> (no debugging symbols found)...(no debugging symbols found)...(no
>>> debugging symbols found)...(no debugging symbols found)...(no
>>> debugging symbols found)...(no debugging symbols found)...(no
>>> debugging symbols found)...
>>> Program received signal SIGSEGV, Segmentation fault.
>>> 0x0000000000408d4a in ?? ()
>>> (gdb) where
>>> #0 0x0000000000408d4a in ?? ()
>>> Cannot access memory at address 0xbfffecf8
>>> (gdb)
>>
>>> [sparkplug]~/ompi > /home/ndebard/local/ompi/bin/mpic++
>>> Segmentation fault
>>> [sparkplug]~/ompi >
>>
>>
>> -- Nathan
>> Correspondence
>> ---------------------------------------------------------------------
>> Nathan DeBardeleben, Ph.D.
>> Los Alamos National Laboratory
>> Parallel Tools Team
>> High Performance Computing Environments
>> phone: 505-667-3428
>> email: ndebard_at_[hidden]
>> ---------------------------------------------------------------------
>>
>>
>>
>> Brian Barrett wrote:
>>
>>> On Aug 12, 2005, at 3:22 PM, Nathan DeBardeleben wrote:
>>>
>>>
>>>
>>>> Thanks, trying that now. While I'd like those things in the long
>>>> run,
>>>> they're not needed right now to test what I'm trying to test. Will
>>>> let
>>>> you know how it goes! (What's the problem, by the way?)
>>>>
>>>>
>>>
>>> The problem is that I key off the target host string to decide what
>>> assembly to use for the atomic operations. For most 64 bit
>>> platforms, the architecture string is the same for 32/64 bit and then
>>> you use sizeof(long) to determine whether to use 32 or 64 bit
>>> instructions. So what I need to add to the configure script is a
>>> check if we're on x86_64 that if sizeof(long) == 4, we use the
>>> assembly for x86, not x86_64.
>>>
>>> Brian
>>>
>>>
>>>
>> _______________________________________________
>> devel mailing list
>> devel_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/devel
>>
>
> --
> {+} Jeff Squyres
> {+} The Open MPI Project
> {+} http://www.open-mpi.org/
>
> _______________________________________________
> devel mailing list
> devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/devel
>

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/