Bug 58849 - Failed to compile files main.m
Summary: Failed to compile files main.m
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 10.3 (iOS 10.2)
Hardware: PC Windows
: --- normal
Target Milestone: 15.5
Assignee: Rolf Bjarne Kvinge [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2017-08-17 14:23 UTC by Matej Lubej
Modified: 2017-08-22 07:45 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Compile file error (7.96 KB, image/png)
2017-08-17 14:23 UTC, Matej Lubej
Details
Build Log (8.42 KB, text/plain)
2017-08-18 11:18 UTC, Matej Lubej
Details
The file the error occurs in (main.m) (1.06 KB, text/x-csrc)
2017-08-18 11:19 UTC, Matej Lubej
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Matej Lubej 2017-08-17 14:23:55 UTC
Created attachment 24274 [details]
Compile file error

Hello,

could you help me with the following error:

Error Failed to compile the file(s) '/Users/strela/Library/Caches/Xamarin/mtbs/builds/ESign.iOS/7e1c3571e4de0d7f433e1c1ffe1f7699/obj/iPhoneSimulator/Release/mtouch-cache/i386/main.m'. Please file a bug report at http://bugzilla.xamarin.com ESign.iOS

I get this error when trying to build an iOS Xamarin App. What could this error reffer to? Because I tried cleaning the project and also manually cleaning the files on Macbook.

The strange thing is that it works on another Macbook. But I dont have that Mac avaliable all the time.

Thanks,
Regards,
Matej
Comment 1 Rolf Bjarne Kvinge [MSFT] 2017-08-17 14:28:19 UTC
Can you attach the file the error message mentions, and the complete build log?
Comment 2 Matej Lubej 2017-08-18 11:18:52 UTC
Created attachment 24298 [details]
Build Log

Here is the requested build log from VisualStudio
Comment 3 Matej Lubej 2017-08-18 11:19:50 UTC
Created attachment 24299 [details]
The file the error occurs in (main.m)

The file the error occurs in (main.m) on the MacBook
Comment 4 Matej Lubej 2017-08-18 11:20:19 UTC
I just provided requested files.

Regards, Matej
Comment 5 Rolf Bjarne Kvinge [MSFT] 2017-08-18 11:24:24 UTC
Can you try adding "-v" to the additional mtouch arguments in the project's iOS Build options?

I think that will solve the problem.
Comment 6 Rolf Bjarne Kvinge [MSFT] 2017-08-18 13:10:17 UTC
master: https://github.com/xamarin/xamarin-macios/pull/2507
Comment 7 Matej Lubej 2017-08-18 13:11:36 UTC
It works with adding "-v" as you provided.
Thanks.
Comment 8 Rolf Bjarne Kvinge [MSFT] 2017-08-18 13:13:25 UTC
Reopening since it's still a bug we need to fix (you shouldn't have to add "-v").

The problem is that at one point we write the number -1 to a code file, and since you seem to have a Slovenian locale, that's formatted as "–1", which isn't a valid number (for the compiler).