Bug 2551

Summary: [PATCH] native toolchain in the target filesystem fails
Product: buildroot Reporter: arpinf
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: Patch to fix native toolchain in target filesystem

Description arpinf 2010-09-10 12:51:58 UTC
Created attachment 2449 [details]
Patch to fix native toolchain in target filesystem

Buildroot version: 2010.08
Host: x86_64
Target: i686

Selecting:
Package Selection for the target  --->
    Development tools  --->
        [*] native toolchain in the target filesystem

Fails with:
mkdir -p /home/illuminate/buildroot-2010.08/output/toolchain/gcc-4.4.4-final
touch /home/illuminate/buildroot-2010.08/output/build/gcc-4.4.4-target/.prepared
touch: cannot touch `/home/illuminate/buildroot-2010.08/output/build/gcc-4.4.4-target/.prepared': No such file or directory
make: *** [/home/illuminate/buildroot-2010.08/output/build/gcc-4.4.4-target/.prepared] Error 1

Cause:
Creating the .prepared file in a missing directory.
$(GCC_BUILD_DIR4)/.prepared: $(STAMP_DIR)/gcc_libs_target_installed $(GCC_TARGET_PREREQ)
        mkdir -p $(GCC_BUILD_DIR3)

fixed by changing $(GCC_BUILD_DIR3) to $(GCC_BUILD_DIR4)


Included fix in the patch.
Comment 1 Clement Foucher 2010-10-15 14:13:29 UTC
Same problem with arch=powerpc and gcc version=4.3.5. Log:

[...]
make[6]: quittant le répertoire « /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/build/binutils-2.20.1-target/ld »
make[5]: quittant le répertoire « /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/build/binutils-2.20.1-target/ld »
make[4]: quittant le répertoire « /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/build/binutils-2.20.1-target/ld »
make[3]: quittant le répertoire « /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/build/binutils-2.20.1-target/ld »
make[6]: quittant le répertoire « /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/build/binutils-2.20.1-target/binutils »
make[5]: quittant le répertoire « /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/build/binutils-2.20.1-target/binutils »
make[4]: quittant le répertoire « /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/build/binutils-2.20.1-target/binutils »
make[3]: quittant le répertoire « /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/build/binutils-2.20.1-target/binutils »
make[2]: quittant le répertoire « /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/build/binutils-2.20.1-target »
make[1]: quittant le répertoire « /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/build/binutils-2.20.1-target »
rm -rf /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/target/share/locale
/home/foucher/Bureau/12-3/common/buildroot-2010.08/output/staging/usr/bin/powerpc-unknown-linux-uclibc-strip --remove-section=.comment --remove-section=.note /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/target/usr/powerpc-unknown-linux-uclibc/bin/* > /dev/null 2>&1
make: [/home/foucher/Bureau/12-3/common/buildroot-2010.08/output/target/usr/bin/ld] Erreur 1 (ignorée)
/home/foucher/Bureau/12-3/common/buildroot-2010.08/output/staging/usr/bin/powerpc-unknown-linux-uclibc-strip --remove-section=.comment --remove-section=.note /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/target/usr/bin/* > /dev/null 2>&1
make: [/home/foucher/Bureau/12-3/common/buildroot-2010.08/output/target/usr/bin/ld] Erreur 1 (ignorée)
mkdir -p /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/toolchain/gcc-4.3.5-final
touch /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/build/gcc-4.3.5-target/.prepared
touch: impossible de faire un touch « /home/foucher/Bureau/12-3/common/buildroot-2010.08/output/build/gcc-4.3.5-target/.prepared »: Aucun fichier ou dossier de ce type
make: *** [/home/foucher/Bureau/12-3/common/buildroot-2010.08/output/build/gcc-4.3.5-target/.prepared] Erreur 1

Trying the patch now, this seems to solve the problem, but since there is another problem after, I'm unable to test the software.
Comment 2 Gustavo Zacarias 2011-02-02 15:16:12 UTC
Fixed during the toolchain rework cycle, thanks.