* Unrecognized option while building pseudo (target)
@ 2011-08-08 11:36 Anders Darander
2011-08-08 15:58 ` Mark Hatle
0 siblings, 1 reply; 3+ messages in thread
From: Anders Darander @ 2011-08-08 11:36 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Hi,
After updating my work-in-progress to upgrade our internal distro from
oe-dev to oe-core, I got a new problem... (At least new to me, as far as
I remember I didn't have that problem before the vacation. Otoh, my old
build-box is temporarily out of service HW-problems, so this is a new
build environment).
The problem is that my cross-compiler, arm-oe-linux-gnueabi-gcc, do not
recognize the -m32 option, that the pseudo makefile tries to supply.
Short excerpt of the build log, just to show the call to gcc and its
error message:
| arm-oe-linux-gnueabi-gcc -march=armv5te -mno-thumb -mthumb-interwork
-mtune=arm926ej-s
--sysroot=/home/anders/oe-build-core/build-ccu/tmp-eglibc/sysroots/ccu
-O2 -pipe -g -feliminate-unused-debug-types -pipe -std=gnu99 -Wall -W
-Wextra -fPIC -D_LARGEFILE64_SOURCE -D_ATFILE_SOURCE -m32
-DPSEUDO_PREFIX='"/usr"' -DPSEUDO_SUFFIX='""' -DPSEUDO_BINDIR='"bin"'
-DPSEUDO_LIBDIR='"lib/pseudo/lib"' -DPSEUDO_LOCALSTATEDIR='"var/pseudo"'
-DPSEUDO_VERSION='"1.1.1"' -O2 -g
-L/home/anders/oe-build-core/build-ccu/tmp-eglibc/sysroots/ccu/usr/lib
-I/home/anders/oe-build-core/build-ccu/tmp-eglibc/sysroots/ccu/usr/include
-Wl,-R/home/anders/oe-build-core/build-ccu/tmp-eglibc/sysroots/ccu/usr/lib
-c -o pseudo_tables.o pseudo_tables.c
| cc1: error: unrecognized command line option '-m32'cc1: error:
unrecognized command line option '-m32'cc1: error: unrecognized command
line option '-m32'cc1: error: unrecognized command line option '-m32'
By commenting out the setting of 'CFLAGS_CODE += -m$(BITS)' in
Makefile.in, I can get the build to continue past pseudo.
Any ideas of how I should correctly fix this? Or if I have some other
problem in my environment that could cause such a failure....
Cheers,
Anders
--
Anders Darander
ChargeStorm AB / EStorm AB
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Unrecognized option while building pseudo (target)
2011-08-08 11:36 Unrecognized option while building pseudo (target) Anders Darander
@ 2011-08-08 15:58 ` Mark Hatle
2011-08-09 6:30 ` Anders Darander
0 siblings, 1 reply; 3+ messages in thread
From: Mark Hatle @ 2011-08-08 15:58 UTC (permalink / raw)
To: openembedded-core
pseudo currently only works on IA32 hosts. It was never really intended to work
on the target system, but should.
If you think you want pseudo on the target.. you'll have to verify that all of
the calls are being trapped properly on ARM, as well as modify the build
instructions to not worry about IA32 specific items.
(Right now, if you change the compilation to not specify the -m32 on arm, I'd
give pseudo about a 75% chance of working properly on ARM.. but it's never been
tested there.)
--Mark
On 8/8/11 6:36 AM, Anders Darander wrote:
>
> Hi,
>
> After updating my work-in-progress to upgrade our internal distro from
> oe-dev to oe-core, I got a new problem... (At least new to me, as far as
> I remember I didn't have that problem before the vacation. Otoh, my old
> build-box is temporarily out of service HW-problems, so this is a new
> build environment).
>
> The problem is that my cross-compiler, arm-oe-linux-gnueabi-gcc, do not
> recognize the -m32 option, that the pseudo makefile tries to supply.
>
> Short excerpt of the build log, just to show the call to gcc and its
> error message:
> | arm-oe-linux-gnueabi-gcc -march=armv5te -mno-thumb -mthumb-interwork
> -mtune=arm926ej-s
> --sysroot=/home/anders/oe-build-core/build-ccu/tmp-eglibc/sysroots/ccu
> -O2 -pipe -g -feliminate-unused-debug-types -pipe -std=gnu99 -Wall -W
> -Wextra -fPIC -D_LARGEFILE64_SOURCE -D_ATFILE_SOURCE -m32
> -DPSEUDO_PREFIX='"/usr"' -DPSEUDO_SUFFIX='""' -DPSEUDO_BINDIR='"bin"'
> -DPSEUDO_LIBDIR='"lib/pseudo/lib"' -DPSEUDO_LOCALSTATEDIR='"var/pseudo"'
> -DPSEUDO_VERSION='"1.1.1"' -O2 -g
> -L/home/anders/oe-build-core/build-ccu/tmp-eglibc/sysroots/ccu/usr/lib
> -I/home/anders/oe-build-core/build-ccu/tmp-eglibc/sysroots/ccu/usr/include
> -Wl,-R/home/anders/oe-build-core/build-ccu/tmp-eglibc/sysroots/ccu/usr/lib
> -c -o pseudo_tables.o pseudo_tables.c
> | cc1: error: unrecognized command line option '-m32'cc1: error:
> unrecognized command line option '-m32'cc1: error: unrecognized command
> line option '-m32'cc1: error: unrecognized command line option '-m32'
>
> By commenting out the setting of 'CFLAGS_CODE += -m$(BITS)' in
> Makefile.in, I can get the build to continue past pseudo.
>
> Any ideas of how I should correctly fix this? Or if I have some other
> problem in my environment that could cause such a failure....
>
> Cheers,
> Anders
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Unrecognized option while building pseudo (target)
2011-08-08 15:58 ` Mark Hatle
@ 2011-08-09 6:30 ` Anders Darander
0 siblings, 0 replies; 3+ messages in thread
From: Anders Darander @ 2011-08-09 6:30 UTC (permalink / raw)
To: openembedded-core
* Mark Hatle <mark.hatle@windriver.com> [110808 17:58]:
> pseudo currently only works on IA32 hosts. It was never really intended to work
> on the target system, but should.
Thanks for the clarification. No, I don't really want it... But now I
know what to start looking for, i.e. what is trying to put pseudo on the
target.
Thanks!
Cheers,
Anders
> If you think you want pseudo on the target.. you'll have to verify that all of
> the calls are being trapped properly on ARM, as well as modify the build
> instructions to not worry about IA32 specific items.
> (Right now, if you change the compilation to not specify the -m32 on arm, I'd
> give pseudo about a 75% chance of working properly on ARM.. but it's never been
> tested there.)
--
Anders Darander
ChargeStorm AB Tel: +46 702 44 84 36
Laxholmstorget 3 Email: anders@chargestorm.se
602 21 Norrköping Web: www.chargestorm.se
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-09 6:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-08 11:36 Unrecognized option while building pseudo (target) Anders Darander
2011-08-08 15:58 ` Mark Hatle
2011-08-09 6:30 ` Anders Darander
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox