I was able to process further by making some code changes and replacing
export-dynamic with -bexpfull in Makefile.config. Now, i am getting
following error while linking ..
llvm[3]: Linking Release+Asserts Loadable Module LLVMHello.so
ld: 0706-027 The -R $ORIGIN flag is ignored.
ld: 0711-317 ERROR: Undefined symbol: llvm::Pass::getPassName() const
ld: 0711-317 ERROR: Undefined symbol: llvm::Pass::print(llvm::raw_ostream&,
llvm::Module const*) const
ld: 0711-317 ERROR: Undefined symbol:
llvm::FunctionPass::createPrinterPass(llvm::raw_ostream&,
std::basic_string<char, std::char_traits<char>,
std::allocator<char> >
const&) const
ld: 0711-317 ERROR: Undefined symbol:
llvm::FunctionPass::assignPassManager(llvm::PMStack&, llvm::PassManagerType)
ld: 0711-317 ERROR: Undefined symbol:
llvm::Pass::preparePassManager(llvm::PMStack&)
ld: 0711-317 ERROR: Undefined symbol:
llvm::FunctionPass::getPotentialPassManagerType() const
ld: 0711-317 ERROR: Undefined symbol:
llvm::Pass::getAnalysisUsage(llvm::AnalysisUsage&) const
ld: 0711-317 ERROR: Undefined symbol: llvm::Pass::releaseMemory()
ld: 0711-317 ERROR: Undefined symbol:
llvm::Pass::getAdjustedAnalysisPointer(void const*)
ld: 0711-317 ERROR: Undefined symbol: llvm::Pass::getAsImmutablePass()
ld: 0711-317 ERROR: Undefined symbol: llvm::Pass::getAsPMDataManager()
ld: 0711-317 ERROR: Undefined symbol: llvm::Pass::verifyAnalysis() const
ld: 0711-317 ERROR: Undefined symbol:
llvm::Pass::dumpPassStructure(unsigned int)
ld: 0711-317 ERROR: Undefined symbol:
llvm::FunctionPass::doInitialization(llvm::Module&)
ld: 0711-317 ERROR: Undefined symbol:
llvm::FunctionPass::doFinalization(llvm::Module&)
ld: 0711-317 ERROR: Undefined symbol: vtable for llvm::FunctionPass
ld: 0711-317 ERROR: Undefined symbol: .llvm::Pass::~Pass()
ld: 0711-317 ERROR: Undefined symbol: .llvm::sys::AtomicIncrement(unsigned
int volatile*)
ld: 0711-317 ERROR: Undefined symbol: .llvm::sys::MemoryFence()
ld: 0711-317 ERROR: Undefined symbol: .llvm::Statistic::RegisterStatistic()
ld: 0711-317 ERROR: Undefined symbol: .AnnotateHappensAfter
ld: 0711-317 ERROR: Undefined symbol: .llvm::errs()
ld: 0711-317 ERROR: Undefined symbol: .llvm::Value::getName() const
ld: 0711-317 ERROR: Undefined symbol:
.llvm::raw_ostream::write_escaped(llvm::StringRef, bool)
ld: 0711-317 ERROR: Undefined symbol: .llvm::raw_ostream::write(char
const*, unsigned long)
ld: 0711-317 ERROR: Undefined symbol: .llvm::raw_ostream::write(unsigned
char)
ld: 0711-317 ERROR: Undefined symbol: .llvm::PassRegistry::getPassRegistry()
ld: 0711-317 ERROR: Undefined symbol:
.llvm::PassRegistry::registerPass(llvm::PassInfo const&, bool)
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: error: ld returned 8 exit status
gmake[3]: *** [/usr/llvm/llvm-3.1.src/Release+Asserts/lib/LLVMHello.so]
Error 1
gmake[3]: Leaving directory `/usr/llvm/llvm-3.1.src/lib/Transforms/Hello'
gmake[2]: *** [Hello/.makeall] Error 2
gmake[2]: Leaving directory `/usr/llvm/llvm-3.1.src/lib/Transforms'
gmake[1]: *** [Transforms/.makeall] Error 2
gmake[1]: Leaving directory `/usr/llvm/llvm-3.1.src/lib'
gmake: *** [all] Error 1
Thanks
On Tue, Oct 23, 2012 at 6:38 PM, Sunil Saggar <sunil.saggar at
gmail.com>wrote:
> Hi All,
>
> I am trying to build llvm on AIX. I installed all the required packages
> including gcc, g++, etc
> ./configure also went fine. but i tried to run gmake, i got the following
> error:
>
> llvm[1]: Compiling MemoryBuffer.cpp for Release+Asserts build
> llvm[1]: Compiling MemoryObject.cpp for Release+Asserts build
> llvm[1]: Compiling Mutex.cpp for Release+Asserts build
> llvm[1]: Compiling Path.cpp for Release+Asserts build
> In file included from Path.cpp:289:0:
> Unix/Path.inc: In static member function 'static llvm::sys::Path
> llvm::sys::Path::GetMainExecutable(const char*, void*)':
> Unix/Path.inc:345:3: error: 'Dl_info' was not declared in this
scope
> Unix/Path.inc:345:11: error: expected ';' before 'DLInfo'
> Unix/Path.inc:346:31: error: 'DLInfo' was not declared in this
scope
> Unix/Path.inc:346:37: error: 'dladdr' was not declared in this
scope
> Unix/Path.inc: In static member function 'static void
> llvm::sys::Path::UnMapFilePages(const char*, size_t)':
> Unix/Path.inc:887:19: warning: cast from type 'const char*' to type
> 'void*' casts away qualifiers [-Wcast-qual]
> rm: /usr/llvm/llvm-3.1.src/lib/Support/Release+Asserts/Path.d.tmp: A file
> or directory in the path name does not exist.
> gmake[1]: *** [/usr/llvm/llvm-3.1.src/lib/Support/Release+Asserts/Path.o]
> Error 1
> gmake[1]: Leaving directory `/usr/llvm/llvm-3.1.src/lib/Support'
> gmake: *** [all] Error 1
>
>
> Any pointers ?
>
> --
> -------------------
> Thanks
> Sunil
>
>
--
-------------------
Thanks
Sunil Saggar
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20121023/3ca5b1d8/attachment.html>