Discussion:
Config question (building on Ubuntu 8.04)
Matt Jadud
2010-02-09 14:30:56 UTC
Permalink
Hi all,

I configured and built a cross-build, but when I run the ./build.sh in
the tvm/arduino directory, I get a configuration failure.

configure:3245: avr-gcc -qlanglvl=extc89 -c -g -O2 conftest.c >&5
avr-gcc: unrecognized option '-qlanglvl=extc89'
conftest.c:12:23: error: sys/types.h: No such file or directory
conftest.c:13:22: error: sys/stat.h: No such file or directory
conftest.c:16: warning: 'struct stat' declared inside parameter list
conftest.c:16: warning: its scope is only this definition or
declaration, which is probably not what you want
conftest.c:50: warning: 'struct stat' declared inside parameter list

I can include/send the log, but that might be enough.

I have autoconf 2.61 and automake 1.10.1. I can upgrade the tools, if
anyone thinks that is the problem.

Any thoughts? I'm going to be in-and-out because of classes,
interviews with candidates, etc., and I'd like to have this built and
on the machines today (for some definition of today). Hence, I'll ask
for insight sooner rather than later.

Cheers,
Matt
Christian Jacobsen
2010-02-09 14:38:14 UTC
Permalink
Could you attach the whole log?

Lots of bits in the configure script fail, without making the entire
config fail. This may or may not be a relevant failure.

Cheers,
Christian
Post by Matt Jadud
Hi all,
I configured and built a cross-build, but when I run the ./build.sh in
the tvm/arduino directory, I get a configuration failure.
configure:3245: avr-gcc -qlanglvl=extc89 -c -g -O2  conftest.c >&5
avr-gcc: unrecognized option '-qlanglvl=extc89'
conftest.c:12:23: error: sys/types.h: No such file or directory
conftest.c:13:22: error: sys/stat.h: No such file or directory
conftest.c:16: warning: 'struct stat' declared inside parameter list
conftest.c:16: warning: its scope is only this definition or
declaration, which is probably not what you want
conftest.c:50: warning: 'struct stat' declared inside parameter list
I can include/send the log, but that might be enough.
I have autoconf 2.61 and automake 1.10.1. I can upgrade the tools, if
anyone thinks that is the problem.
Any thoughts? I'm going to be in-and-out because of classes,
interviews with candidates, etc., and I'd like to have this built and
on the machines today (for some definition of today). Hence, I'll ask
for insight sooner rather than later.
Cheers,
Matt
Matt Jadud
2010-02-09 15:47:39 UTC
Permalink
The full log can be found at

http://www.jadud.com/people/mcj/files/config.log

Cheers,
Matt

On Tue, Feb 9, 2010 at 9:38 AM, Christian Jacobsen
Post by Christian Jacobsen
Could you attach the whole log?
Lots of bits in the configure script fail, without making the entire
config fail. This may or may not be a relevant failure.
Cheers,
 Christian
Post by Matt Jadud
Hi all,
I configured and built a cross-build, but when I run the ./build.sh in
the tvm/arduino directory, I get a configuration failure.
configure:3245: avr-gcc -qlanglvl=extc89 -c -g -O2  conftest.c >&5
avr-gcc: unrecognized option '-qlanglvl=extc89'
conftest.c:12:23: error: sys/types.h: No such file or directory
conftest.c:13:22: error: sys/stat.h: No such file or directory
conftest.c:16: warning: 'struct stat' declared inside parameter list
conftest.c:16: warning: its scope is only this definition or
declaration, which is probably not what you want
conftest.c:50: warning: 'struct stat' declared inside parameter list
I can include/send the log, but that might be enough.
I have autoconf 2.61 and automake 1.10.1. I can upgrade the tools, if
anyone thinks that is the problem.
Any thoughts? I'm going to be in-and-out because of classes,
interviews with candidates, etc., and I'd like to have this built and
on the machines today (for some definition of today). Hence, I'll ask
for insight sooner rather than later.
Cheers,
Matt
Adam Sampson
2010-02-09 17:31:59 UTC
Permalink
Post by Matt Jadud
http://www.jadud.com/people/mcj/files/config.log
That looks like a successful configure to me -- what did it print while
it was running?

(I think the -qlanglvl stuff isn't the problem; that's an option for
some other compiler, so it's right that GCC rejects it.)
--
Adam Sampson <http://offog.org/>
Matt Jadud
2010-02-09 18:30:49 UTC
Permalink
Ah. I posted the wrong log. Mercy... there are a few too many things
going on today.

I have uploaded the correct log, but have not had a chance to figure
out what is wrong. It is probably straight-forward.

Cheers,
Matt
Post by Adam Sampson
Post by Matt Jadud
http://www.jadud.com/people/mcj/files/config.log
That looks like a successful configure to me -- what did it print while
it was running?
(I think the -qlanglvl stuff isn't the problem; that's an option for
some other compiler, so it's right that GCC rejects it.)
--
Adam Sampson                                         <http://offog.org/>
Adam Sampson
2010-02-09 19:09:13 UTC
Permalink
Post by Matt Jadud
I have uploaded the correct log, but have not had a chance to figure
out what is wrong. It is probably straight-forward.
Your avr-gcc is too old to know about the ATmega328...
--
Adam Sampson <http://offog.org/>
Loading...