Hmm... looks like my LLVM build script only built debug versions of the tools, not release versions. I'm investigating, I didn't change anything that should have caused that. [s] On Apr 28, 2009, at 4:56 PM, Bill Wendling wrote:> On Tue, Apr 28, 2009 at 4:43 PM, Sarah Thompson <sarah at findatlantis.com > > wrote: >> OK, that got much further, but I'm now seeing another problem which >> may (or may not) be related. Building my own code (my model checker), >> it builds libraries fine, then within tools (I'm using a fairly >> standard LLVM build environment here), I am seeing the error >> >> *** llvm-config doesn't exist - rebuilding it >> >> followed by a >> >> make: Entering an unknown directory >> >> which is complaining about .../tools//bin/llvm-config >> >> This didn't happen when I was building with gcc 4.1.x, though of >> course, my code didn't actually work when compiled with that >> compiler. >> > That's odd. It's the "/bin/" in there that make is complaining about. > I'm not sure why a different compiler would cause it to change > behavior. Does adding "VERBOSE=1" to the "make" command shed any light > on what's going wrong here? > > -bw > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
On Apr 28, 2009, at 5:12 PMPDT, Sarah Thompson wrote:> Hmm... looks like my LLVM build script only built debug versions of > the tools, not release versions. I'm investigating, I didn't change > anything that should have caused that.That's the default. You need to build with ENABLE_OPTIMIZED=1 (or configure with --enable-optimized, I think). Use VERBOSE=1 to see what's going on.> [s] > > On Apr 28, 2009, at 4:56 PM, Bill Wendling wrote: > >> On Tue, Apr 28, 2009 at 4:43 PM, Sarah Thompson <sarah at findatlantis.com >>> wrote: >>> OK, that got much further, but I'm now seeing another problem which >>> may (or may not) be related. Building my own code (my model >>> checker), >>> it builds libraries fine, then within tools (I'm using a fairly >>> standard LLVM build environment here), I am seeing the error >>> >>> *** llvm-config doesn't exist - rebuilding it >>> >>> followed by a >>> >>> make: Entering an unknown directory >>> >>> which is complaining about .../tools//bin/llvm-config >>> >>> This didn't happen when I was building with gcc 4.1.x, though of >>> course, my code didn't actually work when compiled with that >>> compiler. >>> >> That's odd. It's the "/bin/" in there that make is complaining about. >> I'm not sure why a different compiler would cause it to change >> behavior. Does adding "VERBOSE=1" to the "make" command shed any >> light >> on what's going wrong here? >> >> -bw >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
We build debug by default. You will have to add ENABLE_OPTIMIZED=1 on the "make" command line or --enable-optimized during configuration. -bw On Tue, Apr 28, 2009 at 5:12 PM, Sarah Thompson <sarah at findatlantis.com> wrote:> Hmm... looks like my LLVM build script only built debug versions of > the tools, not release versions. I'm investigating, I didn't change > anything that should have caused that. > > [s] > > On Apr 28, 2009, at 4:56 PM, Bill Wendling wrote: > >> On Tue, Apr 28, 2009 at 4:43 PM, Sarah Thompson <sarah at findatlantis.com >> > wrote: >>> OK, that got much further, but I'm now seeing another problem which >>> may (or may not) be related. Building my own code (my model checker), >>> it builds libraries fine, then within tools (I'm using a fairly >>> standard LLVM build environment here), I am seeing the error >>> >>> *** llvm-config doesn't exist - rebuilding it >>> >>> followed by a >>> >>> make: Entering an unknown directory >>> >>> which is complaining about .../tools//bin/llvm-config >>> >>> This didn't happen when I was building with gcc 4.1.x, though of >>> course, my code didn't actually work when compiled with that >>> compiler. >>> >> That's odd. It's the "/bin/" in there that make is complaining about. >> I'm not sure why a different compiler would cause it to change >> behavior. Does adding "VERBOSE=1" to the "make" command shed any light >> on what's going wrong here? >> >> -bw >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
OK, definitely something wrong here. I'm seeing errors along the lines of: /usr/bin/ld: /home/user/rse/llvm/build/Release/bin/fpcmp: hidden symbol `void std::__ostream_fill<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, long)' isn't defined /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status as each tool is linked in release mode. This doesn't happen in debug mode (i.e. they seem to link fine). [s] On Apr 28, 2009, at 5:12 PM, Sarah Thompson wrote:> Hmm... looks like my LLVM build script only built debug versions of > the tools, not release versions. I'm investigating, I didn't change > anything that should have caused that. > > [s] > > On Apr 28, 2009, at 4:56 PM, Bill Wendling wrote: > >> On Tue, Apr 28, 2009 at 4:43 PM, Sarah Thompson <sarah at findatlantis.com >>> wrote: >>> OK, that got much further, but I'm now seeing another problem which >>> may (or may not) be related. Building my own code (my model >>> checker), >>> it builds libraries fine, then within tools (I'm using a fairly >>> standard LLVM build environment here), I am seeing the error >>> >>> *** llvm-config doesn't exist - rebuilding it >>> >>> followed by a >>> >>> make: Entering an unknown directory >>> >>> which is complaining about .../tools//bin/llvm-config >>> >>> This didn't happen when I was building with gcc 4.1.x, though of >>> course, my code didn't actually work when compiled with that >>> compiler. >>> >> That's odd. It's the "/bin/" in there that make is complaining about. >> I'm not sure why a different compiler would cause it to change >> behavior. Does adding "VERBOSE=1" to the "make" command shed any >> light >> on what's going wrong here? >> >> -bw >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
(My script does both of those -- the debug build worked (I think), but the release build fails) [s] On Apr 28, 2009, at 5:19 PM, Bill Wendling wrote:> We build debug by default. You will have to add ENABLE_OPTIMIZED=1 on > the "make" command line or --enable-optimized during configuration. > > -bw > > On Tue, Apr 28, 2009 at 5:12 PM, Sarah Thompson <sarah at findatlantis.com > > wrote: >> Hmm... looks like my LLVM build script only built debug versions of >> the tools, not release versions. I'm investigating, I didn't change >> anything that should have caused that. >> >> [s] >> >> On Apr 28, 2009, at 4:56 PM, Bill Wendling wrote: >> >>> On Tue, Apr 28, 2009 at 4:43 PM, Sarah Thompson <sarah at findatlantis.com >>>> wrote: >>>> OK, that got much further, but I'm now seeing another problem which >>>> may (or may not) be related. Building my own code (my model >>>> checker), >>>> it builds libraries fine, then within tools (I'm using a fairly >>>> standard LLVM build environment here), I am seeing the error >>>> >>>> *** llvm-config doesn't exist - rebuilding it >>>> >>>> followed by a >>>> >>>> make: Entering an unknown directory >>>> >>>> which is complaining about .../tools//bin/llvm-config >>>> >>>> This didn't happen when I was building with gcc 4.1.x, though of >>>> course, my code didn't actually work when compiled with that >>>> compiler. >>>> >>> That's odd. It's the "/bin/" in there that make is complaining >>> about. >>> I'm not sure why a different compiler would cause it to change >>> behavior. Does adding "VERBOSE=1" to the "make" command shed any >>> light >>> on what's going wrong here? >>> >>> -bw >>> >>> _______________________________________________ >>> LLVM Developers mailing list >>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev