Theo Buehler wrotes: > >> configure: error: cannot run C compiled programs. >> If you meant to cross compile, use `--host'. >> See `config.log' for more details >> [8409] Process 414 (/usr/ports/pobj/Python-2.7.12/.configure_done) exited >> with status 256. >> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2659 >> '/usr/ports/pobj/Python-2.7.12/.configure_done') >> *** Error 1 in target '/usr/ports/pobj/Python-2.7.12/.configure_done' >> [30021] Process 2841 (all) exited with status 256. >> *** Error 1 in /usr/ports/lang/python/2.7 >> (/usr/ports/infrastructure/mk/bsd.port.mk:2389 'all') >> *** Error 1 in target 'all' >> >> I worked on it and found that problem is >> '/usr/ports/pobj/Python-2.7.12/bin/ld' and it is not compatible with >> '/usr/bin/ld': >> >> # rm /usr/ports/pobj/Python-2.7.12/bin/ld >> >> I don't know what might be a good patch for this problem and why this >> happened. > >I see this same error when I try to build python without having >WRKOBJDIR on a filesystem with the wxallowed mount option. > >I suspect you'll find entries like > >/bsd: ./conftest(25593): W^X binary outside wxallowed mountpoint > >in your /var/log/messages. > >To build ports that need to be marked with WXNEEDED, you need to have >WRKOBJDIR (usually /usr/ports/pobj) on a filesystem mounted with >wxallowed. >
Yes, I forgot that. Thanks a lot.