Hi again
Now i have a latest version of libstdc++(6.0.19) in ~/opt/lib
ls -l
total 964
lrwxrwxrwx 1 finance users 19 Sep 25 21:52 libstdc++.so.6 ->
libstdc++.so.6.0.19
-rw-r----- 1 finance users 979080 Sep 25 21:22 libstdc++.so.6.0.19
And i set the LD_LIBRARY_PATH to check that path first.
echo $LD_LIBRARY_PATH
/home/finance/opt/lib:/opt/torque-4.1.5_1_TJUHPCC/lib:/opt/openmpi-1.4.5_2_TJUHPCC/lib:/opt/intel/Compiler/11.1/059/lib/intel64:/opt/intel/Compiler/11.1/059/ipp/em64t/sharedlib:/opt/intel/Compiler/11.1/059/mkl/lib/em64t:/opt/intel/Compiler/11.1/059/tbb/intel64/cc4.1.0_libc2.4_kernel2.6.16.21/lib:
I wrote a HelloWorld program and compiled it using g++.
And the i do ldd a.out, i see
libstdc++.so.6 => /home/finance/opt/lib/libstdc++.so.6 (0x00002ab06e73c000)
But i still i get the same error as before when compiling my x10 code:
x10c++: /home/finance/x10-2.4.3.2/stdlib/lib/libx10.so: undefined reference to
`std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char,
std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&,
char const*, long)@GLIBCXX_3.4.9'
collect2: ld returned 1 exit status
x10c++: Non-zero return code: 1
2 errors.
It seems the compiler not looking for the path ~/opt/lib/
How can i tell x10c++ where to find the library or there’s something i do wrong?
在 2014年9月23日,下午7:35,WangChen <wang...@163.com> 写道:
> I think the problem might be libstdc++
> On my machine, i have libstdc++.so.6.0.8 in /usr/lib
>
> If i do rpm -qa | grep libstdc i get
>
> compat-libstdc++-33-3.2.3-61
> libstdc++44-devel-4.4.6-3.el5.1
> libstdc++-4.1.2-52.el5
> libstdc++-4.1.2-52.el5
> compat-libstdc++-33-3.2.3-61
>
>
> And i do strings libstdc++.so.6.0.8 | grep LIBCXX, i see
>
> GLIBCXX_3.4
> GLIBCXX_3.4.1
> GLIBCXX_3.4.2
> GLIBCXX_3.4.3
> GLIBCXX_3.4.4
> GLIBCXX_3.4.5
> GLIBCXX_3.4.6
> GLIBCXX_3.4.7
> GLIBCXX_3.4.8
> GLIBCXX_FORCE_NEW
>
> So i will try to install a higher version of libstdc++ and see how it goes.
>
>
>
> 在 2014年9月23日,上午10:17,David P Grove <gro...@us.ibm.com> 写道:
>
>> WangChen <wang...@163.com> wrote on 09/21/2014 09:12:52 AM:
>> >
>> > Hi, i’m compiling my code and get the following errors.
>> > But I compiling the same code with no problem on my Mac10.9.4 and
>> > Archlinux.
>> >
>> > x10c++: /home/finance/x10-2.4.3.2/stdlib/lib/libx10.so: undefined
>> > reference to `std::basic_ostream<char, std::char_traits<char> >&
>> > std::__ostream_insert<char, std::char_traits<char> >
>> > (std::basic_ostream<char, std::char_traits<char> >&, char const*,
>> > long)@GLIBCXX_3.4.9'
>> > collect2: ld returned 1 exit status
>> > x10c++: Non-zero return code: 1
>> >
>> > I use x10-2.4.3.2 for linux x86_64
>> >
>> > uname -a:
>> > Linux node85 2.6.18-308.24.1.el5_TJUHPCC #1 SMP Tue Jul 16 18:07:41
>> > CST 2013 x86_64 x86_64 x86_64 GNU/Linux
>> >
>> > g++ —version:
>> > g++ (GCC) 4.4.6 20110731 (Red Hat 4.4.6-3)
>> >
>>
>> Hi,
>>
>> My first wild guess would be a mismatch between the libstdc++ available on
>> your machine, and the one the pre-built X10 libx10.so is expecting. Our
>> build machine looks fairly similar to yours, so I'm not that confident in my
>> guess. But it seems possible.
>>
>> Our build machine is RedHat 6.5. If I do rpm -qa | grep libstdc++, I see:
>>
>> [dgrove@triloka1 ~]$ rpm -qa | grep libstdc++
>> libstdc++-4.4.7-4.el6.x86_64
>> libstdc++-4.4.7-4.el6.i686
>> libstdc++-devel-4.4.7-4.el6.x86_64
>>
>> What do you see on your linux box?
>>
>> --dave
>> ------------------------------------------------------------------------------
>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk_______________________________________________
>> X10-users mailing list
>> X10-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/x10-users
>>
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk_______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users