LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-02-2006, 10:04 PM   #1
mrchaos
Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware current, Fedora Core 5, SuSE 10.1 OSS
Posts: 298

Rep: Reputation: 30
help me pinpoint the problem in my c++ compiler!


for quite a long duration now I have had problems with my C++ compiler (g++ version 3.6.6). Here's the latest error I receive when compiling the mythtv plugins:

Code:
bash-3.00# make
cd mythcontrols && make -f Makefile
make[1]: Entering directory `/home/zax/Desktop/mythplugins-0.19/mythcontrols'
cd mythcontrols && make -f Makefile
make[2]: Entering directory `/home/zax/Desktop/mythplugins-0.19/mythcontrols/mythcontrols'
ccache distcc g++ -c -pipe -march=pentiumpro -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT -DPIC -fPIC  -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DMMX -Di386 -DUSING_DBOX2 -DHAVE_DVDNAV -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -I/usr/share/qt/mkspecs/default -I. -I/usr/local/include -I/usr/kde/3.3/include -I/usr/local/include -I/usr/X11R6/include -I/usr/include -o action.o action.cpp
ccache distcc g++ -c -pipe -march=pentiumpro -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT -DPIC -fPIC  -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DMMX -Di386 -DUSING_DBOX2 -DHAVE_DVDNAV -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -I/usr/share/qt/mkspecs/default -I. -I/usr/local/include -I/usr/kde/3.3/include -I/usr/local/include -I/usr/X11R6/include -I/usr/include -o actionset.o actionset.cpp
ccache distcc g++ -c -pipe -march=pentiumpro -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT -DPIC -fPIC  -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DMMX -Di386 -DUSING_DBOX2 -DHAVE_DVDNAV -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -I/usr/share/qt/mkspecs/default -I. -I/usr/local/include -I/usr/kde/3.3/include -I/usr/local/include -I/usr/X11R6/include -I/usr/include -o keybindings.o keybindings.cpp
distcc[29674] (dcc_get_hostlist) Warning: no hostlist is set; can't distribute work
distcc[29674] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc[29674] ERROR: compile /root/.ccache/keybinding.tmp.ZAXCOMP.29670.ii on localhost failed
keybindings.cpp: In member function `void KeyBindings::commitAction(const
   ActionID&)':
keybindings.cpp:124: error: `ClearKey' undeclared (first use this function)
keybindings.cpp:124: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
keybindings.cpp:127: error: `BindKey' undeclared (first use this function)
keybindings.cpp: In member function `void KeyBindings::commitJumppoint(const
   ActionID&)':
keybindings.cpp:154: error: `ClearJump' undeclared (first use this function)
keybindings.cpp:157: error: `BindJump' undeclared (first use this function)
make[2]: *** [keybindings.o] Error 1
make[2]: Leaving directory `/home/zax/Desktop/mythplugins-0.19/mythcontrols/mythcontrols'
make[1]: *** [sub-mythcontrols] Error 2
make[1]: Leaving directory `/home/zax/Desktop/mythplugins-0.19/mythcontrols'
make: *** [sub-mythcontrols] Error 2
I can supply more errors that I receive (most likely stemming from my gcc) if need be. However, if you are experienced in writing or compiling c++ and can tell me what might be wrong, let me know! Thanks.


(if you need more info also let me know)
 
Old 05-03-2006, 05:42 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You're using ccache. Disable it and then try again to eliminate the possibility that ccache is causing the problem.


Håkan
 
Old 05-03-2006, 11:23 AM   #3
mrchaos
Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware current, Fedora Core 5, SuSE 10.1 OSS
Posts: 298

Original Poster
Rep: Reputation: 30
this may seem rather base, but how does one disable ccache in the compiler?

**edit**
I've tried setting the boolean environment variable CCACHE_DISABLE to 1, and it hasn't worked

Last edited by mrchaos; 05-03-2006 at 11:25 AM.
 
Old 05-03-2006, 11:32 AM   #4
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Is the use of ccache something controlled by the configure script used to configure the build settings for what you're compiling?

Peace...
 
Old 05-03-2006, 07:03 PM   #5
mrchaos
Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware current, Fedora Core 5, SuSE 10.1 OSS
Posts: 298

