Skip to contentSkip to conversation

fix gcc install problem on powerpc+soft-float+install_libgcc_s

PATCH New angus salkeld 2 participants 2 messages May 4, 2009 – May 12, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix gcc install problem on powerpc+soft-float+install_libgcc_s

Hi

I am building with:
gcc-4.3.3
powerpc-8540
soft-float
install libgcc_s
install libstd++

I get the following error:

# These are in /lib, so...
rm -rf /home/anguss/imports/buildroot/project_build_powerpc/r1/root/usr/lib/libgcc_s*.so* cp -dpf /home/anguss/imports/buildroot/build_powerpc/staging_dir/usr/powerpc-linux-uclibc/lib/libgcc_s* \
/home/anguss/imports/buildroot/project_build_powerpc/r1/root/lib/
cp: cannot stat `/home/anguss/imports/buildroot/build_powerpc/staging_dir/usr/powerpc-linux-uclibc/lib/libgcc_s*':
No such file or directory
make:
[/home/anguss/imports/buildroot/project_build_powerpc/r1/autotools-stamps/gcc_libs_target_installed] Error 1 (ignored) /home/anguss/imports/buildroot/build_powerpc/staging_dir/usr/bin/powerpc-linux-uclibc-strip --remove-section=.comment --remove-section=.note --strip-unneeded /home/anguss/imports/buildroot/project_build_powerpc/r1/root/lib/libgcc_s* /home/anguss/imports/buildroot/build_powerpc/staging_dir/usr/bin/powerpc-linux-uclibc-strip:
'/home/anguss/imports/buildroot/project_build_powerpc/r1/root/lib/libgcc_s*': No such file make:
[/home/anguss/imports/buildroot/project_build_powerpc/r1/autotools-stamps/gcc_libs_target_installed] Error 1 (ignored)
mkdir -p /home/anguss/imports/buildroot/project_build_powerpc/r1/root/usr/lib
cp -dpf /home/anguss/imports/buildroot/build_powerpc/staging_dir/usr/powerpc-linux-uclibc/lib/libstdc++.so* \
/home/anguss/imports/buildroot/project_build_powerpc/r1/root/usr/lib/
cp: cannot stat `/home/anguss/imports/buildroot/build_powerpc/staging_dir/usr/powerpc-linux-uclibc/lib/libstdc++.so*':
No such file or directory
make:
[/home/anguss/imports/buildroot/project_build_powerpc/r1/autotools-stamps/gcc_libs_target_installed] Error 1 (ignored)

So here is a patch that fixes it for me.

Note:

1) I only include this for powerpc (maybe it should only check for soft float)?
2) I have removed the ignore "-" from the copy, as it think that it is a problem if you want a library installed but it fails to install.

Regards
Angus Salkeld

toolchain/gcc/gcc-uclibc-4.x.mk +9 -2
index 42e9d29..ff6acfd 100644
@@ -140,6 +140,12 @@ ifeq ($(BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE),y)
 GCC_DECIMAL_FLOAT:=--disable-decimal-float
 endif
 
+ifeq ($(BR2_SOFT_FLOAT),y)
+ifeq ($(ARCH),powerpc)
+GCC_NOF_DIR:=/nof
+endif
+endif
+
 # gcc version < 4.2.0 don't have -Wno-overlength-strings and the configure
 # script has problems detecting it, so help it
 ifeq ($(shell test $(HOSTCC_VERSION) -lt 420 && echo OLD),OLD)
@@ -347,18 +353,19 @@ endif
        mkdir -p $(TARGET_DIR)/usr/lib $(TARGET_DIR)/usr/sbin
        touch $@
 
+
 $(PROJECT_BUILD_DIR)/autotools-stamps/gcc_libs_target_installed: $(GCC_BUILD_DIR2)/.installed
 ifeq ($(BR2_GCC_SHARED_LIBGCC),y)
        # These are in /lib, so...
        rm -rf $(TARGET_DIR)/usr/lib/libgcc_s*.so*
-   -cp -dpf $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib/libgcc_s* \
+ cp -dpf $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib$(GCC_NOF_DIR)/libgcc_s* \
                $(TARGET_DIR)/lib/
        -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/lib/libgcc_s*
 endif
 ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
 ifeq ($(BR2_GCC_SHARED_LIBGCC),y)
        mkdir -p $(TARGET_DIR)/usr/lib
-   -cp -dpf $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib/libstdc++.so* \
+ cp -dpf $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib$(GCC_NOF_DIR)/libstdc++.so* \
                $(TARGET_DIR)/usr/lib/
        -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libstdc++.so*
 endif
#1 lore raw

PATCH 1/1 fix gcc install problem on powerpc+soft-float+install_libgcc_s

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"angus" == angus salkeld <[email protected]> writes:

angus> Hi
angus> I am building with:
angus> gcc-4.3.3
angus> powerpc-8540
angus> soft-float
angus> install libgcc_s
angus> install libstd++

angus> I get the following error:

Strange - I cannot reproduce it here - Could you send your config please? With your other patch applied a ppc405/softfloat/libgcc_2/libstdc++ config builds here, and I don't see any */lib/nof dirs.

BR2_powerpc_405=y
BR2_KERNEL_HEADERS_2_6_29=y
BR2_UCLIBC_VERSION_0_9_30_1=y
BR2_BINUTILS_VERSION_2_19_1=y
BR2_GCC_VERSION_4_3_3=y
BR2_TOOLCHAIN_SYSROOT=y
BR2_GCC_SHARED_LIBGCC=y
BR2_SOFT_FLOAT=y
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y

Signature · 1 line
Bye, Peter Korsgaard