Island Error (IP1)

I’m trying out the Island target by making a simple library and a console application in Oxygene that uses that library. When it tries to compile or link the application I get the IP1 error. The output is the following:

------ Build started: Project: HelloLib, Configuration: Debug ------
HelloLib -> c:\users\michael\projects\visual studio 2015\Projects\HelloTest\HelloLib\bin\Debug\Windows\i386\HelloLib.fx
------ Build started: Project: HelloWorld, Configuration: Debug ------
c:\users\michael\projects\visual studio 2015\Projects\HelloTest\HelloLib\bin\Debug\Windows\i386\HelloLib.fx
C:\Program Files (x86)\MSBuild\RemObjects Software\Elements\RemObjects.Elements.Island.Windows.targets(79,5): error IP1: Error when running command: C:\Program Files (x86)\RemObjects Software\Elements\Bin\lld.exe
Done building project "HelloWorld.elements" -- FAILED.

Build FAILED.
========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ==========

I’m using Visual Studio 2015 on Windows 10. My version of Elements is 9.0.97.2071.

I’m attaching the sample project.HelloTest.zip (264.3 KB)

Thanks, logged as bugs://77153

Nice catch. Yes there’s an issue here that causes this:

error: duplicate symbol: __cctorinit_t1f_RemObjects.Elements.System.Math_helper c:\users\carlokok\downloads\hellotest\hellolib\bin\debug\windows\i386\hellolib.dll and __cctorinit_t1f_RemObjects.Elements.System.Math_helper island.lib(island.o)

I’ll take a look,thanks for the report.

1 Like

As a temporary workaround, using static libraries will work fine. Dynamic will work too (after this bug is fixed)

1 Like

I wasn’t aware that Island could make static libraries. I’ve just started experimenting with it and am away from my home laptop now. Is that setting under project options?

Yes. The default template is set to library at this moment, but we’re fixing that. The idea is that there will be two distinct templates for this. Changing this:

To static library should do it.

1 Like

bugs://77153 got closed with status fixed.

1 Like

Logged as bugs://i64916.

bugs://i64916 was closed as fixed.