Gcc compilation “cannot compute suffix of object files: cannot compile”

后端 未结 3 1180
一整个雨季
一整个雨季 2021-01-31 18:02

I\'m actually reading the LFS book (version 7.1) and I\'m blocked at page 53. Trying to compile gcc, I tried the following command:

./configure --target=$LFS_TGT         


        
3条回答
  •  失恋的感觉
    2021-01-31 18:35

    This issue is caused by dyanmic link library path issue when the test programs try to link against libmpc/libmpfr/libgmp.

    Append below environment variable to allow ld link against the correct so file:

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/mpc/lib/
    

    Then try build gcc again.

提交回复
热议问题