Eldar Tsraev | 3 May 23:08 2012
Picon

Inferno on Mac OS X 10.7

Hello!

I am trying to build Inferno on MacOSX. Sources was taken from hg repository.
Getting bunch of errors like this:

--- skipped ---
yacc.c:326:1: error: 'main' must return 'int'
void    main(int, char**);
^
yacc.c:377:1: error: 'main' must return 'int'
void
^
--- skipped ---

gcc -v
Using built-in specs.
Target: x86_64-apple-darwin11
Configured with: ../gcc-4.4.7/configure --prefix=/opt/local
--build=x86_64-apple-darwin11
--enable-languages=c,c++,objc,obj-c++,java,fortran
--libdir=/opt/local/lib/gcc44 --includedir=/opt/local/include/gcc44
--infodir=/opt/local/share/info --mandir=/opt/local/share/man
--with-local-prefix=/opt/local --with-system-zlib --disable-nls
--program-suffix=-mp-4.4
--with-gxx-include-dir=/opt/local/include/gcc44/c++/
--with-gmp=/opt/local --with-mpfr=/opt/local --enable-stage1-checking
--enable-fully-dynamic-string
Thread model: posix
gcc version 4.4.7 (GCC)

(Continue reading)

Noah Evans | 3 May 23:28 2012
Picon

Re: Inferno on Mac OS X 10.7

Change cc to gcc. The new llvm returns that as an error.

Noah

On Thu, May 3, 2012 at 11:08 PM, Eldar Tsraev <sarelius@...> wrote:
> Hello!
>
> I am trying to build Inferno on MacOSX. Sources was taken from hg repository.
> Getting bunch of errors like this:
>
> --- skipped ---
> yacc.c:326:1: error: 'main' must return 'int'
> void    main(int, char**);
> ^
> yacc.c:377:1: error: 'main' must return 'int'
> void
> ^
> --- skipped ---
>
> gcc -v
> Using built-in specs.
> Target: x86_64-apple-darwin11
> Configured with: ../gcc-4.4.7/configure --prefix=/opt/local
> --build=x86_64-apple-darwin11
> --enable-languages=c,c++,objc,obj-c++,java,fortran
> --libdir=/opt/local/lib/gcc44 --includedir=/opt/local/include/gcc44
> --infodir=/opt/local/share/info --mandir=/opt/local/share/man
> --with-local-prefix=/opt/local --with-system-zlib --disable-nls
> --program-suffix=-mp-4.4
> --with-gxx-include-dir=/opt/local/include/gcc44/c++/
(Continue reading)

Joseph Stewart | 3 May 23:53 2012
Picon

Re: Inferno on Mac OS X 10.7

Beware:

I believe there are deprecated graphics/mouse API's used in the OSX graphics part of emu that will cause a build fail later in the chain...

-joe

On Thu, May 3, 2012 at 2:28 PM, Noah Evans <noah.evans-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Change cc to gcc. The new llvm returns that as an error.

Noah


On Thu, May 3, 2012 at 11:08 PM, Eldar Tsraev <sarelius-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hello!
>
> I am trying to build Inferno on MacOSX. Sources was taken from hg repository.
> Getting bunch of errors like this:
>
> --- skipped ---
> yacc.c:326:1: error: 'main' must return 'int'
> void    main(int, char**);
> ^
> yacc.c:377:1: error: 'main' must return 'int'
> void
> ^
> --- skipped ---
>
> gcc -v
> Using built-in specs.
> Target: x86_64-apple-darwin11
> Configured with: ../gcc-4.4.7/configure --prefix=/opt/local
> --build=x86_64-apple-darwin11
> --enable-languages=c,c++,objc,obj-c++,java,fortran
> --libdir=/opt/local/lib/gcc44 --includedir=/opt/local/include/gcc44
> --infodir=/opt/local/share/info --mandir=/opt/local/share/man
> --with-local-prefix=/opt/local --with-system-zlib --disable-nls
> --program-suffix=-mp-4.4
> --with-gxx-include-dir=/opt/local/include/gcc44/c++/
> --with-gmp=/opt/local --with-mpfr=/opt/local --enable-stage1-checking
> --enable-fully-dynamic-string
> Thread model: posix
> gcc version 4.4.7 (GCC)
>
> what i'm doing wrong?
> --
> SareLius

