LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-16-2010, 04:42 AM   #1
stark_moris
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Rep: Reputation: 0
Lightbulb runtest error: Couldn't find library file gcc-dg.exp


Hi,

I am trying to run i386 in gcc_test-suite using dejagnu runtest and it fails with error given below. I can see that gcc-dg.exp is in folder gcc-4.6-20100911/gcc/testsuite/lib, but runtest is not searching in this folder.

Please suggest on how to resolve this issue and run only i386 tests.

$ cd /gcc-4.6-20100911/gcc/testsuite/gcc.target
$ runtest -a -tool i386 -verbose
....
....
Looking for library file /usr/local/share/dejagnu/lib/gcc-dg.exp
Looking for library file ./dejagnu/lib/gcc-dg.exp
Looking for library file ./lib/gcc-dg.exp
Looking for library file ./gcc-dg.exp
Looking for library file ./dejagnu/lib/gcc-dg.exp
ERROR: Couldn't find library file gcc-dg.exp.


~Thanks
 
Old 09-16-2010, 10:50 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
It tried, but you don't have the library. install it.
 
Old 09-18-2010, 04:53 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
'gcc-dg.exp' is not a library. Is a "library file" ( text ).
Not supposed to be installed.

But I guess, you can just add it to the path :
export LD_LIBRARY_PATH=/home/<xx>//gcc-4.6-20100911/gcc/testsuite/lib
&& cd /gcc-4.6-20100911/gcc/testsuite/gcc.target &&
runtest -a -tool i386 -verbose

..
 
Old 09-19-2010, 02:45 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
From post #1

Quote:
Looking for library file /usr/local/share/dejagnu/lib/gcc-dg.exp
Seems to be an exp file - whatever that is. There is a package called dejagnu. Have you that installed?
 
Old 09-19-2010, 03:55 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@business_kid , post #4
Quote:
Seems to be an exp file - whatever that is
gcc-dg.exp is a text file in : gcc-4.6-20100911/gcc/testsuite/lib
Please read post # 3.

gcc-4.6-20100911/gcc/testsuite/lib/ : 43 files, suffix .exp

..

Last edited by knudfl; 09-22-2010 at 07:11 AM.
 
Old 09-21-2010, 07:00 AM   #6
stark_moris
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Original Poster
Rep: Reputation: 0
I followed steps by knudfl and there are no errors but still tests under 'gcc.target/i386 ' are not getting executed

~Thanks


GCC version: gcc version 4.5.1

Commands:
$ echo $LD_LIBRARY_PATH
/home/gcc_test-suite/gcc-4.6-20100911/gcc/testsuite/lib

$ cd /home/gcc_test-suite/gcc-4.5.1/gcc/testsuite/gcc.target/i386

$ runtest -a -tool i386 -verbose

OUTPUT of above command is as follows:
Opening log files in .
Test Run By root on Tue Sep 21 17:11:24 2010
Native configuration is x86_64-unknown-linux-gnu

=== i386 tests ===

setting trap for SIGTERM to terminated
setting trap for SIGINT to interrupted by user
setting trap for SIGQUIT to interrupted by user
setting trap for SIGSEGV to segmentation violation
....
....Other messages(not errors),I have removed it.......
....
pushing config for target, name is unix

=== i386 Summary ===
runtest completed at Tue Sep 21 17:11:24 2010
 
Old 09-23-2010, 02:20 AM   #7
stark_moris
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Still tests under 'gcc.target/i386 ' are not getting executed.
Please check output of runtest in my previous post.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure: error: can't find Xm (motif) library MilanK Linux - Newbie 7 05-24-2015 04:35 PM
gcc compile error with X11 library routines jrbrearley Programming 2 07-26-2006 01:50 PM
Cannot find symbol, which is in static library, in a exe file. amumu Programming 0 02-03-2005 10:47 PM
GCC doesn't find the Standard-Library the_styler Linux - Software 11 01-15-2004 08:09 PM
gcc cannot find -lc library DarkDrive Linux - Software 1 08-08-2003 05:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:02 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