gcc-4.6.1 spell failed at PRE_BUILD stage (Bug #115)
Description
GCC casting failed during PRE_BUILD operations after unpacking the Java sources,
C, C++, Java and Go were the selection of languages.
I then used "delve BUILD" to find that the Go language was not unpacked into the source tree.
the following was used to work around the problem
delve -c start PRE_BUILD gcc; mkdir -p /usr/src/gcc-4.6.1.bld;
cd /usr/src; tar -xvf /var/spool/sorcery/gcc-go-4.6.1.tar.bz2;
cd /usr/src/gcc-4.6.1; delve -c BUILD end gcc
Associated revisions
gcc: fixed the source numbers for java in PRE_BUILD (fixes #115)
gcc: fixed the source numbers for java in PRE_BUILD (fixes #115)
(cherry picked from commit 24da04334c58f553607e948f2f0c9781bce15c8c)
History
Updated by Jeremy Sutherland over 1 year ago
in Testing casting options the following appear true,
"default" compiler selection, "all" build option, functionally builds,
"c,c++,*" any combination of non-default build options appears to break during preparing
the sources for compilation ( I actually need this option )
Updated by Jeremy Sutherland over 1 year ago
Compilattion with "default" completed successfully,
adding "java" to any selection of languages breaks the PRE_BUILD scripting,
and the workaround above majorly broke the installed system unconditionally
Updated by Bor Kraljič over 1 year ago
Part about java in DETAILS:
if list_find "$GCC_COMPILER" "java" ; then
SOURCE9=gcc-java-$VERSION.tar.bz2
SOURCE10=$SOURCE9.sig
SOURCE9_URL[0]=$GNU_URL/gcc/gcc-$VERSION/$SOURCE9
SOURCE9_URL[1]=${BASE_SOURCE_URL}-$VERSION/$SOURCE9
SOURCE10_URL[0]=${SOURCE9_URL[0]}.sig
SOURCE9_GPG=gnu.gpg:$SOURCE10:UPSTREAM_KEY
SOURCE10_IGNORE=signature
# Eclipse compiler for Java (needed since 4.3)
SOURCE15=ecj-4.3.jar
SOURCE15_URL[0]=ftp://sourceware.org/pub/java/$SOURCE15
SOURCE15_GPG=gurus.gpg:$SOURCE15.sig
fi
Part from java in PRE_BUILD:
if list_find "$GCC_COMPILER" "java" ; then cd $BUILD_DIRECTORY && unpack_file 9 && verify_file 14 && cp -v $SOURCE_CACHE/$SOURCE14 $SOURCE_DIRECTORY/ecj.jar fi &&
In DETAILS there is SOURCE15 and in PRE_BUILD 14 is used. I think that you only need to change that 14 to 15 in PRE_BUILD.
SOURCE14 is just signature for one of the ada files:
if [[ "${SMGL_COMPAT_ARCHS[1]}" == "ia32" ]]
then
VERSION13=4.5.2
SOURCE13=ada-$VERSION13-i686-pc-linux-gnu.tar.bz2
elif [[ "${SMGL_COMPAT_ARCHS[1]}" == "x86_64" ]]
then
VERSION13=4.3.3
SOURCE13=ada-$VERSION13-x86_64-pc-linux-gnu.tar.bz2
else
VERSION13=4.5.2
SOURCE13=ada-$VERSION13-i686-pc-linux-gnu.tar.bz2
fi
SOURCE13_URL[0]=http://download.sourcemage.org/distro/$SOURCE13
SOURCE13_GPG="gurus.gpg:$SOURCE13.sig:VERIFIED_UPSTREAM_KEY"
SOURCE14=$SOURCE13.sig
SOURCE14_URL[0]=${SOURCE13_URL[0]}.sig
SOURCE14_IGNORE=signature
fi
Updated by Bor Kraljič over 1 year ago
I am testing this fix now.
- Target version set to 0.59
- Assignee changed from Jeremy Sutherland to Bor Kraljič
Updated by Bor Kraljič over 1 year ago
Applied in changeset 24da04334c58f553607e948f2f0c9781bce15c8c.
- % Done changed from 10 to 100
- Status changed from New to Resolved
Updated by Bor Kraljič over 1 year ago
Applied in changeset 39d188dae19e02a42c316de262fb72a9da0b9fa4.
Updated by David Kowis over 1 year ago
- Target version changed from 0.59 to 0.60