This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error building PowerPC Toolchain with Crosstool-NG in Cygwin


Yann and others

It appears that the ncurses issue was resolved with the installation of zip. I am down to the DUMA issue. Unfortunately, there is not a lot of information on this one in build.log. I've attached the full build.log file but here is the relevant part.

[INFO ] Installing dmalloc: done in 301.45s (at 909:41)
[INFO ] =================================================================
[INFO ] Installing D.U.M.A.
[EXTRA] Copying sources
[ERROR] Build failed in step 'Installing D.U.M.A.'
[ERROR] Error happened in '/usr/local/lib/ct-ng-1.7.0/scripts/build/debug/200-duma.sh' in function 'do_debug_duma_bui
ld' (line unknown, sorry)
[ERROR] called from '/usr/local/lib/ct-ng-1.7.0/scripts/build/debug.sh' at line # 35 in function 'do_debug'
[ERROR] called from '/usr/local/lib/ct-ng-1.7.0/scripts/crosstool-NG.sh' at line # 578 in function 'main'
[ERROR] Look at '/home/jeff/x-tools/powerpc-405-linux-gnu/build.log' for more info on this error.
[ERROR] (elapsed: 909:48.32)


It looks like the problem is in the "Copying sources part of do_debug_duma_build in 200-duma.sh but I do not know what it is :

do_debug_duma_build() {
CT_DoStep INFO "Installing D.U.M.A."
CT_DoLog EXTRA "Copying sources"
cp -a "${CT_SRC_DIR}/duma_${CT_DUMA_VERSION}" "${CT_BUILD_DIR}/build-duma"
CT_Pushd "${CT_BUILD_DIR}/build-duma"


   DUMA_CPP=
   [ "${CT_CC_LANG_CXX}" = "y" ] && DUMA_CPP=1

# The shared library needs some love: some version have libduma.so.0.0,
# while others have libduma.so.0.0.0
duma_so=$(make -n -p 2>&1 |grep -E '^libduma.so[^:]*:' |head -n 1 |cut -d : -f 1)


libs=
[ "${CT_DUMA_A}" = "y" ] && libs="${libs} libduma.a"
[ "${CT_DUMA_SO}" = "y" ] && libs="${libs} ${duma_so}"
libs="${libs# }"
CT_DoLog EXTRA "Building libraries '${libs}'"
CT_DoExecLog ALL \
make HOSTCC="${CT_BUILD}-gcc" \
CC="${CT_TARGET}-gcc" \
CXX="${CT_TARGET}-gcc" \
RANLIB="${CT_TARGET}-ranlib" \
DUMA_CPP="${DUMA_CPP}" \
${libs}
CT_DoLog EXTRA "Installing libraries '${libs}'"
CT_DoExecLog ALL install -m 644 ${libs} "${CT_SYSROOT_DIR}/usr/lib"
if [ "${CT_DUMA_SO}" = "y" ]; then
CT_DoLog EXTRA "Installing shared library link"
ln -vsf ${duma_so} "${CT_SYSROOT_DIR}/usr/lib/libduma.so" 2>&1 |CT_DoLog ALL
CT_DoLog EXTRA "Installing wrapper script"
mkdir -p "${CT_DEBUGROOT_DIR}/usr/bin"
# Install a simpler, smaller, safer wrapper than the one provided by D.U.M.A.
sed -r -e 's:^LIBDUMA_SO=.*:LIBDUMA_SO=/usr/lib/'"${duma_so}"':;' \
"${CT_LIB_DIR}/scripts/build/debug/duma.in" \
>"${CT_DEBUGROOT_DIR}/usr/bin/duma"
chmod 755 "${CT_DEBUGROOT_DIR}/usr/bin/duma"
fi


   CT_Popd
   CT_EndStep
}

Any ideas?

Jeff
--------------------------------------------------
From: "Jeff Gilton" <jgilton@cinci.rr.com>
Sent: Thursday, May 13, 2010 11:07 PM
To: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Cc: <crossgcc@sourceware.org>
Subject: Re: Error building PowerPC Toolchain with Crosstool-NG in Cygwin

Yann

This was suggested by someone on the crossgcc list and installing zip fixed it. I then tried again and DUMA failed. Unfortunately, I neglected to save the build.log file before restarting the build with DUMA turned off to see if the ncurses issue was also a zip issue. It is building now. I will post the build.log file when it is done.

Jeff

--------------------------------------------------
From: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sent: Tuesday, May 11, 2010 11:27 AM
To: "Jeff Gilton" <jgilton@cinci.rr.com>
Cc: <crossgcc@sourceware.org>
Subject: Re: Error building PowerPC Toolchain with Crosstool-NG in Cygwin

Jeff, All,

On Sunday 09 May 2010 20:54:32 Jeff Gilton wrote:
Here is the full build file. Any help is appreciated.

Extract form your build.log:
[ALL ] checking for powerpc-405-linux-gnu-ranlib...
/home/jeff/x-tools/powerpc-405-linux-gnu/powerpc-405-linux-gnu/bin/ranlib
[ALL ] checking for gawk... (cached) gawk
[ALL ] checking for jar... no
[ALL ] checking for fastjar... no
[ALL ] checking for gjar... gjar
[ALL ] checking for zip... no
[ALL ] checking for unzip... /usr/bin/unzip
[ALL ] Exception in thread "main" java.lang.ExceptionInInitializerError
[--SNIP--]
[ERROR] configure: error: cannot find neither zip nor jar, cannot continue
[ERROR] make[2]: *** [configure-target-libjava] Error 1


To me it looks quite clear: you're missing either one or both of 'zip' and
'jar'. Install that and start again. Also, as Dave pointed out earlier,
you would even be better disabling Java.


Also, the build.log when DUMA fails and ncurses fail would be interesting
to look at. This one does not tell why they fail.

Cygwin is not something that I test a lot, as I seldom have access to a
windows machine. So there can be rough edges here and there.

Regards.
Yann E. MORIN.

--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'




-- For unsubscribe information see http://sourceware.org/lists.html#faq

Attachment: build.log.gz
Description: GNU Zip compressed data

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]