haithem rahmani | 3 Sep 22:28
Picon

unable to cross-compile agar

Hi,
I'm trying to cross compile agar here what I did:

$> ./configure --host=sh4-linux- 

the script detect the cross-compiler but fails to point to the correct include files and libs

it is using the ''/usr/include'' but it should point to ''/opt/STM/STLinux-2.4/devkit/sh4/target/usr/include''

any idea how to fix this ?

regards
haithem

--
"If you ask a question - you will be a fool for 5 minutes, otherwise ignorant for rest of your life"

_______________________________________________
Agar mailing list
Agar@...
http://libagar.org/lists.html
MAP | 6 Sep 23:01
Picon

AGAR Build

I am trying to do a clean build of agar 1.4.1 on a new fedora 15 build.
The kernel is 2.6.40.3-0.fc15.x86_64 and gcc version is 4.6.0.

Make fails with several errors, and the config.log has the following:

conftest.c: In function ‘main’:
conftest.c:5:9: error: variable ‘d’ set but not used [-Werror=unused-but-set ]
conftest.c:4:8: error: variable ‘f’ set but not used [-Werror=unused-but-set ]
cc1: all warnings being treated as errors

Make, it you continue, reports the following:
In file included from core.h:12:0,
                 from variable.c:26:
/home/MAP/Downloads/agar-1.4.1/include/agar/core/types.h:103:16: warning:
useless storage class specifier in empty declaration [enabled by default]
In file included from /home/MAP/Downloads/agar-1.4.1/include/agar/cor
/begin.h:8:0,
from /home/MAP/Downloads/agar-1.4.1/include/agar/core/threads.h:28,
from core.h:20,
from variable.c:26:

Can you point me in the right direction for fixing this?

Thanks Mike.

_______________________________________________
Agar mailing list
Agar <at> hypertriton.com
http://libagar.org/lists.html
rafael ff1 | 16 Sep 21:54
Picon

Build fail on Archlinux

Hi there,

Trying to build agar in Archlinux 64bit, but it fails. Can you please
help solving this problem?

$ uname -a
Linux asterix 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011
x86_64 Intel(R) Atom(TM) CPU N550 @ 1.50GHz GenuineIntel GNU/Linux

Config log: http://pastebin.com/HCz6Mek1

Thanks in advance,

Rafael
Julien Nadeau | 17 Sep 01:21
Favicon

Re: Build fail on Archlinux


Hi Rafael,

The problem is due to gcc's new "-Wunused-but-set-variable" which
causes configure tests to fail. As a work around you can use:

    env CFLAGS="-O2 -Wno-unused-but-set-variable" ./configure ...

Or you can build from current svn sources which includes a fix.

On Fri, Sep 16, 2011 at 04:54:09PM -0300, rafael ff1 wrote:
> Hi there,
> 
> Trying to build agar in Archlinux 64bit, but it fails. Can you please
> help solving this problem?
> 
> $ uname -a
> Linux asterix 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011
> x86_64 Intel(R) Atom(TM) CPU N550 @ 1.50GHz GenuineIntel GNU/Linux
> 
> Config log: http://pastebin.com/HCz6Mek1
> 
> Thanks in advance,
> 
> Rafael
> 
> _______________________________________________
> Agar mailing list
> Agar@...
> http://libagar.org/lists.html
rafael ff1 | 17 Sep 02:02
Picon

Re: Build fail on Archlinux

Great, this solved the compilation problem. But I came through another
problem during the installation:

* command line:
make  DESTDIR="${pkgdir}" MANDIR=/usr/share/man LIBDIR=/usr/lib/agar install

(where "pkgdir" is the fakeroot for installing files)

