This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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: issues with gcc 4.4.6


I started with clean approach .But I am surely hitting the wall again .

This time around .

I have a script that does following things 

1. Install_binutils
2. install_gcc_cross_1 ( This is with configure option prefix , target and sysroot ) 
3. install_gcc_cross_2 ( This has many more options ) .

After install_gcc_cross1 .I see the first level gcc built fine in target/bin directory.but can not be used for anything .If I unable install_gcc_cross2.I am hitting the below error .



usr/bin/install -c -m 644 libgcc_eh.a /local/gagupta/gccfolder/cross-tools/lib/gcc/x86_64-redhat-linux-gnu/4.4.7/
/usr/bin/install: cannot stat `libgcc_eh.a': No such file or directory
make[2]: *** [install-shared] Error 1
make[2]: Leaving directory `/local/gagupta/gccfolder/crosscompile/gcc-build/x86_64-redhat-linux-gnu/libgcc'
make[1]: *** [install-target-libgcc] Error 2
make[1]: Leaving directory `/local/gagupta/gccfolder/crosscompile/gcc-build'
make: *** [install] Error 2



-----Original Message-----
From: Kai Ruottu [mailto:kai.ruottu@wippies.com] 
Sent: Thursday, March 07, 2013 3:20 PM
To: GUPTA, GAURAV G (GAURAV)
Cc: gcc-help@gcc.gnu.org
Subject: Re: issues with gcc 4.4.6

7.3.2013 5:14, GUPTA, GAURAV G (GAURAV) kirjoitti:

> Dear Kai
>
> This is my configure options
>
>
> AR=ar LDFLAGS="-Wl,-rpath,/local/gagupta/gccfolder" \
>          ${SOURCES_GCC}/configure \
>          --prefix=${CLFS_CROSS_TOOLS} --target=${CLFS_TARGET} --disable-decimal-float --with-sysroot=${CLFS} --with-native-system-header-dir=${CLFS}/usr

I don't fully understand what your last option is for 
(http://gcc.gnu.org/install/configure.html), but
my guess is that one wants to build a custom native GCC which doesn't 
use the usual '/usr/include'.
Do you know why you are using this?  If you are creating a cross GCC 
then this may cause troubles.
A cross GCC should automatically search the '$sysroot/usr/include', 
nothing else than the
'--with-sysroot=$sysroot' is required.

> I am still getting these error .I have extracted stdc++ rpm in my sysroot.

What you did?  The stdc++ headers and libraries will be created and 
installed during the GCC
build and install. So there shouldn't be any C++ headers and libraries 
for the target when
starting, only the C ones which usually means (all or some) the 
'glibc-*.rpm's and the
'kernel-headers-*.rpm' being extracted into the sysroot.  In your case 
the should be both
the default 64-bit and the optional 32-bit glibc binaries extracted so 
the sysroot has both
the lib & lib64 and usr/lib & usr/lib64 binaries and the one usr/include.

> /bin/sh: line 3: cd: x86_64-redhat-linux-gnu/libstdc++-v3: No such file or directory
> make[1]: *** [install-target-libstdc++-v3] Error 1
> make[1]: Leaving directory `/local/gagupta/gccfolder/crosscompile/gcc-build'
> make: *** [install] Error 2
>

It looks like the process stopped in the libstdc++-v3 install phase...  
Was the directory
'$BUILD/x86_64-redhat-linux-gnu/libstdc++-v3' (where $BUILD is your GCC 
build dir)
even created and filled during the build?  What about the 
'$BUILD/x86_64-redhat-linux-gnu/32/libstdc++-v3'
for the 32-bit libstdc++-v3?

Maybe you should start with a clean board what comes to the sysroot and 
leave the
' --with-native-system-header-dir=${CLFS}/usr' away from the GCC 
configure,  and
start with bare sources after a 'make distclean' or simply doing a 'rm 
-f -r' in the GCC
build directory...


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