[lfs-support] LFS 7.8 GCC 5.2.0 Pass 2 Compile Error
kb0iic at berzerkula.org
Mon Nov 2 14:53:00 PST 2015
On Mon, November 2, 2015 22:01, Eliot Gable wrote:
> That produces this output:
> --dynamic-linker=/home/test/lib/ld-linux-x86-64.so.2 -lgcc --as-needed
> -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed
> In function `_start':
> (.text+0x20): undefined reference to `main'
> collect2: error: ld returned 1 exit status
> I'm not sure how that helps me. The make_hash.c file has a main() function
> present. It seems strange that it would think it is undefined.
Is --no-as-needed causing you issues as you can view in some of these
examples at the following url?
More information about the lfs-support