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.




On Mon, Nov 2, 2015 at 3:34 PM, Pierre Labastie <[email protected]>
wrote:

> On 02/11/2015 17:53, Eliot Gable wrote:
> > I finally have glibc, binutils, and gcc all building within the chroot
> using
> > my alternate paths. Further, bzip2 and pkg-config both built without
> issues
> > and installed to my alternate paths. I even verified that bzip2 correctly
> > executes, compresses, and decompresses files. It took some header file
> > manipulation and some manipulation of various environment variables, some
> > Makefiles, and a lot of linker flags to this all working in the new
> location.
> >
> > However, now I am getting an error building ncurses. The following
> output has
> > verbose mode enabled:
> >
> >
> > cd man && make DESTDIR="" RPATH_LIST="/home/test/usr/lib" all
> > make[1]: Entering directory '/build/ncurses-6.0/man'
> > make[1]: Nothing to be done for 'all'.
> > make[1]: Leaving directory '/build/ncurses-6.0/man'
> > cd include && make DESTDIR="" RPATH_LIST="/home/test/usr/lib" all
> > make[1]: Entering directory '/build/ncurses-6.0/include'
> > make[1]: Nothing to be done for 'all'.
> > make[1]: Leaving directory '/build/ncurses-6.0/include'
> > cd ncurses && make DESTDIR="" RPATH_LIST="/home/test/usr/lib" all
> > make[1]: Entering directory '/build/ncurses-6.0/ncurses'
> > gcc -o make_hash -DHAVE_CONFIG_H -DUSE_BUILD_CC -I../ncurses -I.
> -I../include
> > -I./../include -DHAVE_CONFIG_H -I. -I../include
> -L/home/product/code/firmware/cur
> > rent/usr/lib64 -L/home/test/lib -L/lib64 -I/home/test//usr/include
> > -L/tools/lib64 -I/tools/include -Wl,--sysroot=/home/test -Wl,-nostdlib
> > -Wl,--library-path=/home/test/usr/lib64 -Wl,--library-path=/home/test/lib
> > -Wl,--library-path=/lib -Wl,--library-path=/lib64 -Wl,-rpath
> > -Wl,/home/test/usr/lib64:/home/test/lib -Wl,-rpath-link
> > -Wl,/home/test/usr/lib64:/home/test/lib
> > -Wl,--dynamic-linker=/home/test/lib/ld-linux-x86-64.so.2 -Wl,--verbose
> > -mtune=core-avx2 -O2 -pipe -fPIC -fPIC -D_GNU_SOURCE -DNDEBUG
> >  -L/home/test/usr/lib64 -L/home/test/lib -L/lib64
> -I/home/test//usr/include
> > -L/tools/lib64 -I/tools/include -Wl,--sysroot=/home/test -Wl,-nostdlib
> > -Wl,--library-path=/home/test/usr/lib64 -Wl,--library-path=/home/test/lib
> > -Wl,--library-path=/lib -Wl,--library-path=/lib64 -Wl,-rpath
> > -Wl,/home/test/usr/lib64:/home/test/lib -Wl,-rpath-link
> > -Wl,/home/test/usr/lib64:/home/test/lib
> > -Wl,--dynamic-linker=/home/test/lib/ld-linux-x86-64.so.2 -Wl,--verbose
> > -mtune=core-avx2 -O2 -pipe -fPIC -I../ncurses -I -I../include -I
> > ./tinfo/make_hash.c
>
> You could try to "cd /build/ncurses-6.0/ncurses", then copy paste the
> command
> above (from your log, not from this mail, where line have been broken
> randomly), just adding the -v option: this way, you can see the exact
> command
> sent to "collect2", and check there is nothing wrong there...
>
> 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
>



-- 
Eliot Gable

"We do not inherit the Earth from our ancestors: we borrow it from our
children." ~David Brower

"I decided the words were too conservative for me. We're not borrowing from
our children, we're stealing from them--and it's not even considered to be
a crime." ~David Brower

"Esse oportet ut vivas, non vivere ut edas." (Thou shouldst eat to live;
not live to eat.) ~Marcus Tullius Cicero
-- 
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

Reply via email to