Mon Oct 25, 2021 11:21 pm
Login Register Lost Password? Contact Us


eclcc override default g++ version

Post questions specific to installation or configuration for the HPCC Systems platform

Mon Oct 17, 2011 12:59 pm Change Time Zone

How do I change which version eclcc will use (without changing for my entire OS)?

Background:
Using Ubuntu 11.10 (default g++ is 4.6xxx)
HPCC-Platform, built using g++ 4.5xxx

Gordon.

PS eclcc.log:

Code: Select all
00000000 2011-10-17 13:55:59  8328  8328 Adding library: eclrtl
00000001 2011-10-17 13:55:59  8328  8328 Adding library: a.out.res.o
00000002 2011-10-17 13:55:59  8328  8328 Compiling a.out
00000003 2011-10-17 13:55:59  8328  8328 Failed to compile a.out
00000004 2011-10-17 13:55:59  8328  8328
---------- compiler output --------------
a.out.o: In function `main':
a.out.cpp:(.text+0x1c): undefined reference to `start_query(int, char const**)'
a.out.o: In function `EclProcess::Link() const':
a.out.cpp:(.text._ZNK10EclProcess4LinkEv[non-virtual thunk to EclProcess::Link() const]+0x1a): undefined reference to `RtlCInterface::Link() const'
a.out.o: In function `EclProcess::Release() const':
a.out.cpp:(.text._ZNK10EclProcess7ReleaseEv[non-virtual thunk to EclProcess::Release() const]+0x1a): undefined reference to `RtlCInterface::Release() const'
collect2: ld returned 1 exit status

--------- end compiler output -----------
gsmith
 
Posts: 290
Joined: Thu May 12, 2011 9:40 am

Mon Oct 17, 2011 1:13 pm Change Time Zone

I would expect you'll get other issues if you try to run a DEB designed for an earlier version of ubuntu on Ubuntu 11.10 (the boost library version found by default has changed, for a start). The master branch on GitHub includes support for building an Ubuntu 11.10 system...

Having said that, I'm not sure that the issue you see here is caused by a compiler version mismatch (though I suppose it might be...)

You can control the path used to locate g++ using compilerPath= in the specs file (usually eclcc.ini) - the location [compilerPath]/bin/g++ is what will actually be used.
richardkchapman
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 110
Joined: Fri Jun 17, 2011 8:59 am

Mon Oct 17, 2011 2:17 pm Change Time Zone

richardkchapman wrote:You can control the path used to locate g++ using compilerPath= in the specs file (usually eclcc.ini) - the location [compilerPath]/bin/g++ is what will actually be used.


I couldn't get the above to work (but didn't try too hard) - switching to "master" branch is probably the way to go (it was broke when I tried it last).
gsmith
 
Posts: 290
Joined: Thu May 12, 2011 9:40 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron