Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Releasing U++ » Error compiling nightly-4611
Error compiling nightly-4611 [message #35495] Thu, 23 February 2012 11:25 Go to next message
slashupp is currently offline  slashupp
Messages: 193
Registered: July 2009
Experienced Member
OS: debian wheezy/sid
kernel: 3.2.0-1-amd64
gcc 4.6.2
gdb: 7.3

Get following when running 'make' on unmodified source extracted from upp-x11-src-4611.tar.gz :

(...)
_out/ide/Debuggers/GCCMK-Gcc-Gui-Linux-Posix-Shared/Debugger s.a(Gdb_MI2.o): In function `Gdb_MI2::SendPrettyPrinters()':
Gdb_MI2.cpp:(.text._ZN7Gdb_MI218SendPrettyPrintersEv+0xae): undefined reference to `PrettyPrinters'
collect2: ld returned 1 exit status
make[1]: *** [ide.out] Error 1
(...)

Do I have missing prerequisites?

[edit]
Tried: python -v PrettyPrinters.py
which failed with: ImportError: No module named gdb.printing

I don't know python at all. Can someone help please?


[Updated on: Thu, 23 February 2012 12:54]

Report message to a moderator

Re: Error compiling nightly-4611 [message #35497 is a reply to message #35495] Thu, 23 February 2012 20:36 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1758
Registered: August 2008
Location: Czech Republic
Senior Contributor

Hi slashupp,

Welcome to the forum Cool

Unfortunately, this is a problem on our side Sad The makefile in the package is automatically generated and right now, it doesn't support brc (binary resources) files. However, recent changes in TheIDE use .brc file to include the PrettyPrinters in the executable.

There is not many people using the source package, so nobody reported this yet and we all somehow overlooked the problem Sad I've already created a script that provides this functionality, we'll probably just have to figure out how to put it all together for the easiest use in the source package.

If you are interested in having U++ on your debian quickly, I can create the packages for you - deb and/or dsc. (As it happens, I'm working on that lately anyways Wink )

Best regards,
Honza
Re: Error compiling nightly-4611 [message #35500 is a reply to message #35497] Thu, 23 February 2012 20:58 Go to previous messageGo to next message
slashupp is currently offline  slashupp
Messages: 193
Registered: July 2009
Experienced Member
Thanks Honza

I've already commented the 'offending' code in
uppsrc/ide/Debuggers/Gdb_MI2.cpp
(commented #include "PrettyPrinters.brc"
and the code in 'Gdb_MI2::SendPrettyPrinters()'.)
Everything then compiled & I'm using 4611 already.

Main reason I wanted the latest version is due to
strange & illusive heap leaks which I'm having
difficulty in pinning down.

Regards

PS: There's also a problem with the debian package
libgdk-pixbuf2.0-0 for which I filed a bug-report (661036):
the names for the lib uses underscores instead of
dashes and gcc therefor cannot find the lib

Also: to compile 4611 I had to add
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include
to the Makefile since I'm using a multilib-setup.

[Updated on: Thu, 23 February 2012 21:10]

Report message to a moderator

Re: Error compiling nightly-4611 [message #35501 is a reply to message #35495] Thu, 23 February 2012 21:15 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1758
Registered: August 2008
Location: Czech Republic
Senior Contributor

(Filed as RM#258)
Re: Error compiling nightly-4611 [message #35502 is a reply to message #35500] Thu, 23 February 2012 21:36 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1758
Registered: August 2008
Location: Czech Republic
Senior Contributor

slashupp wrote on Thu, 23 February 2012 20:58

I've already commented the 'offending' code in
uppsrc/ide/Debuggers/Gdb_MI2.cpp
(commented #include "PrettyPrinters.brc"
and the code in 'Gdb_MI2::SendPrettyPrinters()'.)
Everything then compiled & I'm using 4611 already.


Ok, everything will work with this change as long as you don't switch to the new (experimental) gdb interface in Setup > Environment > IDE.

slashupp wrote on Thu, 23 February 2012 20:58

PS: There's also a problem with the debian package
libgdk-pixbuf2.0-0 for which I filed a bug-report (661036):
the names for the lib uses underscores instead of
dashes and gcc therefor cannot find the lib

Also: to compile 4611 I had to add
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include
to the Makefile since I'm using a multilib-setup.
Thanks, for notice. I'll look at it.

Honza
Re: Error compiling nightly-4611 [message #35507 is a reply to message #35495] Fri, 24 February 2012 09:01 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1758
Registered: August 2008
Location: Czech Republic
Senior Contributor

Hi slashupp,

If you are still interested, I have created the wheezy packages for you. And put them into my dropbox. You can found them at http://dl.dropbox.com/u/63887172/list.html. Soon I'll publish also sid packages.

This is just a temporary place, in future I want to be able to build and publish debian packages directly on ultimatepp.org...

Honza
Re: Error compiling nightly-4611 [message #35516 is a reply to message #35502] Fri, 24 February 2012 14:54 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1259
Registered: September 2007
Senior Contributor
dolik.rce wrote on Thu, 23 February 2012 21:36


Ok, everything will work with this change as long as you don't switch to the new (experimental) gdb interface in Setup > Environment > IDE.



In reality, this will work EVEN if you enable the experimental debugger.... removing the python code will just make you to loose the ability to inspect "nicely" upp containers; rest of Gdb_Mi2 code will run correctly.

Max
Re: Error compiling nightly-4611 [message #35521 is a reply to message #35507] Fri, 24 February 2012 17:08 Go to previous messageGo to next message
slashupp is currently offline  slashupp
Messages: 193
Registered: July 2009
Experienced Member

This is great stuff, thanks Honza


Re: Error compiling nightly-4611 [message #35523 is a reply to message #35521] Fri, 24 February 2012 18:27 Go to previous messageGo to next message
slashupp is currently offline  slashupp
Messages: 193
Registered: July 2009
Experienced Member
Problem after installing sid-deb's:
theide_4611-0~sid0_amd64.deb
upp_4611-0~sid0_all.deb

created std ctrllib-app with mainwindow & build: get error:

----- CtrlLib ( GUI SSE2 GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (1 / 2)
----- test4611 ( GUI SSE2 MAIN GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (2 / 2)
main.cpp
In file included from /home/slashupp/MyApps/test4611/main.cpp:1:0:
/home/slashupp/MyApps/test4611/test4611.h:4:29: fatal error: CtrlLib/CtrlLib.h: No such file or directory
compilation terminated.
test4611: 1 file(s) built in (0:00.02), 24 msecs / file, duration = 28 msecs, parallelization 0%

There were errors. (0:00.03)
___

The only way I could find to (temporarily?) fix the above error
is to add the needed upp-packages one-by-one from uppsrc to the main package (test4611).
The package-view-window now contains:
test4611
Core
CtrlCore
CtrlLib
Draw
...
uppsrc/Core
uppsrc/CtrlCore
uppsrc/CtrlLib
uppsrc/Draw
...
<prj-aux>
...
<meta>

How should I fix this?

PS: No files are displayed when I click on Core, CrlCore, etc
but _are_ displayed when I click the uppsrc/*-entries.
The <prj-aux> ... <meta> entries also comes up empty

[Updated on: Sat, 25 February 2012 12:55]

Report message to a moderator

Re: Error compiling nightly-4611 [message #35525 is a reply to message #35523] Sat, 25 February 2012 14:05 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1758
Registered: August 2008
Location: Czech Republic
Senior Contributor

slashupp wrote on Fri, 24 February 2012 18:27

----- CtrlLib ( GUI SSE2 GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (1 / 2)
----- test4611 ( GUI SSE2 MAIN GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (2 / 2)
main.cpp
In file included from /home/slashupp/MyApps/test4611/main.cpp:1:0:
/home/slashupp/MyApps/test4611/test4611.h:4:29: fatal error: CtrlLib/CtrlLib.h: No such file or directory
compilation terminated.
test4611: 1 file(s) built in (0:00.02), 24 msecs / file, duration = 28 msecs, parallelization 0%

There were errors. (0:00.03)

This seems like a problem in your assembly configuration. Go to Select main package dialog, and check the settings of your MyApps assembly, especially the path to the uppsrc directory. Check if the path is correct and if the files are present at the given path.

Sorry I didn't tested the packages, so there might be some glitches... I actually don't even have a debian system - they were all built in chroots using pbuilder on Arch Linux Smile

Honza
Re: Error compiling nightly-4611 [message #35527 is a reply to message #35525] Sat, 25 February 2012 16:54 Go to previous messageGo to next message
slashupp is currently offline  slashupp
Messages: 193
Registered: July 2009
Experienced Member
That is spot-on!

The uppsrc under $HOME/upp contained another uppsrc-subdir.
I moved the sources up and everything worked.

This means an error in the script that copies the sources to the $HOME directory.

Re: Error compiling nightly-4611 [message #35529 is a reply to message #35527] Sat, 25 February 2012 20:24 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1758
Registered: August 2008
Location: Czech Republic
Senior Contributor

slashupp wrote on Sat, 25 February 2012 16:54

That is spot-on!

The uppsrc under $HOME/upp contained another uppsrc-subdir.
I moved the sources up and everything worked.

Glad to hear it helped Smile

slashupp wrote on Sat, 25 February 2012 16:54

This means an error in the script that copies the sources to the $HOME directory.
It's done by theide itself. I'll look at it and hopefully fix it...

Honza
Re: Error compiling nightly-4611 [message #35533 is a reply to message #35495] Sun, 26 February 2012 17:51 Go to previous message
mirek is currently offline  mirek
Messages: 12096
Registered: November 2005
Ultimate Member
Should be fixed. Project export now converts brc to "brcc" and Makefile is using brcc instead of brc...
Previous Topic: Anyone still using Ubuntu Hardy or Jaunty?
Next Topic: Some packages are missing in last nightly builds
Goto Forum:
  


Current Time: Tue Nov 12 11:48:20 CET 2019

Total time taken to generate the page: 0.01191 seconds