[Mono-dev] Strange build problem

Alexander Köplinger alexander.koeplinger at xamarin.com
Fri Jan 22 16:54:34 UTC 2016


For the benefit of future readers: this turned out to be gcc compiler bugs
in the versions we were using.

On nealef-s390x-1 we are using gcc 4.4.7. Neale sent
https://github.com/mono/mono/pull/2488 to workaround this problem which
worked fine there.
However, it broke the build on nealef-s390x-2 with gcc 4.3.4 (which was
working fine before!) with the exact same error that the patch fixed on the
other machine. So Neale sent another PR to fix both:
https://github.com/mono/mono/pull/2494

I've now reenabled both s390x Jenkins workers again and the build seems
happy :)

- Alex

2016-01-20 15:02 GMT+01:00 Alexander Köplinger <
alexander.koeplinger at xamarin.com>:

> Hey,
>
> Are you sure you’re running this on the nealef-s390x-2 machine and not
> nealef-s390x-1 ?
> This sounds exactly like the problem with the ancient gcc we ran into on
> the -1 machine, that’s why we’re only using the -2 machine on Jenkins now.
>
> In fact, my IRC log shows we discussed this back in October 2015:
>
> <directhex> neale: still no success compiling on nealef-s390x-1, with -O2
> <directhex>
> https://jenkins.mono-project.com/job/z/label=centos-s390x/2065/parsed_console/log_content.html#ERROR1
> <directhex> System/AndroidPlatform.cs(66,246): error CS1525: Unexpected
> symbol `end-of-file', expecting `end-of-file'
> <directhex> ._.
> <neale> directhex: At least it got rid of the inline errors problem ;-)
> <directhex> yes this is technically true
> <neale> I've never seen this particular problem before
> <directhex> maybe a checkout problem? want to delete the workspace?
> <neale> The z workspace?
> <akoeplinger> hmm, it affects all files that are completely #ifdefed out
> <neale> Yup
> <directhex> neale: yes
> <neale> z gone\
> <directhex> it's renamed to "z" because the same job also handles windows
> builds, and windows has a silly low PATH_MAX
> <directhex> which the old name was causing errors for
> <neale> Ah
> <directhex> so single-char job names if they run on windows
> <neale> I ran a build in
> /home/jenkins/workspace/test-mono-mainline-communityarchitectures/label/centos-s390x
> (From Sep28) and forced a recompile of Android.cs which has the same ifdef
> situation and the build was clean.
> <directhex> that job name is the old "z" job
> <directhex> see, very long name, poor windows
> <neale> Understood, just wanted to point out that a build used to work for
> those files
>
> AFAIK we never got past that problem on the -1 machine, so we just stopped
> using it.
>
> - Alex
>
> > Am 20.01.2016 um 03:13 schrieb Neale Ferguson <neale at sinenomine.net>:
> >
> > Re: bugzilla 37781
> >
> > On the same virtual machine in which the Jenkins bot successfully builds
> > mono, I am encountering failures of an unusual type. Thinking it might be
> > a hangover to something in the account’s home directory, I created a
> > completely new account, cloned from master, configured and built. It
> craps
> > out with the following:
> >
> > MCS     [build] mscorlib.dll
> > Assembly/AssemblyInfo.cs(33,5): error CS8025: Parsing error
> > System/AndroidPlatform.cs(66,246): error CS1525: Unexpected symbol
> > `end-of-file', expecting `end-of-file'
> > System/Console.iOS.cs(127,246): error CS1525: Unexpected symbol
> > `end-of-file', expecting `end-of-file'
> > System/Guid.MonoTouch.cs(24,253): error CS1525: Unexpected symbol
> > `end-of-file', expecting `end-of-file'
> > System/TimeZoneInfo.Android.cs(737,246): error CS1525: Unexpected symbol
> > `end-of-file', expecting `end-of-file'
> > System/TimeZoneInfo.MonoTouch.cs(109,246): error CS1525: Unexpected
> symbol
> > `end-of-file', expecting `end-of-file'
> > System.Globalization/RegionInfo.MonoTouch.cs(54,246): error CS1525:
> > Unexpected symbol `end-of-file', expecting `end-of-file'
> > System.IO/LogcatTextWriter.cs(80,246): error CS1525: Unexpected symbol
> > `end-of-file', expecting `end-of-file'
> > System.Security/SecurityManager_mobile.cs(215,246): error CS1525:
> > Unexpected symbol `end-of-file', expecting `end-of-file'
> > System.Security.Cryptography/CryptoConfig.fullaot.cs(239,246): error
> > CS1525: Unexpected symbol `end-of-file', expecting `end-of-file'
> >
> ../../../external/referencesource/mscorlib/system/resources/__hresults.cs(2
> > 6,246): error CS1525: Unexpected symbol `end-of-file', expecting
> > `end-of-file'
> >
> ../../../external/referencesource/mscorlib/system/resources/looselylinkedre
> > sourcereference.cs(89,246): error CS1525: Unexpected symbol
> `end-of-file',
> > expecting `end-of-file'
> > Compilation failed: 12 error(s), 0 warnings
> >
> > I am at a loss to work out WTF is happening. I like the way the error
> > message keeps a straight face when it complains about encountering
> > “end-of-file” symbol when it was really expecting “end-of-file”!
> >
> >
> > Any suggestions about where to look?
> >
> > Neale
> >
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20160122/c2554b22/attachment.html>


More information about the Mono-devel-list mailing list