Message: Re: How to apply the Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: How to apply the 

Forum: Installation and Configuration
Re: Question How to apply the "patch"-01 to 4.10.04 (James Rodgers)
Re: Feedback Re: How to apply the (Gabriele Cosmo)
Re: Question Re: How to apply the (Mark M. Ito)
Re: More Re: How to apply the (Gabriele Cosmo)
Re: None Re: How to apply the (Mark M. Ito)
Date: 24 May, 2018
From: Gabriele Cosmo <Gabriele Cosmo>

Hi Mark,

in the download page you always find the source code of the latest patched release
for each series, which is the one you should in principle use (i.e. 10.2.p03 in this case;
you can find the older patched tree here:
http://cern.ch/geant4-data/releases/geant4.10.02.p02.tar.gz).
As for the source downloaded from GitHub, check if the source file reported as error
has indeed the filename converted to wrong case and try renaming it according to
what reported (and also reported in the sources.cmake script of that module); such
wrong capitalisation of some filenames may have happened in old releases
unfortunately, due to a bug in git at the time the source was exported...

Cheers, Gabriele

------------------
On Thu, 24 May 2018 18:22:11 GMT, Mark Ito wrote:
> Gabriele,
> 
> Thanks for that response. Very helpful.
> 
> I tried both approaches. I should note that I am trying to get a 
> specific version: 10.2.2. I did not mention that before now.
> 
> GitHub:
> 
> I tried the tar file from GitHub. That did not work because of the way 
> some files have their filenames capitalized. See the error in the 
> attached file.
> 
> CERN:
> 
> I have been looking for a complete tarball on the CERN site. They used 
> to be at URLs like:
> 
> http://geant4.web.cern.ch/geant4/support/source/geant4.10.02.p02.tar.gz
> 
> but that URL seems not to be there anymore. Starting from
> 
> https://geant4.web.cern.ch/support/download
> 
> I cannot find a complete tarball of 10.2.2. I can find patches, but am 
> unsure about how to apply them. See my previous message.
> 
>    -- Mark
> 
> On 05/22/2018 03:13 AM, Gabriele Cosmo wrote:
> > *** Discussion title: Installation and Configuration
> >
> > Here: 
> > https://urldefense.proofpoint.com/v2/url?u=https-3A__geant4.web.cern.ch_support_download&d=DwIBAw&c=lz9TcOasaINaaC3U7FbMev2lsutwpI4--09aP8Lu18s&r=JKPm21o4RG5_VIn2fXX6tQ&m=E6fmKPM2xA4jNwGVqqusIz3oC_9Oh1Hfu3Cx3NCVC-c&s=uz9nGrxMoox6qF8F2Y9F4jmdhAtgpd3bJVyy-zSH5HA&e= (https://urldefense.proofpoint.com/v2/url?u=https-3A__geant4.web.cern.ch_support_download&amp;d=DwIBAw&amp;c=lz9TcOasaINaaC3U7FbMev2lsutwpI4--09aP8Lu18s&amp;r=JKPm21o4RG5_VIn2fXX6tQ&amp;m=E6fmKPM2xA4jNwGVqqusIz3oC_9Oh1Hfu3Cx3NCVC-c&amp;s=uz9nGrxMoox6qF8F2Y9F4jmdhAtgpd3bJVyy-zSH5HA&amp;e=) 
> >
> > You find the whole pathed source tree, or, if needed, the tar-ball of
> > just the patched source code (inclusive of all previous patches).
> > Or, you can download from GitHub:
> > https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Geant4_geant4_releases&d=DwIBAw&c=lz9TcOasaINaaC3U7FbMev2lsutwpI4--09aP8Lu18s&r=JKPm21o4RG5_VIn2fXX6tQ&m=E6fmKPM2xA4jNwGVqqusIz3oC_9Oh1Hfu3Cx3NCVC-c&s=kelGIW54SBe6-qS3MY5n9jBeHLLC1vnV71ghU4o1Lp4&e= (https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Geant4_geant4_releases&amp;d=DwIBAw&amp;c=lz9TcOasaINaaC3U7FbMev2lsutwpI4--09aP8Lu18s&amp;r=JKPm21o4RG5_VIn2fXX6tQ&amp;m=E6fmKPM2xA4jNwGVqqusIz3oC_9Oh1Hfu3Cx3NCVC-c&amp;s=kelGIW54SBe6-qS3MY5n9jBeHLLC1vnV71ghU4o1Lp4&amp;e=) 
> >
> >
> > -------------
> > On Mon, 21 May 2018 14:46:59 GMT, Mark M. Ito wrote:
> >> Here "patch" has nothing to do with the Linux "patch" program, correct?
> >>
> >> Where do I find the unpatched tar file? What is it called?
> >>
> >> Do I have to add all previous patches serially to get to a given patch
> >> level?
> >>
> >> Here "unpacked" means to do a "tar zxvf <patch tar.gz file>" on top of
> >> the unpatched, unzipped, untar'ed directory, no?
> >>
> >> Where do I find the whole source tree already patched if I want to avoid
> >> dealing with applying patches myself? This is what I used to use, but
> >> the location seems to have changed, yes?
> > -------------------------------------------------------------
> > Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or 
> > unsubscribe) at:
> > https://urldefense.proofpoint.com/v2/url?u=http-3A__hypernews.slac.stanford.edu_HyperNews_geant4_get_installconfig_1896_1_1_1.html&d=DwIBAw&c=lz9TcOasaINaaC3U7FbMev2lsutwpI4--09aP8Lu18s&r=JKPm21o4RG5_VIn2fXX6tQ&m=E6fmKPM2xA4jNwGVqqusIz3oC_9Oh1Hfu3Cx3NCVC-c&s=wxi70xaWpXUpeYQ9KyWp6Vwj621Jgibv9JsUOQrODdU&e= (https://urldefense.proofpoint.com/v2/url?u=http-3A__hypernews.slac.stanford.edu_HyperNews_geant4_get_installconfig_1896_1_1_1.html&amp;d=DwIBAw&amp;c=lz9TcOasaINaaC3U7FbMev2lsutwpI4--09aP8Lu18s&amp;r=JKPm21o4RG5_VIn2fXX6tQ&amp;m=E6fmKPM2xA4jNwGVqqusIz3oC_9Oh1Hfu3Cx3NCVC-c&amp;s=wxi70xaWpXUpeYQ9KyWp6Vwj621Jgibv9JsUOQrODdU&amp;e=) 
> >
> 
> -- 
> Mark Ito, marki@jlab.org, (757)269-5295
> 
>  [ MIME part of type text/html without a name stripped ]
> wget https://github.com/Geant4/geant4/archive/v10.2.2.tar.gz
> --2018-05-24 13:43:53--  https://github.com/Geant4/geant4/archive/v10.2.2.tar.gz
> Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
> Connecting to github.com (github.com)|192.30.253.112|:443... connected.
> HTTP request sent, awaiting response... 302 Found
> Location: https://codeload.github.com/Geant4/geant4/tar.gz/v10.2.2 [following]
> --2018-05-24 13:43:53--  https://codeload.github.com/Geant4/geant4/tar.gz/v10.2.2
> Resolving codeload.github.com (codeload.github.com)... 192.30.253.121, 192.30.253.120
> Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 31769956 (30M) [application/x-gzip]
> Saving to: 'v10.2.2.tar.gz'
> 
> 100%[======================================>] 31,769,956  10.9MB/s   in 2.8s   
> 
> 2018-05-24 13:44:00 (10.9 MB/s) - 'v10.2.2.tar.gz' saved [31769956/31769956]
> 
> tar zxf v10.2.2.tar.gz
> date > geant4-10.2.2/.untar_done
> cd geant4-10.2.2/cmake/Templates ; \
> patch geant4make-skeleton.in \
>     < /scratch/marki/gluex_install_scratch/3/gluex_top/build_scripts/patches/geant4/geant4make-skeleton.in.patch
> patching file geant4make-skeleton.in
> cd geant4-10.2.2/cmake/Modules ; \
> patch Geant4ToolchainBackwardCompatibility.cmake \
>     < /scratch/marki/gluex_install_scratch/3/gluex_top/build_scripts/patches/geant4/Geant4ToolchainBackwardCompatibility.cmake.patch
> patching file Geant4ToolchainBackwardCompatibility.cmake
> date > geant4-10.2.2/.patch_done
> mkdir -p geant4-10.2.2/build
> cd geant4-10.2.2/build ; cmake3 \
>    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
>    -DCMAKE_INSTALL_DATADIR=../data \
>    -DCMAKE_INSTALL_PREFIX=.. \
>    -DGEANT4_BUILD_MULTITHREADED=ON \
>    -DGEANT4_INSTALL_DATA=ON \
>    -DGEANT4_USE_GDML=ON \
>    -DGEANT4_USE_NETWORKDAWN=ON \
>    -DGEANT4_USE_OPENGL_X11=ON \
>    -DGEANT4_USE_QT=ON \
>    -DGEANT4_USE_RAYTRACER_X11=ON \
>    -DGEANT4_USE_XM=ON \
>    -DXERCESC_ROOT_DIR=/scratch/marki/gluex_install_scratch/3/gluex_top/xerces-c/xerces-c-3.1.4 \
>    ..
> -- The C compiler identification is GNU 4.8.5
> -- The CXX compiler identification is GNU 4.8.5
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Performing Test HAVE_TLS
> -- Performing Test HAVE_TLS - Success
> -- Found EXPAT: /usr/lib64/libexpat.so (found version "2.1.0") 
> -- Found XercesC: /scratch/marki/gluex_install_scratch/3/gluex_top/xerces-c/xerces-c-3.1.4/lib/libxerces-c.so  
> -- Looking for Q_WS_X11
> -- Looking for Q_WS_X11 - found
> -- Looking for Q_WS_WIN
> -- Looking for Q_WS_WIN - not found
> -- Looking for Q_WS_QWS
> -- Looking for Q_WS_QWS - not found
> -- Looking for Q_WS_MAC
> -- Looking for Q_WS_MAC - not found
> -- Found Qt4: /usr/bin/qmake-qt4 (found version "4.8.7") 
> -- Found OpenGL: /usr/lib64/libGL.so   
> -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
> -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
> -- Looking for gethostbyname
> -- Looking for gethostbyname - found
> -- Looking for connect
> -- Looking for connect - found
> -- Looking for remove
> -- Looking for remove - found
> -- Looking for shmat
> -- Looking for shmat - found
> -- Looking for IceConnectionNumber in ICE
> -- Looking for IceConnectionNumber in ICE - found
> -- Found X11: /usr/lib64/libX11.so
> -- Found Motif: /usr/lib64/libXm.so  
> -- Looking for sys/types.h
> -- Looking for sys/types.h - found
> -- Looking for stdint.h
> -- Looking for stdint.h - found
> -- Looking for stddef.h
> -- Looking for stddef.h - found
> -- Check size of off64_t
> -- Check size of off64_t - done
> -- Looking for fseeko
> -- Looking for fseeko - found
> -- Looking for unistd.h
> -- Looking for unistd.h - found
> -- Configuring download of missing dataset G4NDL (4.5)
> -- Configuring download of missing dataset G4EMLOW (6.48)
> -- Configuring download of missing dataset PhotonEvaporation (3.2)
> -- Configuring download of missing dataset RadioactiveDecay (4.3.2)
> -- Configuring download of missing dataset G4NEUTRONXS (1.4)
> -- Configuring download of missing dataset G4PII (1.3)
> -- Configuring download of missing dataset RealSurface (1.0)
> -- Configuring download of missing dataset G4SAIDDATA (1.1)
> -- Configuring download of missing dataset G4ABLA (3.0)
> -- Configuring download of missing dataset G4ENSDFSTATE (1.2.3)
> -- The following Geant4 features are enabled:
> GEANT4_BUILD_CXXSTD: Compiling against C++ Standard '11'
> GEANT4_BUILD_TLS_MODEL: Building with TLS model 'initial-exec'
> GEANT4_BUILD_MULTITHREADED: Build multithread enabled libraries
> GEANT4_USE_SYSTEM_EXPAT: Using system EXPAT library
> GEANT4_USE_GDML: Building Geant4 with GDML support
> GEANT4_USE_QT: Build Geant4 with Qt support
> GEANT4_USE_NETWORKDAWN: Build Dawn driver with Client/Server support
> GEANT4_USE_RAYTRACER_X11: Build RayTracer driver with X11 support
> GEANT4_USE_OPENGL_X11: Build Geant4 OpenGL driver with X11 support
> GEANT4_USE_XM: Build Geant4 with Xm Support
> 
> -- Configuring done
> CMake Error at cmake/Modules/Geant4MacroLibraryTargets.cmake:109 (add_library):
>   Cannot find source file:
> 
>     /u/scratch/marki/gluex_install_scratch/3/gluex_top/geant4/geant4-10.2.2/source/visualization/HepRep/src/GZIPOutputStream.cc
> 
>   Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
>   .hpp .hxx .in .txx
> Call Stack (most recent call first):
>   cmake/Modules/Geant4MacroLibraryTargets.cmake:300 (GEANT4_LIBRARY_TARGET)
>   source/visualization/HepRep/CMakeLists.txt:18 (GEANT4_GLOBAL_LIBRARY_TARGET)
> 
> CMake Error at cmake/Modules/Geant4MacroLibraryTargets.cmake:109 (add_library):
>   No SOURCES given to target: G4visHepRep
> Call Stack (most recent call first):
>   cmake/Modules/Geant4MacroLibraryTargets.cmake:300 (GEANT4_LIBRARY_TARGET)
>   source/visualization/HepRep/CMakeLists.txt:18 (GEANT4_GLOBAL_LIBRARY_TARGET)
> 
> -- Build files have been written to: /u/scratch/marki/gluex_install_scratch/3/gluex_top/geant4/geant4-10.2.2/build
> make[1]: *** [geant4-10.2.2/.configure_done] Error 1
> 

 Add Message Add Message
to: "Re: How to apply the"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]