libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Libtool strips out -tp=k8-32 PGI compiler flag in link mode


From: Ethan Mallove
Subject: Libtool strips out -tp=k8-32 PGI compiler flag in link mode
Date: Fri, 20 Mar 2009 14:05:31 -0500
User-agent: Mutt/1.5.17 (2007-11-01)

Hello,

I am trying to use Libtool with the PGI compilers in 32-bit mode
(using the -tp=k8-32 flag). In link mode, Libtool seems to be
stripping out the -tp=k8-32 compiler flag, which results in a compiler
error:

  $ make
  /bin/sh ../../../../libtool --tag=CC --mode=link pgcc -O -DNDEBUG -tp=k8-32 
-export-dynamic -o libopenmpi-malloc.la -rpath /opt/SUNWhpc/HPC8.2/pgi/lib 
malloc.lo malloc-stats.lo -lnsl -lutil -lpthread
  libtool: link: pgcc -shared -fpic -DPIC .libs/malloc.o .libs/malloc-stats.o 
-lnsl -lutil -lpthread -lc -Wl,-soname -Wl,libopenmpi-malloc.so.0 -o 
.libs/libopenmpi-malloc.so.0.0.0
  /usr/bin/ld: warning: i386 architecture of input file `.libs/malloc.o' is 
incompatible with i386:x86-64 output
  /usr/bin/ld: warning: i386 architecture of input file `.libs/malloc-stats.o' 
is incompatible with i386:x86-64 output
  .libs/malloc.o(.text+0x14d3): In function `munmap_chunk':
  : undefined reference to `opal_mem_free_ptmalloc2_munmap'
  ...
  make: *** [libopenmpi-malloc.la] Error 2

If I add in the -tp=k8-32 manually, it compiles. I have tried without
success to override this behavior with a Makefile macro at the command
line (e.g., LDFLAGS="-tp=k8-32). Is there a workaround for this issue?

Thanks,
Ethan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]