Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis paths used in build on linux #228

Open
yashton opened this issue May 29, 2024 · 3 comments
Open

Travis paths used in build on linux #228

yashton opened this issue May 29, 2024 · 3 comments

Comments

@yashton
Copy link

yashton commented May 29, 2024

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
Copy link
Member

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.

@yashton
Copy link
Author

yashton commented Jul 25, 2024

I cloned this repository, on master. I cloned it into my home directory.

@tkralphs
Copy link
Member

This is not really enough information. You will need to do some digging and provide a much more detailed report if you want help. I will say that if that is indeed the way you invoked configure, then the paths have to be coming from pkg-config files that are in your PKG_CONFIG_PATH somewhere. Perhaps you downloaded some packages that were originally built on travis, in which case the generated .pc files would have those path embedded. pkg-config files are not portable in general (there is a configure flag --enable-relocatable to make the paths relative). I guess you need to find the .pc files that contains these errant paths. Try pkg-config --cflags coinglpk or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants