Fixing compilation/any update?

25 views
Skip to first unread message

Dorival Pedroso

unread,
Jun 25, 2012, 10:05:47 PM6/25/12
to copperhe...@googlegroups.com
Hi,

I've just compiled copperhead but had to fix some lines (see below) in order to get it working. This is probably due to my g++ 4.7.1 (Debian); but not sure.

I'm just wondering if there are any updates (or plans)?

Thanks a lot for this nice work, anyway.
Cheers
Dorival


fixing  copperhead/backend/inc/utility/initializers.hpp

diff:

46c46
<         push_back(input);
---
>         this->push_back(input);
93c93
<         insert(std::make_pair(key, val));
---
>         this->insert(std::make_pair(key, val));
141c141
<         insert(val);
---
>         this->insert(val);

comment out line # 75 of stage/copperhead/runtime/__init__.py

Bryan Catanzaro

unread,
Jun 26, 2012, 5:07:24 PM6/26/12
to copperhe...@googlegroups.com
Hi Dorival -
Thanks for the updates - the changes to utility/initializers.hpp will
be in the official repository soon.
I'm not sure what line you commented out in runtime/__init__.py.
Could you ensure it's line 75 in the following source:
https://github.com/copperhead/copperhead/blob/master/copperhead/runtime/__init__.py

As far as plans go -
I'm currently hard at work fixing a bunch of bugs and adding more
tests and example programs, in preparation for my talk at SciPy 2012.

You can see the code at
http://copperhead.github.com

Thanks,
bryan

Dorival Pedroso

unread,
Jun 26, 2012, 7:46:12 PM6/26/12
to copperhe...@googlegroups.com
Thanks Bryan.

I had the code from code.google.com/p/copperhead before; in that one, line # 75 of __init__.py corresponds to:
host_toolchain.depflags.append('-std=c++0x')
where the depflags seems to be removed from host_toolchain.

Now I'm using the code from copperhead.github.com and the only change is with regards the 'this' command indicator (diff of backend/inc/utility/initializers.hpp below)

46c46
<         push_back(input);
---
>         this->push_back(input);
93c93
<         insert(std::make_pair(key, val));
---
>         this->insert(std::make_pair(key, val));
141c141
<         insert(val);
---
>         this->insert(val);
 
Just a tiny comment: the icon for github isn't showing that's why probably I went to google code instead...

Cheers.
Dorival

Bryan Catanzaro

unread,
Jun 26, 2012, 11:32:14 PM6/26/12
to copperhe...@googlegroups.com
Thanks, I've incorporated these fixes into the mainline repository.
Also, which icon is missing? If you could point it out, I'll try to fix it.

- bryan

On Tue, Jun 26, 2012 at 4:46 PM, Dorival Pedroso

Dorival Pedroso

unread,
Jun 26, 2012, 11:45:44 PM6/26/12
to copperhe...@googlegroups.com
please see figure attached with missing icon. cheers. dorival
sshot-2012-06-27-1340768523.png

Bryan Catanzaro

unread,
Jun 27, 2012, 12:02:21 AM6/27/12
to copperhe...@googlegroups.com
Thanks! I think the icon should be back now.

- bryan

On Tue, Jun 26, 2012 at 8:45 PM, Dorival Pedroso

Dorival Pedroso

unread,
Jun 27, 2012, 12:03:43 AM6/27/12
to copperhe...@googlegroups.com
yep! thank you.
Reply all
Reply to author
Forward
0 new messages