On 02/11/2015 23:01, Eliot Gable wrote:
That produces this output:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/test/usr/bin/../libexec/gcc/x86_64-unknown-linux-gnu/5.2.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-5.2.0/configure --prefix=/usr
--with-local-prefix=/usr --with-native-system-header-dir=/usr/include
--enable-languages=c,c++ --disable-multilib --disable-bootstrap
--with-system-zlib
Thread model: posix
gcc version 5.2.0 (GCC)
COMPILER_PATH=/home/test/usr/bin/../libexec/gcc/x86_64-unknown-linux-gnu/5.2.0/:/home/test/usr/bin/../libexec/gcc/
LIBRARY_PATH=/home/test/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0/:/home/test/usr/bin/../lib/gcc/:/home/test/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/home/test/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-o' 'make_hash' '-D' 'HAVE_CONFIG_H' '-D'
'USE_BUILD_CC' '-I' '../ncurses' '-I' '.' '-I' '../include' '-I'
'./../include' '-D' 'HAVE_CONFIG_H' '-I' '.' '-I' '../include'
'-L/home/test/home/test/usr/lib64' '-L/home/test/lib' '-L/lib64' '-I'
'/home/test//home/test/usr/include' '-L/tools/lib64' '-I'
'/tools/include' '-mtune=core-avx2' '-O2' '-pipe' '-D' '_GNU_SOURCE'
'-D' 'NDEBUG' '-L/home/test/home/test/usr/lib64' '-L/home/test/lib'
'-L/lib64' '-I' '/home/test//home/test/usr/include' '-L/tools/lib64'
'-I' '/tools/include' '-mtune=core-avx2' '-O2' '-pipe' '-fPIC' '-I'
'../ncurses' '-I' '-I../include' '-I' './tinfo/make_hash.c' '-v'
'-march=x86-64'
/home/test/usr/bin/../libexec/gcc/x86_64-unknown-linux-gnu/5.2.0/collect2
-plugin
/home/test/usr/bin/../libexec/gcc/x86_64-unknown-linux-gnu/5.2.0/liblto_plugin.so
-plugin-opt=/home/test/usr/bin/../libexec/gcc/x86_64-unknown-linux-gnu/5.2.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccEvImsF.res
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr -m elf_x86_64
-dynamic-linker /lib64/ld-linux-x86-64.so.2 -o make_hash
/home/test/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib64/crt1.o
/home/test/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib64/crti.o
/home/test/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0/crtbegin.o -L/home/test/home/test/usr/lib64
-L/home/test/lib -L/lib64 -L/tools/lib64
-L/home/test/home/test/usr/lib64 -L/home/test/lib -L/lib64
-L/tools/lib64
-L/home/test/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0
-L/home/test/usr/bin/../lib/gcc
-L/home/test/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/home/test/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../.. --sysroot=/home/test
-nostdlib --library-path=/home/test/home/test/usr/lib64
--library-path=/home/test/lib --library-path=/lib
--library-path=/lib64 -rpath
/home/test/home/test/usr/lib64:/home/test/lib -rpath-link
/home/test/home/test/usr/lib64:/home/test/lib
--dynamic-linker=/home/test/lib/ld-linux-x86-64.so.2
--sysroot=/home/test -nostdlib
--library-path=/home/test/home/test/usr/lib64
--library-path=/home/test/lib --library-path=/lib
--library-path=/lib64 -rpath
/home/test/home/test/usr/lib64:/home/test/lib -rpath-link
/home/test/home/test/usr/lib64:/home/test/lib
--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
/home/test/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0/crtend.o
/home/test/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib64/crtn.o
/home/test/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib64/crt1.o:
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.
Please do not top-post.
The amazing part of the above command is that there is no ".o" file to
link to, except the standard startup and end files...
I think the original command as something wrong at the end: "-I
./tinfo/make_hash.c". I guess gcc thinks that ./tinfo/make_hash.c is an
include directory...
How that command was generated looks like a bug in the ncurses Makefile,
which does not show up when using standard locations. I am not sure I
can help more.
Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style