Original Poster
Rep: Reputation: 30
unfortunately, no... there is no --disable-ccache or --disable-distcc option available in the configure script.
 
Old 05-11-2006, 02:56 PM   #6
mrchaos
Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware current, Fedora Core 5, SuSE 10.1 OSS
Posts: 298

Original Poster
Rep: Reputation: 30
***bump***
 
Old 05-11-2006, 07:39 PM   #7
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Have you asked about this on the MythTV mailing list?

Peace...
 
Old 05-12-2006, 09:24 PM   #8
mrchaos
Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware current, Fedora Core 5, SuSE 10.1 OSS
Posts: 298

Original Poster
Rep: Reputation: 30
it's far more than just mythtv, this is a problem with my compiler... here's another installment of this drama:

Code:
zax@ZAXCOMP:~/Desktop/gnomad2-2.8.3$ sudo ./configure
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GN... yes
checking for gtk+-2.0 >= 2.6.0... checking for TAG... Package id3tag was not found in the pkg-config search path.
Perhaps you should add the directory containing `id3tag.pc'
to the PKG_CONFIG_PATH environment variable
No package 'id3tag' found
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
once again there seems to be a problem with my cpp library. any hints on how to fix this would be great

it seems that the config.log is far to long to post, so if any part of it may be useful let me know

Last edited by mrchaos; 05-12-2006 at 09:30 PM.
 
Old 05-12-2006, 10:38 PM   #9
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
I'd suggest that you take a look at the config.log and see what the exact error is (it's usually towards the end of the file). Also, can you try to compile this simple C++ program:

Code:
#include <iostream>

using namespace std;

int main(void)
{
   cout << "Hello, world." << endl;
   return 0;
}
This will produce an executable that will print "Hello, world." on the console when run. Save the code into a file called prog1.cpp and compile with:

Code:
g++ prog1.cpp -o prog1
Does it work with no errors? If not, what are the errors?

Also, there's no such g++ version as 3.6.6 -- did you mean 3.3.6? What version of Slackware are you running on?
 
Old 06-01-2006, 04:37 PM   #10
mrchaos
Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware current, Fedora Core 5, SuSE 10.1 OSS
Posts: 298

Original Poster
Rep: Reputation: 30
here's a new addition:

Code:
bash-3.00# make
make -C driver all
make[1]: Entering directory `/home/zax/Programs/ivtv-0.6.2/driver'
created ivtv-svnversion.h
make -C /lib/modules/2.6.16.19/build M=/home/zax/Programs/ivtv-0.6.2/driver modules
make[2]: Entering directory `/usr/src/linux-2.6.16.19'
  CC [M]  /home/zax/Programs/ivtv-0.6.2/driver/ivtv-osd.o
  CC [M]  /home/zax/Programs/ivtv-0.6.2/driver/ivtv-queue.o
  CC [M]  /home/zax/Programs/ivtv-0.6.2/driver/ivtv-driver.o
/home/zax/Programs/ivtv-0.6.2/driver/ivtv-driver.c: In function `ivtv_parse_std':
/home/zax/Programs/ivtv-0.6.2/driver/ivtv-driver.c:612: error: `V4L2_STD_NTSC_M_KR' undeclared (first use in this function)
/home/zax/Programs/ivtv-0.6.2/driver/ivtv-driver.c:612: error: (Each undeclared identifier is reported only once
/home/zax/Programs/ivtv-0.6.2/driver/ivtv-driver.c:612: error: for each function it appears in.)
make[3]: *** [/home/zax/Programs/ivtv-0.6.2/driver/ivtv-driver.o] Error 1
make[2]: *** [_module_/home/zax/Programs/ivtv-0.6.2/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.16.19'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/zax/Programs/ivtv-0.6.2/driver'
make: *** [all] Error 2
bash-3.00#
this may be different though... perhaps my v4l is not properly compiled into my kernel

Let me know! thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 01:35 PM
pppd and Airlink Pinpoint CDMA modem woes bbeers Linux - Networking 1 11-09-2004 12:39 PM
to much network activity - how do I pinpoint? bpk Linux - Networking 1 06-05-2004 08:53 AM
c++ compiler problem evian Linux - General 4 10-30-2003 12:29 PM
compiler problem athenerx Programming 7 07-23-2002 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:41 AM.

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