• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode4 and Custom Executables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode4 and Custom Executables


  • Subject: Re: Xcode4 and Custom Executables
  • From: Sensei <email@hidden>
  • Date: Fri, 18 Mar 2011 12:32:33 +0100


On Mar 16, 2011, at 6:36pm, Jean-Daniel Dupas wrote:
FWIW, all open dialogs on OS X let you enter a path if you type '/' (it open a sheet where you can type the path). I would be surprised if Xcode do not support this too.


Yes! I didn't know this shortcut existed!

Now I am struggling with a simple MPI/C++ example. It compiles perfectly (adding stuff as CXXFLAGS and LDFLAGS from mpicxx --showme), but it fails to run with LLDB. It works, however, with GDB.

Do you think this could be a bug?


This is the example file:

#include <iostream>
#include "mpi.h"

int main (int argc, char *argv[])
{
    MPI::Init(argc, argv);

    int size = MPI::COMM_WORLD.Get_size();
    int myid = MPI::COMM_WORLD.Get_rank();

    

    // insert code here...
    std::cout << "Hello from " << myid << " of " << size << "\n";
    return 0;
}


This is the output with Xcode4/GDB:


GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)
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-apple-darwin".tty /dev/ttys001
sharedlibrary apply-load-rules all
[Switching to process 12968 thread 0x0]
Hello from 0 of 4
Hello from 1 of 4
Hello from 2 of 4
Hello from 3 of 4
Program ended with exit code: 0


This is the output with Xcode4/LLDB:


[quantum.local:12991] [0,0,0] ORTE_ERROR_LOG: Error in file /SourceCache/openmpi/openmpi-8/openmpi/orte/runtime/orte_init_stage1.c at line 312
--------------------------------------------------------------------------
It looks like orte_init failed for some reason; your parallel process is
likely to abort.  There are many reasons that a parallel process can
fail during orte_init; some of which are due to configuration or
environment problems.  This failure appears to be an internal failure;
here's some additional information (which may only be relevant to an
Open MPI developer):

  orte_pls_base_select failed
  --> Returned value -1 instead of ORTE_SUCCESS

--------------------------------------------------------------------------
[quantum.local:12991] [0,0,0] ORTE_ERROR_LOG: Error in file /SourceCache/openmpi/openmpi-8/openmpi/orte/runtime/orte_system_init.c at line 42
[quantum.local:12991] [0,0,0] ORTE_ERROR_LOG: Error in file /SourceCache/openmpi/openmpi-8/openmpi/orte/runtime/orte_init.c at line 52
--------------------------------------------------------------------------
Open RTE was unable to initialize properly.  The error occured while
attempting to orte_init().  Returned value -1 instead of ORTE_SUCCESS.
--------------------------------------------------------------------------



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Xcode4 and Custom Executables (From: Sensei <email@hidden>)
 >Re: Xcode4 and Custom Executables (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Xcode build failure
  • Next by Date: Re: from symbol name to full documentation in Xcode 4
  • Previous by thread: Re: Xcode4 and Custom Executables
  • Next by thread: XCode 4 File Inclusions
  • Index(es):
    • Date
    • Thread