bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shared library build for GLPK 5.0 fails on Windows


From: Andrew Makhorin
Subject: Re: Shared library build for GLPK 5.0 fails on Windows
Date: Wed, 06 Jan 2021 12:24:02 +0300

On Tue, 2021-01-05 at 17:38 -0800, Christian Diener wrote:
> Hi,
> 
> we are observing build failures on conda-forge for GLPK 5.0. The used
> build instructions are in brief:
> 
> ```
> cd w%ARCH%
> copy config_VC config.h
>  
> :: Get the major minor version info (e.g. `4_60`)
> python -c "import os;
> print('_'.join(os.environ['PKG_VERSION'].split('.')[:2]))" > temp.txt
> set /p MAJ_MIN_VER=<temp.txt
>  
> nmake /f Makefile_VC
> nmake /f Makefile_VC_DLL
>  
> copy glpsol.exe %LIBRARY_BIN%
> copy ..\src\glpk.h %LIBRARY_INC%
> copy glpk.lib %LIBRARY_LIB%
> copy glpk_%MAJ_MIN_VER%.dll %LIBRARY_BIN%
> copy glpk_%MAJ_MIN_VER%.dll %LIBRARY_BIN%\glpk.dll
>  
> if errorlevel 1 exit 1
> ```
> 
> Which will error out with the following on the Azure runner:
> 
> ```
> glpk_5_0.def : error LNK2001: unresolved external symbol
> glp_netgen_prob
> glpk_5_0.lib : fatal error LNK1120: 1 unresolved externals
> ```

Thank you for your bug report.

To fix the bug please replace file glpk/src/api/netgen.c by the attached
one and then rebuild the package as usual.




> 
> A full log and definition of the runner can be found at https://dev.az
> ure.com/conda-forge/feedstock-
> builds/_build/results?buildId=252916&view=logs&j=a70f640f-cc53-5cd3-
> 6cdc-236a1aa90802&t=f5d15007-a01c-5ad8-c9ce-4d519d3b275f
> 
> Thanks for your help!
> 
> 
> Christian Diener, PhD
> cdiener@isbscience.org
> +1 (206) 732 1363
> 
> Institute for Systems Biology
> 401 Terry Ave. N.
> 98109 Seattle, WA, USA
> 
> Website | Twitter | Github

Attachment: netgen.c
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]