Re: Next gcc46 Problem
Le 22 juil. 2010 à 07:55, Ryan Schmidt ryandes...@macports.org a écrit : I get the same as you. So either this is not how GCC is meant to be used (ask the developers of GCC how it's meant to be used) or there is a bug in GCC (ask the developers of GCC to fix it) or there is some alternate way we need to install GCC so it installs properly (ask the developers of GCC what we need to change in our packaging to make it work). That may prove difficult, since Darwin is not considered a prime target of GCC these days. Vincent Sent from my iPhone4 ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: Next gcc46 Problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/22/10 01:55 , Ryan Schmidt wrote: On Jul 22, 2010, at 00:38, Johannes Ruscheinski wrote: On Tue, Jul 20, 2010 at 3:14 PM, Ryan Schmidt wrote: On Jul 20, 2010, at 12:58, Johannes Ruscheinski wrote: gcc-mp-4.6 -std=gnu++0x AutoTest.cc I get: Undefined symbols: std::ios_base::Init::Init(), referenced from: __static_initialization_and_destruction_0(int, int) in ccyAO1Lq.o Just off the top of my head, try adding -lstdc++. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxJHqgACgkQIn7hlCsL25X7RACfWUk8UOvgSE/82s3NV/Ng8Rjd sVEAoMtoZoYa0aJ+EyRmL++F1VcqxRuF =cVxv -END PGP SIGNATURE- ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: Next gcc46 Problem
On Tue, Jul 20, 2010 at 3:14 PM, Ryan Schmidt ryandes...@macports.org wrote: On Jul 20, 2010, at 12:58, Johannes Ruscheinski wrote: After finally successfully installing gcc46 and compiling a tiny test program with gcc-mp-4.6 -std=gnu++0x AutoTest.cc I get: Undefined symbols: std::ios_base::Init::Init(), referenced from: __static_initialization_and_destruction_0(int, int) in ccyAO1Lq.o std::ios_base::Init::~Init(), referenced from: __static_initialization_and_destruction_0(int, int) in ccyAO1Lq.o std::basic_ostreamchar, std::char_traitschar std::endlchar, std::char_traitschar (std::basic_ostreamchar, std::char_traitschar ), referenced from: _main in ccyAO1Lq.o std::basic_ostreamchar, std::char_traitschar ::operator(std::basic_ostreamchar, std::char_traitschar (*)(std::basic_ostreamchar, std::char_traitschar )), referenced from: _main in ccyAO1Lq.o std::basic_ostreamchar, std::char_traitschar ::operator(int), referenced from: _main in ccyAO1Lq.o std::cout, referenced from: _main in ccyAO1Lq.o ld: symbol(s) not found collect2: ld returned 1 exit status How can I resolve this? Do you have any environment variables whose names begin with DYLD (check by typing env), or do you have anything installed in /usr/local? These things can interfere. Just checked = No If that's not it, you may need to ask the developers of gcc. Of course I could not attempt to replicate the problem on my system because: $ gcc-mp-4.6 -std=gnu++0x AutoTest.cc gcc-mp-4.6: error: AutoTest.cc: No such file or directory gcc-mp-4.6: fatal error: no input files compilation terminated. If you'd like us to try, supply the source file you used. Here are the file's contents: #include iostream int main() { auto i = 5; std::cout i std::endl; } -- Johannes Obligatory current favourite quotes: Religion is regarded by the common people as true, by the wise as false, and by the rulers as useful. -- Seneca I have more confidence in the methods of science, based on the amazing record of science and its ability over the centuries to answer unanswerable questions, than I do in the methods of faith (what are they?). -- David J. Gross Physics Nobel Laureate Atheism is a religion to the same extent that not collecting stamps is a hobby. -- seen on Slashdot.org ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: Next gcc46 Problem
On Jul 22, 2010, at 00:38, Johannes Ruscheinski wrote: On Tue, Jul 20, 2010 at 3:14 PM, Ryan Schmidt wrote: On Jul 20, 2010, at 12:58, Johannes Ruscheinski wrote: gcc-mp-4.6 -std=gnu++0x AutoTest.cc I get: Undefined symbols: std::ios_base::Init::Init(), referenced from: __static_initialization_and_destruction_0(int, int) in ccyAO1Lq.o std::ios_base::Init::~Init(), referenced from: __static_initialization_and_destruction_0(int, int) in ccyAO1Lq.o std::basic_ostreamchar, std::char_traitschar std::endlchar, std::char_traitschar (std::basic_ostreamchar, std::char_traitschar ), referenced from: _main in ccyAO1Lq.o std::basic_ostreamchar, std::char_traitschar ::operator(std::basic_ostreamchar, std::char_traitschar (*)(std::basic_ostreamchar, std::char_traitschar )), referenced from: _main in ccyAO1Lq.o std::basic_ostreamchar, std::char_traitschar ::operator(int), referenced from: _main in ccyAO1Lq.o std::cout, referenced from: _main in ccyAO1Lq.o ld: symbol(s) not found collect2: ld returned 1 exit status If you'd like us to try, supply the source file you used. Here are the file's contents: #include iostream int main() { auto i = 5; std::cout i std::endl; } I get the same as you. So either this is not how GCC is meant to be used (ask the developers of GCC how it's meant to be used) or there is a bug in GCC (ask the developers of GCC to fix it) or there is some alternate way we need to install GCC so it installs properly (ask the developers of GCC what we need to change in our packaging to make it work). ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Next gcc46 Problem
After finally successfully installing gcc46 and compiling a tiny test program with gcc-mp-4.6 -std=gnu++0x AutoTest.cc I get: Undefined symbols: std::ios_base::Init::Init(), referenced from: __static_initialization_and_destruction_0(int, int) in ccyAO1Lq.o std::ios_base::Init::~Init(), referenced from: __static_initialization_and_destruction_0(int, int) in ccyAO1Lq.o std::basic_ostreamchar, std::char_traitschar std::endlchar, std::char_traitschar (std::basic_ostreamchar, std::char_traitschar ), referenced from: _main in ccyAO1Lq.o std::basic_ostreamchar, std::char_traitschar ::operator(std::basic_ostreamchar, std::char_traitschar (*)(std::basic_ostreamchar, std::char_traitschar )), referenced from: _main in ccyAO1Lq.o std::basic_ostreamchar, std::char_traitschar ::operator(int), referenced from: _main in ccyAO1Lq.o std::cout, referenced from: _main in ccyAO1Lq.o ld: symbol(s) not found collect2: ld returned 1 exit status How can I resolve this? -- Johannes Obligatory current favourite quotes: Religion is regarded by the common people as true, by the wise as false, and by the rulers as useful. -- Seneca I have more confidence in the methods of science, based on the amazing record of science and its ability over the centuries to answer unanswerable questions, than I do in the methods of faith (what are they?). -- David J. Gross Physics Nobel Laureate Atheism is a religion to the same extent that not collecting stamps is a hobby. -- seen on Slashdot.org ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: Next gcc46 Problem
On Jul 20, 2010, at 12:58, Johannes Ruscheinski wrote: After finally successfully installing gcc46 and compiling a tiny test program with gcc-mp-4.6 -std=gnu++0x AutoTest.cc I get: Undefined symbols: std::ios_base::Init::Init(), referenced from: __static_initialization_and_destruction_0(int, int) in ccyAO1Lq.o std::ios_base::Init::~Init(), referenced from: __static_initialization_and_destruction_0(int, int) in ccyAO1Lq.o std::basic_ostreamchar, std::char_traitschar std::endlchar, std::char_traitschar (std::basic_ostreamchar, std::char_traitschar ), referenced from: _main in ccyAO1Lq.o std::basic_ostreamchar, std::char_traitschar ::operator(std::basic_ostreamchar, std::char_traitschar (*)(std::basic_ostreamchar, std::char_traitschar )), referenced from: _main in ccyAO1Lq.o std::basic_ostreamchar, std::char_traitschar ::operator(int), referenced from: _main in ccyAO1Lq.o std::cout, referenced from: _main in ccyAO1Lq.o ld: symbol(s) not found collect2: ld returned 1 exit status How can I resolve this? Do you have any environment variables whose names begin with DYLD (check by typing env), or do you have anything installed in /usr/local? These things can interfere. If that's not it, you may need to ask the developers of gcc. Of course I could not attempt to replicate the problem on my system because: $ gcc-mp-4.6 -std=gnu++0x AutoTest.cc gcc-mp-4.6: error: AutoTest.cc: No such file or directory gcc-mp-4.6: fatal error: no input files compilation terminated. If you'd like us to try, supply the source file you used. ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users