Charles Forsyth | 3 May 23:57 2012
Picon

Re: Inferno on Mac OS X 10.7

I believe if you set the compiler to gcc instead of cc, in the CC and LD values in

mkfiles/mkfile-MacOSX-386 it will work. cc is apparently now clang/llvm, not gcc,
and it moans about that.

Serge Gagnon | 4 May 00:34 2012

Re: Inferno on Mac OS X 10.7

Hello

If you think that it can help :

http://sergegagnon.com/workaround-to-build-vita-nuova-inferno-on-osx

Serge Gagnon

Le 2012-05-03 à 17:08, Eldar Tsraev <sarelius@...> a écrit :

> Hello!
> 
> I am trying to build Inferno on MacOSX. Sources was taken from hg repository.
> Getting bunch of errors like this:
> 
> --- skipped ---
> yacc.c:326:1: error: 'main' must return 'int'
> void    main(int, char**);
> ^
> yacc.c:377:1: error: 'main' must return 'int'
> void
> ^
> --- skipped ---
> 
> gcc -v
> Using built-in specs.
> Target: x86_64-apple-darwin11
> Configured with: ../gcc-4.4.7/configure --prefix=/opt/local
> --build=x86_64-apple-darwin11
> --enable-languages=c,c++,objc,obj-c++,java,fortran
> --libdir=/opt/local/lib/gcc44 --includedir=/opt/local/include/gcc44
> --infodir=/opt/local/share/info --mandir=/opt/local/share/man
> --with-local-prefix=/opt/local --with-system-zlib --disable-nls
> --program-suffix=-mp-4.4
> --with-gxx-include-dir=/opt/local/include/gcc44/c++/
> --with-gmp=/opt/local --with-mpfr=/opt/local --enable-stage1-checking
> --enable-fully-dynamic-string
> Thread model: posix
> gcc version 4.4.7 (GCC)
> 
> what i'm doing wrong?
> -- 
> SareLius

Noah Evans | 4 May 00:42 2012
Picon

Re: Inferno on Mac OS X 10.7

You can get around this by commenting out win. You may need to add a
line to the code section of your emu config file thought.

Noah

On Thu, May 3, 2012 at 11:53 PM, Joseph Stewart
<joseph.stewart@...> wrote:
> Beware:
>
> I believe there are deprecated graphics/mouse API's used in the OSX graphics
> part of emu that will cause a build fail later in the chain...
>
> -joe
>
> On Thu, May 3, 2012 at 2:28 PM, Noah Evans <noah.evans@...> wrote:
>>
>> Change cc to gcc. The new llvm returns that as an error.
>>
>> Noah
>>
>>
>> On Thu, May 3, 2012 at 11:08 PM, Eldar Tsraev <sarelius@...> wrote:
>> > Hello!
>> >
>> > I am trying to build Inferno on MacOSX. Sources was taken from hg
>> > repository.
>> > Getting bunch of errors like this:
>> >
>> > --- skipped ---
>> > yacc.c:326:1: error: 'main' must return 'int'
>> > void    main(int, char**);
>> > ^
>> > yacc.c:377:1: error: 'main' must return 'int'
>> > void
>> > ^
>> > --- skipped ---
>> >
>> > gcc -v
>> > Using built-in specs.
>> > Target: x86_64-apple-darwin11
>> > Configured with: ../gcc-4.4.7/configure --prefix=/opt/local
>> > --build=x86_64-apple-darwin11
>> > --enable-languages=c,c++,objc,obj-c++,java,fortran
>> > --libdir=/opt/local/lib/gcc44 --includedir=/opt/local/include/gcc44
>> > --infodir=/opt/local/share/info --mandir=/opt/local/share/man
>> > --with-local-prefix=/opt/local --with-system-zlib --disable-nls
>> > --program-suffix=-mp-4.4
>> > --with-gxx-include-dir=/opt/local/include/gcc44/c++/
>> > --with-gmp=/opt/local --with-mpfr=/opt/local --enable-stage1-checking
>> > --enable-fully-dynamic-string
>> > Thread model: posix
>> > gcc version 4.4.7 (GCC)
>> >
>> > what i'm doing wrong?
>> > --
>> > SareLius
>
>

