Thank you, David.
It works now.

-Xiong

2009/3/19 David Reiss <[email protected]>:
> Be sure to set that when you run ./configure as well.  The
> configure script attempts to get information about the environment,
> and if you don't have your environment set up properly when you run
> it, it will get the wrong information.  I just set that value before
> running configure and make, and I got a clean build.
>
> I encountered a bug when running with -j8 though.  I'll try to fix
> it ASAP, but you should stick to a serial build for now.
>
> --David
>
> xu xiong wrote:
>> Hi David,
>>
>> Sorry I forgot to set the library path.
>>
>> [thriftt...@localhost ~]$ export LD_LIBRARY_PATH=/usr/local/lib
>> [thriftt...@localhost ~]$ ./a.out
>> [thriftt...@localhost ~]$ echo $?
>> 0
>>
>> Can you try again?
>>
>> -Xiong
>>
>>
>> 2009/3/19 David Reiss <[email protected]>:
>>> Thanks for the account.  It seems that I cannot compile and run
>>> even a trivial C++ program on your host:
>>>
>>> [thriftt...@localhost ~]$ cat test.cc
>>> int main() { return 0; }
>>> [thriftt...@localhost ~]$ g++ -Wall test.cc
>>> [thriftt...@localhost ~]$ ./a.out
>>> ./a.out: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by 
>>> /usr/lib/libstdc++.so.6)
>>> [thriftt...@localhost ~]$ echo $?
>>> 1
>>>
>>> It looks like maybe your libstdc++ and gcc are not compatible?
>>> I'm not really sure how to fix this, but I would suggest starting
>>> by reinstalling gcc, g++, and libstdc++.  (I am not liable if
>>> this totally breaks your machine.  It is just a guess.)
>>>
>>> I'll also create a task to make configure fail faster when
>>> problems like this occur.  We could have given you a *much*
>>> better error message.
>>>
>>> --David
>>>
>>> David Reiss wrote:
>>>> I'm not sure what the problem is, then.  This has never been
>>>> reported before.  If you have a shell account that you can
>>>> give me access to where I can reproduce the problem, I can
>>>> try to solve it, otherwise I'm not sure what else to try.
>>>>
>>>> --David
>>>>
>>>> xu xiong wrote:
>>>>>> Can you try compiling a file containing only...
>>>>>>
>>>>>> #include <cstdlib>
>>>>>>
>>>>>> with the command "g++ -c -Wall test.cc"?  If that doesn't work,
>>>>>> you definitely have something wronte with your libc or libstdc++
>>>>>> installation.  If it does, I'm not sure what the problem is.
>>>>>>
>>>>> It does work.
>>>>> So I'm totally lost.
>>>>> Can the glibc is not configured right?
>>>>> I also tried to compile glibc2.6.1 but failed.
>>>>>
>>>>> -Xiong
>

Reply via email to