coin-or / CoinUtils

COIN-OR Utilities
Other
42 stars 39 forks source link

Travis paths used in build on linux #228

Open yashton opened 1 month ago

yashton commented 1 month ago

I tried to build on linux . I have GLPK installed in ~/.local.

Linux 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Thu Nov 16 10:29:04 EST 2023 x86_64 x86_64` x86_64 GNU/Linux

./configure --prefix=/home/snelgrov/.local
make install

/home/travis/build/coin-or/dist is used as the prefix in a bunch of the generated configuration.

I had to manually replace this with my local prefix to get the build to work.

CoinUtils/src/Makefile                                                                                                                                                                                                                                                           
148:COINUTILSLIB_CFLAGS = -I/home/travis/build/coin-or/dist/include/coin/ThirdParty                                                                                                                                                                                              
151:COINUTILSLIB_LIBS = -lbz2 -lz -L/home/travis/build/coin-or/dist/lib -lcoinglpk -ldl -lm -lgmp  -llapack -lblas -lm                                                                                                                                                           
204:GLPK_CFLAGS = -I/home/travis/build/coin-or/dist/include/coin/ThirdParty                                                                                                                                                                                                      
209:GLPK_LIBS = -L/home/travis/build/coin-or/dist/lib -lcoinglpk -ldl -lm -lgmp                                                                                                                                                                                                  
242:NETLIB_DATA = /home/travis/build/coin-or/dist/share/coin/Data/Netlib                                                                                                                                                                                                         
263:SAMPLE_DATA = /home/travis/build/coin-or/dist/share/coin/Data/Sample                                                                                                                                                                                                         

CoinUtils/config.status                                                                                                                                                                                                                                                          
615:s,@COINUTILSLIB_CFLAGS@,-I/home/travis/build/coin-or/dist/include/coin/ThirdParty  ,;t t                                                                                                                                                                                     
616:s,@COINUTILSLIB_LIBS@,-lbz2 -lz -L/home/travis/build/coin-or/dist/lib -lcoinglpk -ldl -lm -lgmp  -llapack -lblas -lm ,;t t                                                                                                                                                   
633:s,@GLPK_LIBS@,-L/home/travis/build/coin-or/dist/lib -lcoinglpk -ldl -lm -lgmp ,;t t                                                                                                                                                                                          
634:s,@GLPK_CFLAGS@,-I/home/travis/build/coin-or/dist/include/coin/ThirdParty ,;t t                                                                                                                                                                                              
644:s,@SAMPLE_DATA@,/home/travis/build/coin-or/dist/share/coin/Data/Sample,;t t                                                                                                                                                                                                  
653:s,@NETLIB_DATA@,/home/travis/build/coin-or/dist/share/coin/Data/Netlib,;t t                                                                                                                                                                                                  

CoinUtils/test/Makefile                                                                                                                                                                                                                                                          
112:COINUTILSLIB_CFLAGS = -I/home/travis/build/coin-or/dist/include/coin/ThirdParty                                                                                                                                                                                              
115:COINUTILSLIB_LIBS = -lbz2 -lz -L/home/travis/build/coin-or/dist/lib -lcoinglpk -ldl -lm -lgmp  -llapack -lblas -lm                                                                                                                                                           
168:GLPK_CFLAGS = -I/home/travis/build/coin-or/dist/include/coin/ThirdParty                                                                                                                                                                                                      
173:GLPK_LIBS = -L/home/travis/build/coin-or/dist/lib -lcoinglpk -ldl -lm -lgmp                                                                                                                                                                                                  
206:NETLIB_DATA = /home/travis/build/coin-or/dist/share/coin/Data/Netlib                                                                                                                                                                                                         
227:SAMPLE_DATA = /home/travis/build/coin-or/dist/share/coin/Data/Sample      
CoinUtils/Makefile                                                                                                                                                                                                                                                               
140:COINUTILSLIB_CFLAGS = -I/home/travis/build/coin-or/dist/include/coin/ThirdParty                                                                                                                                                                                              
143:COINUTILSLIB_LIBS = -lbz2 -lz -L/home/travis/build/coin-or/dist/lib -lcoinglpk -ldl -lm -lgmp  -llapack -lblas -lm                                                                                                                                                           
196:GLPK_CFLAGS = -I/home/travis/build/coin-or/dist/include/coin/ThirdParty                                                                                                                                                                                                      
201:GLPK_LIBS = -L/home/travis/build/coin-or/dist/lib -lcoinglpk -ldl -lm -lgmp
234:NETLIB_DATA = /home/travis/build/coin-or/dist/share/coin/Data/Netlib
255:SAMPLE_DATA = /home/travis/build/coin-or/dist/share/coin/Data/Sample

CoinUtils/config.log
1606:COINUTILSLIB_CFLAGS='-I/home/travis/build/coin-or/dist/include/coin/ThirdParty  '
1609:COINUTILSLIB_LIBS='-lbz2 -lz -L/home/travis/build/coin-or/dist/lib -lcoinglpk -ldl -lm -lgmp  -llapack -lblas -lm '
1662:GLPK_CFLAGS='-I/home/travis/build/coin-or/dist/include/coin/ThirdParty '
1667:GLPK_LIBS='-L/home/travis/build/coin-or/dist/lib -lcoinglpk -ldl -lm -lgmp '
1700:NETLIB_DATA='/home/travis/build/coin-or/dist/share/coin/Data/Netlib'
1721:SAMPLE_DATA='/home/travis/build/coin-or/dist/share/coin/Data/Sample'
tkralphs commented 2 weeks ago

Can you be more specific about exactly what you did, starting from cloning the repo (the directory you cloned it into), checking out a branch (which one), etc.? I guess you are building version 2.11 (or some stable version in any case) and it looks like you must be using coinbrew to do the build.

The paths you are referencing are not affected by --prefix, which has to do with the install location. Those paths are for finding header files and dependent libraries at build time. I guess you must have done something to get CoinUtils to try to link to your installed Glpk (depending on the version, you would add arguments starting with --with-glpk). The compiler flags -I/home/travis/build/coin-or/dist/include/coin/ThirdParty look like they would have been added if you were building Glpk from source using our third party wrapper, not linking to your own installed version. I'll need to have more information to give any better help.