Eldar Tsraev | 4 May 10:22 2012
Picon

Re: Inferno on Mac OS X 10.7

Thanks a lot for your help.

changing cc to gcc helps.
And I am already found issue about drawcursor :-) commenting body of
the function works fine.

2012/5/4 Noah Evans <noah.evans@...>:
> You can get around this by commenting out win. You may need to add a
> line to the code section of your emu config file thought.
>
> Noah
>
>
> On Thu, May 3, 2012 at 11:53 PM, Joseph Stewart
> <joseph.stewart@...> wrote:
>> Beware:
>>
>> I believe there are deprecated graphics/mouse API's used in the OSX graphics
>> part of emu that will cause a build fail later in the chain...
>>
>> -joe
>>
>> On Thu, May 3, 2012 at 2:28 PM, Noah Evans <noah.evans@...> wrote:
>>>
>>> Change cc to gcc. The new llvm returns that as an error.
>>>
>>> Noah

--

-- 
SareLius

Charles Forsyth | 7 May 14:08 2012
Picon

Re: Inferno on Mac OS X 10.7

I've pushed those changes out, which should continue to work on older MacOS X (with loss of drawcursor).

On 4 May 2012 09:22, Eldar Tsraev <sarelius-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Thanks a lot for your help.

changing cc to gcc helps.
And I am already found issue about drawcursor :-) commenting body of
the function works fine.

2012/5/4 Noah Evans <noah.evans <at> gmail.com>:
> You can get around this by commenting out win. You may need to add a
> line to the code section of your emu config file thought.
>
> Noah
>
>
> On Thu, May 3, 2012 at 11:53 PM, Joseph Stewart
> <joseph.stewart <at> gmail.com> wrote:
>> Beware:
>>
>> I believe there are deprecated graphics/mouse API's used in the OSX graphics
>> part of emu that will cause a build fail later in the chain...
>>
>> -joe
>>
>> On Thu, May 3, 2012 at 2:28 PM, Noah Evans <noah.evans-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>>
>>> Change cc to gcc. The new llvm returns that as an error.
>>>
>>> Noah



--
SareLius

Garry Taylor | 13 May 17:22 2012
Picon

Inferno on Mac OS X 10.7

Hello all,

I am trying to do a bit of development on Inferno, using my Mac. I've written a small program using Freetype, but every time I "kill" my program, it takes the whole of Inferno down with it. On my Terminal, it reports:

imac:Inferno gman$ sh run.sh
; wm/wm
alloc:D2B: 77ce8c8 in heap: in free blk at 7751020'7d920
area at 77ce8b8:  742d2065 7751020 0 80 0 1 263890 77ce8c0 0
    77ce8dc:  0 64 1e 0 0 64 1e 20 68281808 0 410c18
panic: alloc:D2B 77ce8c8 (from 42b64/4950e)

This is now getting to be fairly easy to replicate.

Any thoughts on what I can do to prevent?

Cheers

Garry
Charles Forsyth | 13 May 17:59 2012
Picon

Re: Inferno on Mac OS X 10.7

Fixing the bug is the most likely one. If you send me the details I'll have a look at it.

Reproducible ones are usually not that hard, although Freetype is a significant chunk of code.
It looks as though a pointer is being used after free.

On 13 May 2012 16:22, Garry Taylor <taylor.garry-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
This is now getting to be fairly easy to replicate.

Any thoughts on what I can do to prevent?


Gmane