#13689: Fix upgrading from relocated Sage with GCC
----------------------------------+-----------------------------------------
       Reporter:  jdemeyer        |         Owner:  GeorgSWeber 
           Type:  defect          |        Status:  needs_review
       Priority:  blocker         |     Milestone:  sage-5.4.1  
      Component:  build           |    Resolution:              
       Keywords:                  |   Work issues:              
Report Upstream:  N/A             |     Reviewers:              
        Authors:  Jeroen Demeyer  |     Merged in:              
   Dependencies:                  |      Stopgaps:              
----------------------------------+-----------------------------------------

Old description:

> Older versions of `sage-location` (before #13397) do not properly fix
> GCC, leading to problems with upgrading from sage-5.3, during the build
> of !LinBox from #12883:
> {{{
> make[6]: Entering directory
> `/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/spkg/build/linbox-1.3.2/src/linbox/util'
> /bin/bash ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
> -I. -I../..  -I../.. -I../../linbox
> -I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
> -I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
> -DDISABLE_COMMENTATOR -O2    -g -DNDEBUG -U_LB_DEBUG
> -I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
> -g -fPIC -c -o error.lo error.C
> /bin/bash ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
> -I. -I../..  -I../.. -I../../linbox
> -I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
> -I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
> -DDISABLE_COMMENTATOR -O2    -g -DNDEBUG -U_LB_DEBUG
> -I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
> -g -fPIC -c -o debug.lo debug.C
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../linbox
> -I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
> -I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
> -DDISABLE_COMMENTATOR -O2 -g -DNDEBUG -U_LB_DEBUG
> -I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
> -g -fPIC -c debug.C  -fPIC -DPIC -o .libs/debug.o
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../linbox
> -I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
> -I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
> -DDISABLE_COMMENTATOR -O2 -g -DNDEBUG -U_LB_DEBUG
> -I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
> -g -fPIC -c error.C  -fPIC -DPIC -o .libs/error.o
> /bin/bash ../../libtool --tag=CXX   --mode=link g++ -O2    -g -DNDEBUG
> -U_LB_DEBUG
> -I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
> -g -fPIC
> -L/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/lib
> -lgivaro
> -L/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/lib
> -lcblas -latlas
> -L/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/lib
> -lcblas -latlas -o libutil.la  error.lo debug.lo
> -L/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/lib
> -lgivaro
> /bin/grep: /home/buildbot/sage-5.3/local/lib/../lib64/libstdc++.la: No
> such file or directory
> /bin/sed: can't read
> /home/buildbot/sage-5.3/local/lib/../lib64/libstdc++.la: No such file or
> directory
> libtool: link: `/home/buildbot/sage-5.3/local/lib/../lib64/libstdc++.la'
> is not a valid libtool archive
> make[6]: *** [libutil.la] Error 1
> make[6]: Leaving directory
> `/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/spkg/build/linbox-1.3.2/src/linbox/util'
> make[5]: *** [all-recursive] Error 1
> make[5]: Leaving directory
> `/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/spkg/build/linbox-1.3.2/src/linbox/util'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory
> `/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/spkg/build/linbox-1.3.2/src/linbox'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/spkg/build/linbox-1.3.2/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/spkg/build/linbox-1.3.2/src'
> }}}
>
> Blocker because it breaks upgrading from sage-5.3.

New description:

 Older versions of `sage-location` (before #13397) do not properly fix GCC,
 leading to problems with upgrading from sage-5.3 if GCC was installed and
 Sage was relocated after building GCC but before upgrading. The problem
 shows up during the build of !LinBox from #12883:
 {{{
 make[6]: Entering directory
 
`/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/spkg/build/linbox-1.3.2/src/linbox/util'
 /bin/bash ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
 -I../..  -I../.. -I../../linbox
 
-I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
 
-I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
 -DDISABLE_COMMENTATOR -O2    -g -DNDEBUG -U_LB_DEBUG
 
-I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
 -g -fPIC -c -o error.lo error.C
 /bin/bash ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
 -I../..  -I../.. -I../../linbox
 
-I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
 
-I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
 -DDISABLE_COMMENTATOR -O2    -g -DNDEBUG -U_LB_DEBUG
 
-I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
 -g -fPIC -c -o debug.lo debug.C
 libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../linbox
 
-I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
 
-I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
 -DDISABLE_COMMENTATOR -O2 -g -DNDEBUG -U_LB_DEBUG
 
-I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
 -g -fPIC -c debug.C  -fPIC -DPIC -o .libs/debug.o
 libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../linbox
 
-I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
 
-I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
 -DDISABLE_COMMENTATOR -O2 -g -DNDEBUG -U_LB_DEBUG
 
-I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
 -g -fPIC -c error.C  -fPIC -DPIC -o .libs/error.o
 /bin/bash ../../libtool --tag=CXX   --mode=link g++ -O2    -g -DNDEBUG
 -U_LB_DEBUG
 
-I/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/include
 -g -fPIC
 -L/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/lib
 -lgivaro
 -L/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/lib
 -lcblas -latlas
 -L/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/lib
 -lcblas -latlas -o libutil.la  error.lo debug.lo
 -L/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/local/lib
 -lgivaro
 /bin/grep: /home/buildbot/sage-5.3/local/lib/../lib64/libstdc++.la: No
 such file or directory
 /bin/sed: can't read
 /home/buildbot/sage-5.3/local/lib/../lib64/libstdc++.la: No such file or
 directory
 libtool: link: `/home/buildbot/sage-5.3/local/lib/../lib64/libstdc++.la'
 is not a valid libtool archive
 make[6]: *** [libutil.la] Error 1
 make[6]: Leaving directory
 
`/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/spkg/build/linbox-1.3.2/src/linbox/util'
 make[5]: *** [all-recursive] Error 1
 make[5]: Leaving directory
 
`/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/spkg/build/linbox-1.3.2/src/linbox/util'
 make[4]: *** [all-recursive] Error 1
 make[4]: Leaving directory
 
`/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/spkg/build/linbox-1.3.2/src/linbox'
 make[3]: *** [all-recursive] Error 1
 make[3]: Leaving directory
 
`/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/spkg/build/linbox-1.3.2/src'
 make[2]: *** [all] Error 2
 make[2]: Leaving directory
 
`/release/buildbot/sage/sage-1/sage_upgrade_5.3/build/sage-5.4.1.rc0/spkg/build/linbox-1.3.2/src'
 }}}

 Blocker because it breaks upgrading from sage-5.3.

--

Comment (by jdemeyer):

 Replying to [comment:10 jhpalmieri]:
 > Replying to [comment:8 jdemeyer]:
 > > Replying to [comment:7 jhpalmieri]:
 > > > I haven't been able to reproduce a problem by following the
 directions
 > > Which exact version of Sage did you try?
 >
 > I built Sage 5.3 from scratch, moved the build directory, did `./sage -f
 spkg/standard/ppl-...` and `./sage -f spkg/standard/linbox-...`. No
 obvious errors. I also tried doing `./sage -upgrade ...`, upgrading from
 5.4-rc4. This was all on sage.math.


 >
 > > Also: with #13452 and #13407, all paths would be fixed at least after
 the build.
 >
 > I'm not sure about that. When you upgrade, the old sage-location script
 is run so sage-current-location.txt is changed but a few paths aren't, so
 how can those old paths ever be fixed?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13689#comment:12>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to