* error message output:
(...)
install -c -m 644  /home/rafael/builds/agar/pkg/usr/share/man/cat3
install: cannot stat `\177': No such file or directory
install-manpages.sh failed

(complete output: http://pastebin.com/RHu5cX5e)

2011/9/16 Julien Nadeau <vedge@...>:
>
> Hi Rafael,
>
> The problem is due to gcc's new "-Wunused-but-set-variable" which
> causes configure tests to fail. As a work around you can use:
>
>    env CFLAGS="-O2 -Wno-unused-but-set-variable" ./configure ...
>
> Or you can build from current svn sources which includes a fix.
>
> On Fri, Sep 16, 2011 at 04:54:09PM -0300, rafael ff1 wrote:
>> Hi there,
>>
>> Trying to build agar in Archlinux 64bit, but it fails. Can you please
>> help solving this problem?
>>
>> $ uname -a
>> Linux asterix 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011
>> x86_64 Intel(R) Atom(TM) CPU N550 @ 1.50GHz GenuineIntel GNU/Linux
>>
>> Config log: http://pastebin.com/HCz6Mek1
>>
>> Thanks in advance,
>>
>> Rafael
>>
>> _______________________________________________
>> Agar mailing list
>> Agar@...
>> http://libagar.org/lists.html
>
Julien Nadeau | 17 Sep 02:15
Favicon

Re: Build fail on Archlinux


That one is due to a bug in bash (which I assume you have installed
under /bin/sh). There is a work around in svn, but I don't remember
where it was exactly. You can also set the SH environment variable
to an alternate shell when invoking make.

On Fri, Sep 16, 2011 at 09:02:25PM -0300, rafael ff1 wrote:
> Great, this solved the compilation problem. But I came through another
> problem during the installation:
> 
> * command line:
> make  DESTDIR="${pkgdir}" MANDIR=/usr/share/man LIBDIR=/usr/lib/agar install
> 
> (where "pkgdir" is the fakeroot for installing files)
> 
> * error message output:
> (...)
> install -c -m 644  /home/rafael/builds/agar/pkg/usr/share/man/cat3
> install: cannot stat `\177': No such file or directory
> install-manpages.sh failed
> 
> (complete output: http://pastebin.com/RHu5cX5e)
> 
> 2011/9/16 Julien Nadeau <vedge@...>:
> >
> > Hi Rafael,
> >
> > The problem is due to gcc's new "-Wunused-but-set-variable" which
> > causes configure tests to fail. As a work around you can use:
> >
> >    env CFLAGS="-O2 -Wno-unused-but-set-variable" ./configure ...
> >
> > Or you can build from current svn sources which includes a fix.
> >
> > On Fri, Sep 16, 2011 at 04:54:09PM -0300, rafael ff1 wrote:
> >> Hi there,
> >>
> >> Trying to build agar in Archlinux 64bit, but it fails. Can you please
> >> help solving this problem?
> >>
> >> $ uname -a
> >> Linux asterix 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011
> >> x86_64 Intel(R) Atom(TM) CPU N550 @ 1.50GHz GenuineIntel GNU/Linux
> >>
> >> Config log: http://pastebin.com/HCz6Mek1
> >>
> >> Thanks in advance,
> >>
> >> Rafael
> >>
> >> _______________________________________________
> >> Agar mailing list
> >> Agar@...
> >> http://libagar.org/lists.html
> >
> 
> _______________________________________________
> Agar mailing list
> Agar@...
> http://libagar.org/lists.html
rafael ff1 | 17 Sep 18:01
Picon

Re: Build fail on Archlinux

Well, I was able to make the installation work by setting
"--with-catman=no" in ./configure line... Is it bad to set this
command? I've got these files from installation:
http://pastebin.com/gxMr31jp

By the way, is it correct to have includes installed in
'/usr/includes/agar/agar', instead of just '/usr/includes/agar' ? This
seems to happen with svn sources too.

-- Rafael

2011/9/16 Julien Nadeau <vedge@...>:
>
> That one is due to a bug in bash (which I assume you have installed
> under /bin/sh). There is a work around in svn, but I don't remember
> where it was exactly. You can also set the SH environment variable
> to an alternate shell when invoking make.
>
> On Fri, Sep 16, 2011 at 09:02:25PM -0300, rafael ff1 wrote:
>> Great, this solved the compilation problem. But I came through another
>> problem during the installation:
>>
>> * command line:
>> make  DESTDIR="${pkgdir}" MANDIR=/usr/share/man LIBDIR=/usr/lib/agar install
>>
>> (where "pkgdir" is the fakeroot for installing files)
>>
>> * error message output:
>> (...)
>> install -c -m 644   /home/rafael/builds/agar/pkg/usr/share/man/cat3
>> install: cannot stat `\177': No such file or directory
>> install-manpages.sh failed
>>
>> (complete output: http://pastebin.com/RHu5cX5e)
>>
>> 2011/9/16 Julien Nadeau <vedge@...>:
>> >
>> > Hi Rafael,
>> >
>> > The problem is due to gcc's new "-Wunused-but-set-variable" which
>> > causes configure tests to fail. As a work around you can use:
>> >
>> >    env CFLAGS="-O2 -Wno-unused-but-set-variable" ./configure ...
>> >
>> > Or you can build from current svn sources which includes a fix.
>> >
>> > On Fri, Sep 16, 2011 at 04:54:09PM -0300, rafael ff1 wrote:
>> >> Hi there,
>> >>
>> >> Trying to build agar in Archlinux 64bit, but it fails. Can you please
>> >> help solving this problem?
>> >>
>> >> $ uname -a
>> >> Linux asterix 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011
>> >> x86_64 Intel(R) Atom(TM) CPU N550 @ 1.50GHz GenuineIntel GNU/Linux
>> >>
>> >> Config log: http://pastebin.com/HCz6Mek1
>> >>
>> >> Thanks in advance,
>> >>
>> >> Rafael
>> >>
>> >> _______________________________________________
>> >> Agar mailing list
>> >> Agar@...
>> >> http://libagar.org/lists.html
>> >
>>
>> _______________________________________________
>> Agar mailing list
>> Agar@...
>> http://libagar.org/lists.html
>
Julien Nadeau | 18 Sep 01:11
Favicon

Re: Build fail on Archlinux

On Sat, Sep 17, 2011 at 01:01:43PM -0300, rafael ff1 wrote:
> Well, I was able to make the installation work by setting
> "--with-catman=no" in ./configure line... Is it bad to set this
> command? I've got these files from installation:
> http://pastebin.com/gxMr31jp

That looks fine to me.

> By the way, is it correct to have includes installed in
> '/usr/includes/agar/agar', instead of just '/usr/includes/agar' ? This
> seems to happen with svn sources too.

Yes, that is correct. Since Agar apps use #include <agar/foo.h>, having
the includes in <prefix>/include/agar/agar allows `agar-config --cflags`
to output "-I/usr/include/agar" as opposed to "-I/usr/include" which may
not be desirable.

> -- Rafael
> 
> 2011/9/16 Julien Nadeau <vedge@...>:
> >
> > That one is due to a bug in bash (which I assume you have installed
> > under /bin/sh). There is a work around in svn, but I don't remember
> > where it was exactly. You can also set the SH environment variable
> > to an alternate shell when invoking make.
> >
> > On Fri, Sep 16, 2011 at 09:02:25PM -0300, rafael ff1 wrote:
> >> Great, this solved the compilation problem. But I came through another
> >> problem during the installation:
> >>
> >> * command line:
> >> make  DESTDIR="${pkgdir}" MANDIR=/usr/share/man LIBDIR=/usr/lib/agar install
> >>
> >> (where "pkgdir" is the fakeroot for installing files)
> >>
> >> * error message output:
> >> (...)
> >> install -c -m 644   /home/rafael/builds/agar/pkg/usr/share/man/cat3
> >> install: cannot stat `\177': No such file or directory
> >> install-manpages.sh failed
> >>
> >> (complete output: http://pastebin.com/RHu5cX5e)
> >>
> >> 2011/9/16 Julien Nadeau <vedge@...>:
> >> >
> >> > Hi Rafael,
> >> >
> >> > The problem is due to gcc's new "-Wunused-but-set-variable" which
> >> > causes configure tests to fail. As a work around you can use:
> >> >
> >> >    env CFLAGS="-O2 -Wno-unused-but-set-variable" ./configure ...
> >> >
> >> > Or you can build from current svn sources which includes a fix.
> >> >
> >> > On Fri, Sep 16, 2011 at 04:54:09PM -0300, rafael ff1 wrote:
> >> >> Hi there,
> >> >>
> >> >> Trying to build agar in Archlinux 64bit, but it fails. Can you please
> >> >> help solving this problem?
> >> >>
> >> >> $ uname -a
> >> >> Linux asterix 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011
> >> >> x86_64 Intel(R) Atom(TM) CPU N550 @ 1.50GHz GenuineIntel GNU/Linux
> >> >>
> >> >> Config log: http://pastebin.com/HCz6Mek1
> >> >>
> >> >> Thanks in advance,
> >> >>
> >> >> Rafael
> >> >>
> >> >> _______________________________________________
> >> >> Agar mailing list
> >> >> Agar@...
> >> >> http://libagar.org/lists.html
> >> >
> >>
> >> _______________________________________________
> >> Agar mailing list
> >> Agar@...
> >> http://libagar.org/lists.html
> >
rafael ff1 | 18 Sep 01:59
Picon

Re: Build fail on Archlinux

Great, thanks a lot!

Last, I have a doubt and then you leave the rest for possible bug
reports: What package provide the OpenGL required by Agar's
.../configure?

1. sdlgl [1], name mentioned in libagar's wiki [2]

2. Glew [3] [4]

3. 'libGL.1.so' lib from drivers, for example, mesa [5]

[1] http://sourceforge.net/projects/sdlgl/
[2] http://wiki.libagar.org/wiki/Sdlgl
[3] http://glew.sourceforge.net/
[4] http://www.archlinux.org/packages/extra/i686/glew/files/
[5] http://www.archlinux.org/packages/extra/i686/libgl/files/

2011/9/17 Julien Nadeau <vedge@...>:
> On Sat, Sep 17, 2011 at 01:01:43PM -0300, rafael ff1 wrote:
>> Well, I was able to make the installation work by setting
>> "--with-catman=no" in ./configure line... Is it bad to set this
>> command? I've got these files from installation:
>> http://pastebin.com/gxMr31jp
>
> That looks fine to me.
>
>> By the way, is it correct to have includes installed in
>> '/usr/includes/agar/agar', instead of just '/usr/includes/agar' ? This
>> seems to happen with svn sources too.
>
> Yes, that is correct. Since Agar apps use #include <agar/foo.h>, having
> the includes in <prefix>/include/agar/agar allows `agar-config --cflags`
> to output "-I/usr/include/agar" as opposed to "-I/usr/include" which may
> not be desirable.
>
>> -- Rafael
>>
>> 2011/9/16 Julien Nadeau <vedge@...>:
>> >
>> > That one is due to a bug in bash (which I assume you have installed
>> > under /bin/sh). There is a work around in svn, but I don't remember
>> > where it was exactly. You can also set the SH environment variable
>> > to an alternate shell when invoking make.
>> >
>> > On Fri, Sep 16, 2011 at 09:02:25PM -0300, rafael ff1 wrote:
>> >> Great, this solved the compilation problem. But I came through another
>> >> problem during the installation:
>> >>
>> >> * command line:
>> >> make  DESTDIR="${pkgdir}" MANDIR=/usr/share/man LIBDIR=/usr/lib/agar install
>> >>
>> >> (where "pkgdir" is the fakeroot for installing files)
>> >>
>> >> * error message output:
>> >> (...)
>> >> install -c -m 644   /home/rafael/builds/agar/pkg/usr/share/man/cat3
>> >> install: cannot stat `\177': No such file or directory
>> >> install-manpages.sh failed
>> >>
>> >> (complete output: http://pastebin.com/RHu5cX5e)
>> >>
>> >> 2011/9/16 Julien Nadeau <vedge@...>:
>> >> >
>> >> > Hi Rafael,
>> >> >
>> >> > The problem is due to gcc's new "-Wunused-but-set-variable" which
>> >> > causes configure tests to fail. As a work around you can use:
>> >> >
>> >> >    env CFLAGS="-O2 -Wno-unused-but-set-variable" ./configure .....
>> >> >
>> >> > Or you can build from current svn sources which includes a fix.
>> >> >
>> >> > On Fri, Sep 16, 2011 at 04:54:09PM -0300, rafael ff1 wrote:
>> >> >> Hi there,
>> >> >>
>> >> >> Trying to build agar in Archlinux 64bit, but it fails. Can you please
>> >> >> help solving this problem?
>> >> >>
>> >> >> $ uname -a
>> >> >> Linux asterix 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011
>> >> >> x86_64 Intel(R) Atom(TM) CPU N550 @ 1.50GHz GenuineIntel GNU/Linux
>> >> >>
>> >> >> Config log: http://pastebin.com/HCz6Mek1
>> >> >>
>> >> >> Thanks in advance,
>> >> >>
>> >> >> Rafael
>> >> >>
>> >> >> _______________________________________________
>> >> >> Agar mailing list
>> >> >> Agar@...
>> >> >> http://libagar.org/lists.html
>> >> >
>> >>
>> >> _______________________________________________
>> >> Agar mailing list
>> >> Agar@...
>> >> http://libagar.org/lists.html
>> >
>
Julien Nadeau | 21 Sep 01:51
Favicon

Re: Build fail on Archlinux


Hi Rafael,

Agar's configure looks for a working "-lGL". The configure script
tries to find it using pkg-config and reverts to scanning predefined
directories if unavailable.

Mentions of "sdlgl" in the Agar documentation refer to an Agar display
driver called "sdlgl" (for GL rendering via SDL), documented here:
http://libagar.org/man3/AG_DriverSDLGL. It is not related to the sdlgl
project on SourceForge.

On Sat, Sep 17, 2011 at 08:59:22PM -0300, rafael ff1 wrote:
> Great, thanks a lot!
> 
> Last, I have a doubt and then you leave the rest for possible bug
> reports: What package provide the OpenGL required by Agar's
> ../configure?
> 
> 1. sdlgl [1], name mentioned in libagar's wiki [2]
> 
> 2. Glew [3] [4]
> 
> 3. 'libGL.1.so' lib from drivers, for example, mesa [5]
> 
> [1] http://sourceforge.net/projects/sdlgl/
> [2] http://wiki.libagar.org/wiki/Sdlgl
> [3] http://glew.sourceforge.net/
> [4] http://www.archlinux.org/packages/extra/i686/glew/files/
> [5] http://www.archlinux.org/packages/extra/i686/libgl/files/
> 
> 2011/9/17 Julien Nadeau <vedge@...>:
> > On Sat, Sep 17, 2011 at 01:01:43PM -0300, rafael ff1 wrote:
> >> Well, I was able to make the installation work by setting
> >> "--with-catman=no" in ./configure line... Is it bad to set this
> >> command? I've got these files from installation:
> >> http://pastebin.com/gxMr31jp
> >
> > That looks fine to me.
> >
> >> By the way, is it correct to have includes installed in
> >> '/usr/includes/agar/agar', instead of just '/usr/includes/agar' ? This
> >> seems to happen with svn sources too.
> >
> > Yes, that is correct. Since Agar apps use #include <agar/foo.h>, having
> > the includes in <prefix>/include/agar/agar allows `agar-config --cflags`
> > to output "-I/usr/include/agar" as opposed to "-I/usr/include" which may
> > not be desirable.
> >
> >> -- Rafael
> >>
> >> 2011/9/16 Julien Nadeau <vedge@...>:
> >> >
> >> > That one is due to a bug in bash (which I assume you have installed
> >> > under /bin/sh). There is a work around in svn, but I don't remember
> >> > where it was exactly. You can also set the SH environment variable
> >> > to an alternate shell when invoking make.
> >> >
> >> > On Fri, Sep 16, 2011 at 09:02:25PM -0300, rafael ff1 wrote:
> >> >> Great, this solved the compilation problem. But I came through another
> >> >> problem during the installation:
> >> >>
> >> >> * command line:
> >> >> make  DESTDIR="${pkgdir}" MANDIR=/usr/share/man LIBDIR=/usr/lib/agar install
> >> >>
> >> >> (where "pkgdir" is the fakeroot for installing files)
> >> >>
> >> >> * error message output:
> >> >> (...)
> >> >> install -c -m 644   /home/rafael/builds/agar/pkg/usr/share/man/cat3
> >> >> install: cannot stat `\177': No such file or directory
> >> >> install-manpages.sh failed
> >> >>
> >> >> (complete output: http://pastebin.com/RHu5cX5e)
> >> >>
> >> >> 2011/9/16 Julien Nadeau <vedge@...>:
> >> >> >
> >> >> > Hi Rafael,
> >> >> >
> >> >> > The problem is due to gcc's new "-Wunused-but-set-variable" which
> >> >> > causes configure tests to fail. As a work around you can use:
> >> >> >
> >> >> >    env CFLAGS="-O2 -Wno-unused-but-set-variable" ./configure ....
> >> >> >
> >> >> > Or you can build from current svn sources which includes a fix.
> >> >> >
> >> >> > On Fri, Sep 16, 2011 at 04:54:09PM -0300, rafael ff1 wrote:
> >> >> >> Hi there,
> >> >> >>
> >> >> >> Trying to build agar in Archlinux 64bit, but it fails. Can you please
> >> >> >> help solving this problem?
> >> >> >>
> >> >> >> $ uname -a
> >> >> >> Linux asterix 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011
> >> >> >> x86_64 Intel(R) Atom(TM) CPU N550 @ 1.50GHz GenuineIntel GNU/Linux
> >> >> >>
> >> >> >> Config log: http://pastebin.com/HCz6Mek1
> >> >> >>
> >> >> >> Thanks in advance,
> >> >> >>
> >> >> >> Rafael
> >> >> >>
> >> >> >> _______________________________________________
> >> >> >> Agar mailing list
> >> >> >> Agar@...
> >> >> >> http://libagar.org/lists.html
> >> >> >
> >> >>
> >> >> _______________________________________________
> >> >> Agar mailing list
> >> >> Agar@...
> >> >> http://libagar.org/lists.html
> >> >
> >

Gmane