LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2010, 06:05 AM   #1
p.heidary
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Rep: Reputation: 0
Red face gccxml


Hi

I have problem installing gccxml something called lvalue.
So I want to know what is lvalue and how can I fix the problem.
The error massage is as follows
"[hassan@localhost gccxml-build]$ make
[ 11%] Built target iberty
[ 11%] Built target gengenrtl
[ 12%] Built target gengtype
[ 12%] Building C object GCC/gcc/CMakeFiles/genconstants.dir/read-rtl.o
/home/hassan/gccxml/GCC/gcc/read-rtl.c: In function ‘read_rtx’:
/home/hassan/gccxml/GCC/gcc/read-rtl.c:653: error: lvalue required as increment operand
make[2]: *** [GCC/gcc/CMakeFiles/genconstants.dir/read-rtl.o] Error 1
make[1]: *** [GCC/gcc/CMakeFiles/genconstants.dir/all] Error 2
make: *** [all] Error 2
"
and the gcc version is:gcc version 4.3.0 20080428 (Red Hat 4.3.0-8)
Can you guide me please?
 
Old 04-12-2010, 07:46 AM   #2
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
gccxml .. .. Fedora 9

http://packages.debian.org/sid/gccxml
http://ftp.de.debian.org/debian/pool...16.orig.tar.gz
>>> gccxml_0.9.0+cvs20090916.orig.tar.gz
+ http://ftp.de.debian.org/debian/pool...0916-1.diff.gz
gccxml_0.9.0+cvs20090916-1.diff.gz > debian/pacthes/01* and 02*
.. And apply the two patches.

[ 12%] Built target decnumber
[ 15%] Built target cpp
[ 96%] Built target gccxml_cc1plus
[ 99%] Built target gccxml
[100%] Built target documentation

.....
.....

P.S. : Latest is
http://www.gccxml.org/HTML/Download.html
cvs -d : pserver:anoncvs@www.gccxml.org:/cvsroot/GCC_XML login
cvs -d : pserver:anoncvs@www.gccxml.org:/cvsroot/GCC_XML co gccxml
.....

Last edited by knudfl; 04-12-2010 at 09:10 AM.
 
Old 04-13-2010, 03:53 AM   #3
p.heidary
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Thanx but can u guide me clearly!
what do you mean by aplying patch?
Do you mean copy & paste it in build directory?
And I couldn't find "debian/pacthes/01* and 02*"
There was just a diff file "gccxml_0.9.0+cvs20090916-1.diff"
Another question is what do you mean by the sign > in expression "gccxml_0.9.0+cvs20090916-1.diff.gz > debian/pacthes/01* and 02*"?

Last edited by p.heidary; 04-13-2010 at 04:14 AM.
 
Old 04-13-2010, 04:04 AM   #4
p.heidary
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
I have ran the source but I recieved the error "CMake Error in GCC/libiberty/CMakeList.txt:
Cannot find source file "xatexit.c". Tried extentions .c .C c++ .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx"

Last edited by p.heidary; 04-13-2010 at 04:14 AM.
 
Old 04-13-2010, 04:42 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
The 'patch' command : Please read the manual by doing
the command : man patch

1) Create a new directory anywhere in /home/"username"/
2) mv gccxml_0.9.0+cvs20090916-1.diff.gz <new-directory>/
3) cd <new-directory>/
.. unpack the file here ( gunzip <file>.gz ).
4) patch -p1 < gccxml_0.9.0+cvs20090916-1.diff
.. and you will see the "debian/" folder appear.
5) Copy the two patches in debian/patches/
to the gccxml-0.9.0+cvs20090916.orig/ directory.
6) patch -p0 < 01_remove-xatexit.diff
7) patch -p0 < 02_quote-target-cpu-default.diff
8) And now you can go to your build/ folder and do 'cmake ..'
cd build/ && cmake .. && make


You never told which version of gccxml, you are trying to use.
Please tell, if you have further questions.
.....

Last edited by knudfl; 04-13-2010 at 05:55 AM.
 
1 members found this post helpful.
Old 04-16-2010, 06:02 AM   #6
p.heidary
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Thanx alot Mr.knudfl
It was very very helpfull finally it works
 
  


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
Problem installing gccxml p.heidary Linux - Software 1 04-12-2010 12:05 PM
had a problem while loading gccxml pradee.y5mc Linux - Software 1 08-17-2007 12:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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