digitalmars.D - Building phobos fails on linux system
- Nikhil Padmanabhan (15/15) Dec 06 2013 Hi,
- Dicebot (5/20) Dec 06 2013 I think this flags is set in /etc/dmd.conf (or whenever dmd.conf
- Nikhil Padmanabhan (2/28) Dec 06 2013
Hi, I've been trying to build phobos on a linux system, and it's failing during the link step : /usr/bin/ld: unrecognized option '--no-warn-search-mismatch' Poking at this a little, I see that I'm running a relatively old version of ld : [np274 login-0-0 phobos]$ ld --version GNU ld version 2.17.50.0.6-20.el5_8.3 20061020 and this flag wasn't available then. https://sourceware.org/binutils/docs-2.17/ld/Options.html#Options Unfortunately, I can't upgrade this and was wondering if there was a way to change the linker flags that dmd sends to ld.. Thanks in advance! -- Nikhil
Dec 06 2013
On Friday, 6 December 2013 at 19:04:08 UTC, Nikhil Padmanabhan wrote:Hi, I've been trying to build phobos on a linux system, and it's failing during the link step : /usr/bin/ld: unrecognized option '--no-warn-search-mismatch' Poking at this a little, I see that I'm running a relatively old version of ld : [np274 login-0-0 phobos]$ ld --version GNU ld version 2.17.50.0.6-20.el5_8.3 20061020 and this flag wasn't available then. https://sourceware.org/binutils/docs-2.17/ld/Options.html#Options Unfortunately, I can't upgrade this and was wondering if there was a way to change the linker flags that dmd sends to ld.. Thanks in advance! -- NikhilI think this flags is set in /etc/dmd.conf (or whenever dmd.conf is located on your system). At least mine has "-L--no-warn-search-mismatch" there.
Dec 06 2013
That fixed it! Thanks! On Friday, 6 December 2013 at 19:09:26 UTC, Dicebot wrote:On Friday, 6 December 2013 at 19:04:08 UTC, Nikhil Padmanabhan wrote:Hi, I've been trying to build phobos on a linux system, and it's failing during the link step : /usr/bin/ld: unrecognized option '--no-warn-search-mismatch' Poking at this a little, I see that I'm running a relatively old version of ld : [np274 login-0-0 phobos]$ ld --version GNU ld version 2.17.50.0.6-20.el5_8.3 20061020 and this flag wasn't available then. https://sourceware.org/binutils/docs-2.17/ld/Options.html#Options Unfortunately, I can't upgrade this and was wondering if there was a way to change the linker flags that dmd sends to ld.. Thanks in advance! -- NikhilI think this flags is set in /etc/dmd.conf (or whenever dmd.conf is located on your system). At least mine has "-L--no-warn-search-mismatch" there.
Dec 06 2013