binutils-pass1 doesn't get build

Michiel Faber fabermichiel at planet.nl
Thu Jun 22 02:27:52 PDT 2006


>
>>>>   Everything looks fine. Those commands should have produced a 
>>>> usable Makefile.I duplicated your commands and have no problem .. 
>>>> this may be unique to Unbuntu. 

>>   Could you send the 028-binutils-pass1 makefile commands.
> 
> 028-binutils-pass1:  022-settingenvironment
>     @$(call echo_message, Building)
>     @./progress_bar.sh $@ &
>     @echo -e "\n`date`\n\nKB: `du -skx --exclude=jhalfs $(MOUNT_PT)`\n" 
>  >logs/028-binutils-pass1
>     @PKG_PATH=`ls -t $(MOUNT_PT)$(SRC)/binutils-2.16.1.tar.bz2 | head 
> -n1` && \
>     ROOT=`tar -tf $$PKG_PATH | head -n1 | sed -e 's@^./@@;s@/.*@@'` && \
>     [[ -n $$ROOT ]] && \
>     rm -rf $(MOUNT_PT)$(SRC)/$$ROOT && \
>     if [ -e $(MOUNT_PT)$(SRC)/binutils-build ]; then \
>         rm -rf $(MOUNT_PT)$(SRC)/binutils-build; \
>     fi;
>     @$(call unpack,binutils-2.16.1.tar.bz2)
>     @ROOT=`head -n1 $(MOUNT_PT)$(SRC)/$(PKG_LST) | sed 
> 's@^./@@;s@/.*@@'` && \
>     echo "export PKGDIR=$(MOUNT_PT)$(SRC)/$$ROOT" > envars && \
>     chown -R lfs $(MOUNT_PT)$(SRC)/$$ROOT
>     @( time { su - lfs -c "source /home/lfs/.bashrc && 
> /mnt/lfs/jhalfs/lfs-commands/chapter05/028-binutils-pass1" 
>  >>logs/028-binutils-pass1 2>&1 ; } ) 2>>logs/028-binutils-pass1 && \
>     echo -e "\nKB: `du -skx --exclude=jhalfs $(MOUNT_PT)`\n" 
>  >>logs/028-binutils-pass1
>     @ROOT=`head -n1 $(MOUNT_PT)$(SRC)/$(PKG_LST) | sed 
> 's@^./@@;s@/.*@@'` && \
>     rm -r $(MOUNT_PT)$(SRC)/$$ROOT && \
>     if [ -e $(MOUNT_PT)$(SRC)/binutils-build ]; then \
>         rm -r $(MOUNT_PT)$(SRC)/binutils-build; \
>     fi;
>     @touch  $@ && \
>     sleep .25 && \
>     echo -e "\n\n "$(BOLD)Target $(BLUE)$@ $(BOLD)OK && \
>     echo 
> --------------------------------------------------------------------------------$(WHITE) 
> 
> 

I can see that the unpacking happens, the echo "export ...:>  envars 
happens and the chown -R lfs $(MOUNT_PT)$(SRC)/$$ROOT happens too.
After that the script runs forever. Maybe waiting for a command? can it 
be that the su command goes wrong? I tried it manually and than the 
binutils-build dir isn't created either.

I did the binutils stage manually and touched 028-binutills-pass1. I 
removed the binutils source and build dir and conitunied witg jhalfs 
with: sudo make

It then started with gcc. But unfortunatly the same thing happens. no 
gcc-build is created. The envars file is correct is assume;

export PKGDIR=/mnt/lfs/sources/gcc-4.0.3

So it must be the
@( time { su - lfs -c "source /home/lfs/.bashrc && 
/mnt/lfs/jhalfs/lfs-commands/chapter05/028-binutils-pass1" 
 >>logs/028-binutils-pass1 2>&1 ; } ) 2>>logs/028-binutils-pass1 &&
line which gives the problem.

How can i test this?
I will try a new build on a fresh dapper install this weekend.

Michiel








More information about the alfs-discuss mailing list