[gradsusr] Trying to build GrADS on Cray Suse Linux
brown wrap
gramos at yahoo.com
Fri Jan 4 15:01:05 EST 2019
I built all of the libraries, but for some reason they weren't all recognized. I went back to the pre-built libraries to try and compile, that is when the png12 error came up. So, now I am back to using the modified prebuilt libraries with the pre-compiled libraries, that works. I wanted to build from source since a couple of people here like to add features.
Greg
On Friday, January 4, 2019, 10:51:46 AM PST, Jennifer M Adams <jadams21 at gmu.edu> wrote:
I don’t have access to a SuSE system anymore. If you’re having problems using my pre-built supplibs, the solution is to build them yourself. Instructions are at http://cola.gmu.edu/grads/gadoc/supplibs2.html. Building the gd library is very straightforward.
—Jennifer
> On Jan 4, 2019, at 1:34 PM, brown wrap <gramos at yahoo.com> wrote:
>
> I am using your supplibs after modifying the .la paths, so I don't know why png12 comes up.
>
>
> Greg
>
>
>
>
> On Friday, January 4, 2019, 8:09:14 AM PST, Jennifer M Adams <jadams21 at gmu.edu> wrote:
>
>
> Maybe your gd build was linked with libpng12, but you will definitely need libpng15 to get Cairo to work properly.
> —Jennifer
>
> > On Jan 3, 2019, at 5:50 PM, brown wrap <gramos at yahoo.com> wrote:
> >
> > I have made the suggested path changes. The compile is looking for png12:
> >
> > ramos at leo1:~/grads-2.2.0> make
> > Making all in src
> > make[1]: Entering directory '/lustre/scratch/users/ramos/grads-2.2.0/src'
> > make all-am
> > make[2]: Entering directory '/lustre/scratch/users/ramos/grads-2.2.0/src'
> > /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -rdynamic -L/lustre/scratch/software/supplibs.prebuilt/lib -o libgxpGD.la -rpath /users/ramos/grads-2.2.0/lib libgxpGD_la-gxprintGD.lo libgxpGD_la-gxGD.lo -L/lustre/scratch/software/supplibs.prebuilt/lib -lgd -lm
> > libtool: link: gcc -shared -fPIC -DPIC .libs/libgxpGD_la-gxprintGD.o .libs/libgxpGD_la-gxGD.o -Wl,-rpath -Wl,/lustre/scratch/software/supplibs.prebuilt/lib -Wl,-rpath -Wl,/lustre/scratch/software/supplibs.prebuilt/lib -L/lustre/scratch/software/supplibs.prebuilt/lib /lustre/scratch/software/supplibs.prebuilt/lib/libgd.so -L/usr/lib64 -lXpm -lX11 -ljpeg /lustre/scratch/software/supplibs.prebuilt/lib/libfontconfig.so /lustre/scratch/software/supplibs.prebuilt/lib/libfreetype.so -lpng12 -lz -lm -O2 -Wl,-soname -Wl,libgxpGD.so.0 -o .libs/libgxpGD.so.0.0.0
> > /usr/bin/ld: cannot find -lpng12
> > collect2: error: ld returned 1 exit status
> > Makefile:641: recipe for target 'libgxpGD.la' failed
> > make[2]: *** [libgxpGD.la] Error 1
> > make[2]: Leaving directory '/lustre/scratch/users/ramos/grads-2.2.0/src'
> > Makefile:543: recipe for target 'all' failed
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory '/lustre/scratch/users/ramos/grads-2.2.0/src'
> > Makefile:454: recipe for target 'all-recursive' failed
> > make: *** [all-recursive] Error 1
> > ramos at leo1:~/grads-2.2.0>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Monday, December 31, 2018, 5:43:22 AM PST, Jennifer M Adams <jadams21 at gmu.edu> wrote:
> >
> >
> > This earlier post is relevant : http://gradsusr.org/pipermail/gradsusr/2018-June/041735.html
> >
> > Version 2.2 uses libtool to create the shared object (.so) or dynamically loading (.dylib) libraries. The .la files in my SUPPLIBS distribution contain full paths from the systems on which I built them which is why libtool is returning those error messages when you run it on your system. You can try editing the .la files to include the full path to your installation location.
> > —Jennifer
> >
> >
> > > On Dec 28, 2018, at 9:52 PM, brown wrap <gramos at yahoo.com> wrote:
> > >
> > > I meant to point out I tried to use the prebuilt Suse libraries and they failed:
> > >
> > > Dec 28 at 6:30 PM
> > > ramos at leo1:/lustre/scratch/software/supplibs.prebuilt/lib> more libnetcdf.settings
> > > # NetCDF C Configuration Summary
> > > ==============================
> > >
> > > # General
> > > -------
> > > NetCDF Version: 4.3.3
> > > Configured On: Tue Aug 1 11:38:07 MDT 2017
> > > Host System: x86_64-unknown-linux-gnu
> > > Build Directory: /glade/u/home/jennifer/suse-12.1/supplibs/src/netcdf-4.3.3
> > > Install Prefix: /glade/u/home/jennifer/suse-12.1/supplibs
> > >
> > > # Compiling Options
> > > -----------------
> > > C Compiler: /usr/bin/gcc
> > > CFLAGS: -fPIC
> > > CPPFLAGS: -I/glade/u/home/jennifer/suse-12.1/supplibs/include
> > > LDFLAGS: -L/glade/u/home/jennifer/suse-12.1/supplibs/lib
> > > AM_CFLAGS:
> > > AM_CPPFLAGS:
> > > AM_LDFLAGS:
> > > Shared Library: yes
> > > Static Library: yes
> > > Extra libraries: -lhdf5_hl -lhdf5 -ldl -lm -lm -ldl -lcurl -lssl -lrt -lz
> > >
> > > # Features
> > > --------
> > > NetCDF-2 API: yes
> > > NetCDF-4 API: yes
> > > HDF4 Support: no
> > > HDF5 Support: yes
> > > PNetCDF Support: no
> > > Parallel Support: no
> > > DAP Support: yes
> > > Diskless Support: yes
> > > MMap Support: no
> > > JNA Support: no
> > > ramos at leo1:/lustre/scratch/software/supplibs.prebuilt/lib>
> > >
> > >
> > > While trying to compile:
> > >
> > > libtool: link: warning: library `/lustre/scratch/software/supplibs.prebuilt/lib/libgd.la' was moved.
> > > libtool: link: warning: library `/lustre/scratch/software/supplibs.prebuilt/lib/libfontconfig.la' was moved.
> > > /usr/bin/grep: /glade/u/home/jennifer/suse-12.1/supplibs/lib/libfreetype.la: No such file or directory
> > > /usr/bin/sed: can't read /glade/u/home/jennifer/suse-12.1/supplibs/lib/libfreetype.la: No such file or directory
> > > libtool: link: `/glade/u/home/jennifer/suse-12.1/supplibs/lib/libfreetype.la' is not a valid libtool archive
> > > Makefile:641: recipe for target 'libgxpGD.la' failed
> > > make[2]: *** [libgxpGD.la] Error 1
> > > make[2]: Leaving directory '/lustre/scratch/users/ramos/grads-2.2.0/src'
> > > Makefile:543: recipe for target 'all' failed
> > > make[1]: *** [all] Error 2
> > > make[1]: Leaving directory '/lustre/scratch/users/ramos/grads-2.2.0/src'
> > > Makefile:454: recipe for target 'all-recursive' failed
> > > make: *** [all-recursive] Error 1
> > > ramos at leo1:~/grads-2.2.0>
> > >
> > >
> > >
> > >
> > > brownwrap.blogspot.com
> > >
> > > brownwraps-linuxfromscratch.blogspot.com/
> > >
> > >
> > >
> > >
> > > On Thursday, December 27, 2018, 3:12:19 PM PST, Jennifer M Adams <jadams21 at gmu.edu> wrote:
> > >
> > >
> > > A google search for “ac_nonexistent.h" reveals that might be a deliberate feature of the autoconfigure tools. See, for example, https://lists.gnu.org/archive/html/autoconf/2011-03/msg00009.html.
> > >
> > > To find out why grib2 is not enabled, open your config.log in a text editor and search for the string ‘grib2’. Here’s a block of text where I find it in my config.log that has succeeded:
> > >
> > > configure:19014: checking grib2.h usability
> > > configure:19014: /usr/bin/gcc -c -fPIC -I/opt/local/include -I/Users/jma/grads/supplibs/include conftest.c >&5
> > > configure:19014: $? = 0
> > > configure:19014: result: yes
> > > configure:19014: checking grib2.h presence
> > > configure:19014: /usr/bin/gcc -E -I/Users/jma/grads/supplibs/include conftest.c
> > > configure:19014: $? = 0
> > > configure:19014: result: yes
> > > configure:19014: checking for grib2.h
> > > configure:19014: result: yes
> > > configure:19016: checking for main in -lgrib2c
> > > configure:19035: /usr/bin/gcc -o conftest -fPIC -I/opt/local/include -I/Users/jma/grads/supplibs/include -L/Users/jma/grads/supplibs/lib conftest.c -lgrib2c -lm >&5
> > > configure:19035: $? = 0
> > > configure:19044: result: yes
> > >
> > > Do the same for ‘netcdf’ or any other library you need — you’ll find the similar gcc calls to compile conftest.c (a tiny program created by the configure script that loads the desired header file or library) followed by the errors that gcc returned when it failed. Depending on the error messages, you may need to adjust your $CFLAGS or $CPPFLAGS or $LIBS environnment variables.
> > >
> > > —Jennifer
> > >
> > >
> > >> On Dec 27, 2018, at 4:25 PM, brown wrap <gramos at yahoo.com> wrote:
> > >>
> > >> In the config.log file I am seeing a number of these:
> > >>
> > >> configure:7333: gcc -E -I/lustre/scratch/software/supplibs/include conftest.c
> > >> conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory
> > >> #include <ac_nonexistent.h>
> > >> ^~~~~~~~~~~~~~~~~~
> > >> compilation terminated.
> > >>
> > >>
> > >> Greg
> > >>
> > >>
> > >>
> > >>
> > >> On Thursday, December 27, 2018, 9:48:38 AM PST, Jennifer M Adams <jadams21 at gmu.edu> wrote:
> > >>
> > >>
> > >> Look in config.log for the errors when trying to compile test programs with grib2, hdf4, and netcdf. The output to the terminal when running the configure script will also tell you where things went wrong.
> > >> —Jennifer
> > >>
> > >> > On Dec 26, 2018, at 10:44 PM, brown wrap <gramos at yahoo.com> wrote:
> > >> >
> > >> > I am trying to build GrADS on a Cray. I have built all of the libraries, but several are not being found:
> > >> >
> > >> > +=========================================================================+
> > >> > GrADS 2.2.0 : Configured on 12/27/18 for x86_64-unknown-linux-gnu
> > >> > +=========================================================================+
> > >> >
> > >> > +-------------------------------+
> > >> > | |
> > >> > | GrADS will be built with: |
> > >> > | |
> > >> > | - GUI disabled |
> > >> > | + READLINE enabled |
> > >> > | + GEOTIFF enabled |
> > >> > | + SHAPEFILE enabled |
> > >> > | + GD enabled |
> > >> > | + CAIRO enabled |
> > >> > | - GRIB2 disabled |
> > >> > | - HDF4 disabled |
> > >> > | + HDF5 enabled |
> > >> > | - NETCDF disabled |
> > >> > | - OPeNDAP disabled |
> > >> > | |
> > >> > +-------------------------------+
> > >> >
> > >> > Both HDF4 and NetCDF are there in the supplibs directory. Any ideas?
> > >>
> > >> >
> > >> > _______________________________________________
> > >> > gradsusr mailing list
> > >> > gradsusr at gradsusr.org
> > >> > http://secure-web.cisco.com/1v9r5rJb1OuQ69Htts-wjzgAMQT1C6_XD39z9wPsnQdKnQbtH0Vak9RsJIW3AFQEcrulhFV01lam7qwdTwSNd6QUktbwz9u0LZIinlappNmvhdlU1kPuzgA6fDJH2fOOrrYmWtHsSdjDq10otqyYApiDgieEidMPrGgNqA63whXU8i1Au4pwm00d20GaOj-7Lce-xgj2Xtu1pIiDKi64umNYBq-l46RXok2u_4zS-l9KObH8HD04G5-wmHEErjNnpPvzreimAvSQR3rdqbGYJFz48wJ5G8mbBu6NRCu0ktj4WWX2bGqBEBdQWVMhMaOw_hJUD8HPLSuudDG50xtPpRgyS5uTBrE1b4JS8dxyCn2BA1CMQcORXcxDpvBVgzf2gt1l4UVzcbbvw9JH--X4GciAjPmVrOs4T7r-QEMLlJmv7GsZWRUXd5IGX86lUCvL9/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr
> > >>
> > >> --
> > >> Jennifer Miletta Adams
> > >> Center for Ocean-Land-Atmosphere Studies (COLA)
> > >> George Mason University
> > >>
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> gradsusr mailing list
> > >> gradsusr at gradsusr.org
> > >> http://gradsusr.org/mailman/listinfo/gradsusr
> > >>
> > >> _______________________________________________
> > >> gradsusr mailing list
> > >> gradsusr at gradsusr.org
> > >> http://secure-web.cisco.com/1tevWdtozE8qF4zYZxnQYBWzVWOxgAYAYIOOdaCg7Bls0JEvLzUPUzn4WO3jlX7nm7qStP9AB547b3GVp-M5XM9gMM9aPBEK1VqeYEx0REP8LpxQNCZf7fa8DH0KjP3HcoX_FZpf-s5Ll0Wpm9mVnvvW7b5W9m0rCMyUOpElteDS26dIZsjt8g4WcY6T3wWic6T1KKZXHSbolQCTpNh2Zj67nObmwszorJXj7y8Aod02hqWcagEGe4Epn-EqtStwLS7IODVshiWhdz3WYFyNMpXaUSX1WcfAK9Ibt_tbUbcMt87ixpo1NsZGccagd7y4PsCsh4vLELZtSWCPxksjgU03BkHihLomGRI6_M_Do3Y8NBEarhyQYapS0S1TdECvNNUQSmcgWveh859JiU_PU6Au-2DaXIQMTej4zy2YxRORBVl0mALM33P3tKu0vB8uq/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr
> > >>
> > >
> > > --
> > > Jennifer Miletta Adams
> > > Center for Ocean-Land-Atmosphere Studies (COLA)
> > > George Mason University
> > >
> > >
> > >
> > > _______________________________________________
> > > gradsusr mailing list
> > > gradsusr at gradsusr.org
> > > http://gradsusr.org/mailman/listinfo/gradsusr
> > > _______________________________________________
> > > gradsusr mailing list
> > > gradsusr at gradsusr.org
> > > http://secure-web.cisco.com/1lPNe0vvn9QgiXDZE4nRsdKdsEWLDtUUV5caKoEzWaiOYwLVBJO-OwBe-hf7rt_gZ942xuHvS3OoR9PhFmtDA4NZAgisvGXDI9YLGcZoZWDt6ig9xSP44a58V3RYFO-27UMt-nFv5IIT0niDcoTtM173lKVvcuyBpM-TGhZHk_LCBAwYYN82QvI-Wt5OujIs0OanMwoLdyPdGz9SqlzmTdgESqd5qnRNdE8FA9vEUnWEqF4wS3l--BVcq6hmoCuhlSiH0bk1EB2eb-DTibfyOxxM0D_cfxr7mBpEFhzAD9B2Djch6GT0MORtHYBOKEk9sP8UvUwlmgiq6BMzbrXwPL_Sn2wiuqs9sg9kjYnYzWdOFSDGtBgWnVkX3wJa6hkEYS4iK8d_flwF428agHTkK1EVNzVdCFTBm4n9l1AnR7M1eyGXWV0oSdRFIB0EXTgcG/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr
> >
> >
> > --
> > Jennifer Miletta Adams
> > Center for Ocean-Land-Atmosphere Studies (COLA)
> > George Mason University
> >
> >
> >
> >
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://secure-web.cisco.com/1Xn1469q3p5H8aDkssTbG6f31IUAo4v6Ck1sFws2QG0BaEcnMvPV8MshugZ49Sl8UafHyhMgqCfxlZvLZptFnUhhTsi0N6pxMmmTkryfY7et2dDU6IWUwxAu0F1iNLfdz9C2MWr39ivMaK0FUmWn2ExjpSwU_-VGKpqyot1Fdjt6k_VB6eTjnd30WzHui8Nz0v5jrTeExjzIJpR29L_rL4OlsY38TyxhPdh4IaKHODLDdb8B99dciIDfQvDuRBsNKWZlJS5YBiQExqgfJJMM8fkLuCJt2RURuWmjqDkKVTq46v1R9vJQynLlM3wdihgJtJPxoK_u4gjsOSoUwih7K4q2d8HMmum-55gV34iLxWyQytqDXgGqB_9e6HT_gyd_Rpi0NQepAFQDBWGMDiavunwp8cEQNnzK2s-rpnJYKHxw675xlQqqFPikgF6zaHucU/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr
>
>
> --
> Jennifer Miletta Adams
> Center for Ocean-Land-Atmosphere Studies (COLA)
> George Mason University
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://secure-web.cisco.com/1AKBLa2vRLxaSVj5r3OJ0pI5tjqN9nzbQ2uLlLvIG7s0c42KOKAMmCZc6WKmrAsMu3KiV2Pvi3a1Z-2WbdJMBq_-Rf1V8GbysDmGtPvBzk3Jsk9BTm_oVVD2uVvwV_cvwWiVFzRWEpWeGSRbi3pI7n_2brfLm3_oddw3NL007sMmRM3PgbywJTmUJbLuFoh63PfD0Nsl1yRr5Ps3pN3VzfcvVwAP0MZ0YE3R2IvNZ6MuGArs1U0gwVCgB2B8jwpLuqre7s_c4xSpw578eFIINSF290U2u5Dx7sklW21y9fVZFhRzo7q8_Cp_OF1uakl8TyUN5ScLfZnJQuZANaeH5Ae1W5gmX3LHvTCEQJSLD-KG8LiQYL8H0ep0r4ZqbHg8TFskCtGe3JnESYH5Bvnxc84Qgu_ydhv193r2lAvdcpUtdWM0Oi3Ba0PoR_ODMC_xJ/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr
--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190104/0fd8cf8b/attachment-0001.html>
More information about the gradsusr
mailing list