[lfs-dev] Possible problem with current glibc (LFS 7.2 cant recompile LFS 7.2)

Bruce Dubbs bruce.dubbs at gmail.com
Sun Aug 26 15:24:42 PDT 2012

Ken Moffat wrote:

>   Well, that is the output from my build scripts.

-include /mnt/lfs/building/glibc-build/config.h
-o /mnt/lfs/building/glibc-build/sunrpc/cross-rpc_main.o
-MF /mnt/lfs/building/glibc-build/sunrpc/cross-rpc_main.o.dt
-MT /mnt/lfs/building/glibc-build/sunrpc/cross-rpc_main.o

I have this too.  I modified it slightly for readability.  There are 9 
other similar compiles and one link for cross-rpcgen (with no explicit 
libs evidently needed).

>   So, yes, as you have pointed out, it is using the host's compiler
> here.
>   Looking at my previous builds, in 2.14.1 and 2.15 cross-rpc did not
> get built, so something based on the initial patch I pointed to in
> my last mail has been included upstream.
>   I'll give it a try with --enable-obsolete-rpc

It would now appear there is an error in the sunrpc portion of the 
Makefile that is calling the wrong gcc.  I guess it didn't fail for me 
because I did install libtirpc for testing samba.

I don't know if changing the gcc to x86_64-lfs-linux-gnu-gcc would be 
sufficient or not, but I think we need to do that as a minimum.

   -- Bruce


   When used with the driver options `-MD' or `-MMD', `-MF' overrides
   the default dependency output file.

   This option instructs CPP to add a phony target for each dependency
   other than the main file, causing each to depend on nothing.  These
   dummy rules work around errors `make' gives if you remove header
   files without updating the `Makefile' to match.

      Like `-MD' except mention only user header files, not system
      header files.

`-MT TARGET' An `-MT' option will set the target to be exactly the
              string you specify.

More information about the lfs-dev mailing list