Kevin J. Stephano
2005-Sep-27 21:02 UTC
[LLVMdev] SysUtils.c compile problem on Mac OSX 10.3 with llvm-1.4
I am currently running on a Mac OSX 10.3.8 and trying to compile llvm-1.4 on my local machine for Prof. Adve's class. I am using Apple's provided gcc 3.3 as my compiler. I ran into this compile error: SysUtils.c: In function `executeProgram': SysUtils.c:119: error: `RTLD_NEXT' undeclared (first use in this function) SysUtils.c:119: error: (Each undeclared identifier is reported only once SysUtils.c:119: error: for each function it appears in.) make[2]: *** [/Users/senatorned/llvm/tools/llee/Debug/SysUtils.lo] Error 1 make[1]: *** [llee/.makeall] Error 2 make: *** [all] Error 1 I was wondering if there was an obvious issue here. Thanks, --Kevin
Chris Lattner
2005-Sep-27 21:06 UTC
[LLVMdev] SysUtils.c compile problem on Mac OSX 10.3 with llvm-1.4
On Tue, 27 Sep 2005, Kevin J. Stephano wrote:> I am currently running on a Mac OSX 10.3.8 and trying to > compile llvm-1.4 on my local machine for Prof. Adve's class. > > I am using Apple's provided gcc 3.3 as my compiler. > > I ran into this compile error: > SysUtils.c: In function `executeProgram': > SysUtils.c:119: error: `RTLD_NEXT' undeclared (first use in > this function) > SysUtils.c:119: error: (Each undeclared identifier is reported > only once > SysUtils.c:119: error: for each function it appears in.) > make[2]: *** > [/Users/senatorned/llvm/tools/llee/Debug/SysUtils.lo] Error 1 > make[1]: *** [llee/.makeall] Error 2 > make: *** [all] Error 1llee has been removed from LLVM CVS. If you remove its entry from your llvm/tools/Makefile you should be ok. -Chris -- http://nondot.org/sabre/ http://llvm.org/
Reid Spencer
2005-Sep-27 22:29 UTC
[LLVMdev] SysUtils.c compile problem on Mac OSX 10.3 with llvm-1.4
Furthermore, the functionality of "executeProgram" has been replaced by the sys::Program::executeAndWait function (include/llvm/System/Program.h and lib/System/Unix/Program.inc). This function correctly negotiates the platform differences wrt RTLD_NEXT and similar #defines from the operating system include files. Reid. Chris Lattner wrote:> On Tue, 27 Sep 2005, Kevin J. Stephano wrote: > >> I am currently running on a Mac OSX 10.3.8 and trying to >> compile llvm-1.4 on my local machine for Prof. Adve's class. >> >> I am using Apple's provided gcc 3.3 as my compiler. >> >> I ran into this compile error: >> SysUtils.c: In function `executeProgram': >> SysUtils.c:119: error: `RTLD_NEXT' undeclared (first use in >> this function) >> SysUtils.c:119: error: (Each undeclared identifier is reported >> only once >> SysUtils.c:119: error: for each function it appears in.) >> make[2]: *** >> [/Users/senatorned/llvm/tools/llee/Debug/SysUtils.lo] Error 1 >> make[1]: *** [llee/.makeall] Error 2 >> make: *** [all] Error 1 > > > llee has been removed from LLVM CVS. If you remove its entry from your > llvm/tools/Makefile you should be ok. > > -Chris >