[mpich-discuss] building libraries
Pavan Balaji
balaji at mcs.anl.gov
Sat Jul 18 16:12:11 CDT 2009
This part is actually done by autoconf, and not by MPICH2 itself. So, I
don't know how it can be changed. Maybe some autoconf experts can chime in?
In the meanwhile, is there a way for you to change the compiler's
default output name? One way is to create a wrapper that does something
like:
$ cat wrapper_cc
xcc $@ && if [ -e a.xe ] ; then mv a.xe a.out ; fi
This will create an "a.out" output file instead of "a.xe".
-- Pavan
On 07/18/2009 04:01 PM, samantha lin wrote:
>
> The compilation is done correctly and the output file is "a.xe" rather
> than "a.out".
> Moreover, the executable file should run on a simulator.
> That is:
> $xsim a.xe
> Is it possible to change the configure to get this supported?
>
> wl
> On Sat, Jul 18, 2009 at 9:44 PM, Pavan Balaji <balaji at mcs.anl.gov
> <mailto:balaji at mcs.anl.gov>> wrote:
>
>
> Does this simple problem work correctly for you:
>
> $ cat conftest.c
> int main()
> {
> return 0;
> }
>
> $ xcc -target=XS1-G4B-FB512 conftest.c
>
> $ ./a.out
>
> -- Pavan
>
>
> On 07/18/2009 03:39 PM, samantha lin wrote:
>
> Hi,
>
> Sorry, still got problem when re-building the libraries. Here is
> the error message:
>
> checking for C compiler default output file name... configure:
> error: C compiler cannot create executables
> See `config.log' for more details.
>
> The compiler should be able to produce executables as I saw
> a file generated which is "a.xe". I added the log file to this
> email. Hope someone can help. Thanks.
>
> wl
>
> On Sat, Jul 18, 2009 at 8:17 PM, Pavan Balaji
> <balaji at mcs.anl.gov <mailto:balaji at mcs.anl.gov>
> <mailto:balaji at mcs.anl.gov <mailto:balaji at mcs.anl.gov>>> wrote:
>
>
> To replace the C compiler with foo, you can do
>
> $ CC=foo ./configure
>
> For C++, Fortran 77 and Fortran 90, you can use CXX, F77 and F90
> respectively.
>
> -- Pavan
>
>
> On 07/18/2009 02:04 PM, samantha lin wrote:
>
> Hi,
>
> Is it possible to build the mpi libraries by a compiler
> which isn't
> assigned by the configure file?
>
> Thanks,
> WL
>
>
> -- Pavan Balaji
> http://www.mcs.anl.gov/~balaji
>
>
>
> --
> Pavan Balaji
> http://www.mcs.anl.gov/~balaji
>
>
--
Pavan Balaji
http://www.mcs.anl.gov/~balaji
More information about the mpich-discuss
mailing list