LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-30-2013, 11:10 PM   #1
potterius
Member
 
Registered: May 2013
Posts: 39

Rep: Reputation: Disabled
5.13 check-0.9.9 error when make


hello everybody.
I have a problem when I install check-0.9.9 on chapter 5.13
when I make the output showing like this
Code:
gcc -DHAVE_CONFIG_H -I. -I..  -I../src -I../src   -g -O2 -Wall -ansi -pedantic -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-variadic-macros -MT check_check-check_check_selective.o -MD -MP -MF .deps/check_check-check_check_selective.Tpo -c -o check_check-check_check_selective.o `test -f 'check_check_selective.c' || echo './'`check_check_selective.c
mv -f .deps/check_check-check_check_selective.Tpo .deps/check_check-check_check_selective.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I../src -I../src   -g -O2 -Wall -ansi -pedantic -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-variadic-macros -MT check_check-check_check_main.o -MD -MP -MF .deps/check_check-check_check_main.Tpo -c -o check_check-check_check_main.o `test -f 'check_check_main.c' || echo './'`check_check_main.c
mv -f .deps/check_check-check_check_main.Tpo .deps/check_check-check_check_main.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -Wall -ansi -pedantic -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-variadic-macros   -o check_check check_check-check_list.o check_check-check_check_sub.o check_check-check_check_master.o check_check-check_check_msg.o check_check-check_check_log.o check_check-check_check_log_internal.o check_check-check_check_limit.o check_check-check_check_fork.o check_check-check_check_fixture.o check_check-check_check_pack.o check_check-check_check_exit.o check_check-check_check_selective.o check_check-check_check_main.o ../src/libcheckinternal.la ../lib/libcompat.la -lrt
libtool: link: gcc -g -O2 -Wall -ansi -pedantic -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-variadic-macros -o check_check check_check-check_list.o check_check-check_check_sub.o check_check-check_check_master.o check_check-check_check_msg.o check_check-check_check_log.o check_check-check_check_log_internal.o check_check-check_check_limit.o check_check-check_check_fork.o check_check-check_check_fixture.o check_check-check_check_pack.o check_check-check_check_exit.o check_check-check_check_selective.o check_check-check_check_main.o  ../src/.libs/libcheckinternal.a ../lib/.libs/libcompat.a -lrt
gcc -DHAVE_CONFIG_H -I. -I..  -I../src -I../src   -g -O2 -Wall -ansi -pedantic -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-variadic-macros -MT check_stress.o -MD -MP -MF .deps/check_stress.Tpo -c -o check_stress.o check_stress.c
mv -f .deps/check_stress.Tpo .deps/check_stress.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -Wall -ansi -pedantic -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-variadic-macros   -o check_stress check_stress.o ../src/libcheck.la ../lib/libcompat.la -lrt
libtool: link: gcc -g -O2 -Wall -ansi -pedantic -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-variadic-macros -o .libs/check_stress check_stress.o  ../src/.libs/libcheck.so ../lib/.libs/libcompat.a -lrt -Wl,-rpath -Wl,/tools/lib
gcc -DHAVE_CONFIG_H -I. -I..  -I../src -I../src   -g -O2 -Wall -ansi -pedantic -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-variadic-macros -MT check_thread_stress-check_thread_stress.o -MD -MP -MF .deps/check_thread_stress-check_thread_stress.Tpo -c -o check_thread_stress-check_thread_stress.o `test -f 'check_thread_stress.c' || echo './'`check_thread_stress.c
mv -f .deps/check_thread_stress-check_thread_stress.Tpo .deps/check_thread_stress-check_thread_stress.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -Wall -ansi -pedantic -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-variadic-macros   -o check_thread_stress check_thread_stress-check_thread_stress.o ../src/libcheck.la ../lib/libcompat.la  -lrt
libtool: link: gcc -g -O2 -Wall -ansi -pedantic -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-variadic-macros -o .libs/check_thread_stress check_thread_stress-check_thread_stress.o  ../src/.libs/libcheck.so ../lib/.libs/libcompat.a -lrt -Wl,-rpath -Wl,/tools/lib
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld: check_thread_stress-check_thread_stress.o: undefined reference to symbol 'pthread_create@@GLIBC_2.1'
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /tools/lib/libpthread.so.0 so try adding it to the linker command line
/tools/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [check_thread_stress] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/check-0.9.9/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/check-0.9.9'
make: *** [all] Error 2
somebody please help me
thanks before guys

Last edited by potterius; 06-01-2013 at 10:15 PM.
 
Old 05-31-2013, 02:52 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Can you tell us a bit more:

- LFS version (assuming 7.3 stable)?
- Does your system meet the host system requirements?
- Which make step are you talking about? The above looks like the make check step.

Running the tests is rather useless in chapter 5 (as mentioned in the book). The tests are mandatory in chapter 6, but in chapter 5 they can introduce problems because not everything is in place yet to fully/successfully run them.
 
1 members found this post helpful.
Old 01-30-2014, 04:59 AM   #3
b1n4rysh4d0w
LQ Newbie
 
Registered: Dec 2013
Posts: 9

Rep: Reputation: Disabled
Hi, I have the same problem, tring to build from a liveCD of ubuntu 13.04 on a clean HDD, with check 0.9.9, strange beaucase I ensured I done all correctly...
into the
./configure all goes well, when I do "make" that's the final part of the output:
Code:
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld: check_thread_stress-check_thread_stress.o: undefined reference to symbol 'pthread_create@@GLIBC_2.1'
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /tools/lib/libpthread.so.0 so try adding it to the linker command line
/tools/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [check_thread_stress] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/check-0.9.9/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/check-0.9.9'
make: *** [all] Error 2
i tried going forward, but obiouvsely it can't do it...

Last edited by b1n4rysh4d0w; 01-30-2014 at 05:03 AM.
 
Old 04-15-2014, 11:52 AM   #4
potterius
Member
 
Registered: May 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
this problem was fixed
 
Old 05-01-2016, 05:55 AM   #5
Luc1f3r
LQ Newbie
 
Registered: Apr 2016
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by potterius View Post
this problem was fixed
Hi Potterius,

I am having same issue. How did you fix it?

Thanks
 
Old 05-01-2016, 06:01 AM   #6
Luc1f3r
LQ Newbie
 
Registered: Apr 2016
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by Luc1f3r View Post
Hi Potterius,

I am having same issue. How did you fix it?

Thanks
I found it

Changes to some distros cause the build of check-0.9.9 to fail in Chapter 5. The proper fix is to add
--with-sysroot to the end of the configure line in Binutils-2.23.1 - Pass 2.

An alternative fix is to change the build instructions of check to be:


CFLAGS="-L/tools/lib -lpthread" ./configure --prefix=/tools
CFLAGS="-L/tools/lib -lpthread" make

http://www.linuxfromscratch.org/lfs/errata/7.3/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make -k check error coolsami Linux From Scratch 4 08-06-2009 09:20 AM
make: *** [check] Error 1 MrLinuxBoy Linux - Newbie 22 01-12-2008 04:36 PM
glibc-2.3.4 make check error Snowmiss Linux From Scratch 1 08-04-2006 04:44 AM
Error:6.11 Glibc-2.3.4---make check ukyo Linux From Scratch 3 08-26-2005 05:33 PM
gcc-3.3.1 make -k check - make [check] Error 2 BarryM45 Linux From Scratch 1 02-05-2004 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration