This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Linker warning LNK4281
Type: enhancement Stage: resolved
Components: Build Versions: Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, neyuru, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2018-11-15 01:50 by neyuru, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg329938 - (view) Author: Jorge Ramos (neyuru) * Date: 2018-11-15 01:50
When building python 3.6.7 x64 from source I get multiple warnings:

--------------------------------------------------------------------
LINK : LNK4281 - "undesirable base address 0x1D110000 for x64 image; set base address above 4GB for best ASLR optimization".
--------------------------------------------------------------------

after that, the build gives the offending module: 

--------------------------------------
[..\PCbuild\pythoncore.vcxproj]
---------------------------------------

(e.g., there are many others) the .. means whatever parent directory the build files are on. I use the following batch file:

------------------------------------------------------------
Tools\msi\buildrelease.bat -x64 --pgo '-m test -q --pgo'
-------------------------------------------------------------

Is this a problem?
msg329963 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2018-11-15 19:51
No, it's not a problem, just a potential enhancement.
msg329965 - (view) Author: Jorge Ramos (neyuru) * Date: 2018-11-15 20:36
Ok, thanks! If it helps, here are all the modules that gave me that suggestion:

pythoncore.vcxproj
_testbuffer.vcxproj
_testcapi.vcxproj
_testimportmultiple.vcxproj
select.vcxproj
_overlapped.vcxproj
_elementtree.vcxproj
_decimal.vcxproj
unicodedata.vcxproj
_msi.vcxproj
_multiprocessing.vcxproj
_socket.vcxproj
_bz2.vcxproj
_ctypes.vcxproj
_sqlite3.vcxproj
python.vcxproj
pythonw.vcxproj

and it seems that the suggestions were repeated more than once for all of them.
msg351926 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2019-09-11 15:10
I don't remember exactly when, but this is fixed.
History
Date User Action Args
2022-04-11 14:59:08adminsetgithub: 79434
2019-09-11 15:10:11steve.dowersetstatus: open -> closed
resolution: fixed
messages: + msg351926

stage: resolved
2018-11-15 20:36:44neyurusetmessages: + msg329965
2018-11-15 19:51:30brett.cannonsetnosy: + paul.moore, tim.golden, brett.cannon, zach.ware, steve.dower
type: compile error -> enhancement
messages: + msg329963
2018-11-15 01:50:46neyurucreate