* Toolchain select
@ 2006-01-05 13:38 Li Weichen
2006-01-05 22:00 ` Matthew Percival
2006-01-09 18:32 ` Khem Raj
0 siblings, 2 replies; 8+ messages in thread
From: Li Weichen @ 2006-01-05 13:38 UTC (permalink / raw)
To: u-boot-users, linux-arm-toolchain, linux-arm,
linux-omap-open-source
Hi all,
I encountered several toolchain problems while cross-compiling such as
u-boot, kernel. I find it mostly problem about the version. I don't know
which one is proper and stable for embedded system developing. Could you
please help me?
I have already used the crosstool to make my own toolchain, and chose the
gcc-4.0.1, binutils-2.16.1, glibc-2.3.5. But it seems that it has some
problem. When I build u-boot it shows that the examples cannot be compiled.
Regards,
Li Weichen
2006-1-5
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Toolchain select
2006-01-05 13:38 Toolchain select Li Weichen
@ 2006-01-05 22:00 ` Matthew Percival
2006-01-06 12:13 ` Li Weichen
2006-01-09 18:32 ` Khem Raj
1 sibling, 1 reply; 8+ messages in thread
From: Matthew Percival @ 2006-01-05 22:00 UTC (permalink / raw)
To: Linux OMAP Open Source
G'Day,
> I have already used the crosstool to make my own toolchain, and chose the
> gcc-4.0.1, binutils-2.16.1, glibc-2.3.5. But it seems that it has some
> problem. When I build u-boot it shows that the examples cannot be compiled.
u-boot may not be a good test. Versions of u-boot older than 1.1.4 do
not compile with 4.0 at all; even 1.1.4 seems to have problems, as some
users have reported that it does not compile (most seem to be OK, but
there are a few who cannot). You said that kernel did not compile
either, though, and that should work, so the problem in your case likely
lies with the toolchain.
My toolchain was compile with gcc-4.0.1, binutils-2.15 and glibc 2.3.5:
this combination is known to work. Looking at the crosstool buildlogs,
your combination is not listed, so it is somewhat of an unknown
quantity, though it sounds like the combination you have picked does not
work. I would recommend looking at the crosstool buildlogs yourself, to
see what combinations are known to work, and sticking with them, unless
you want to experiment with different combinations.
-- Matthew
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Toolchain select
2006-01-05 22:00 ` Matthew Percival
@ 2006-01-06 12:13 ` Li Weichen
2006-01-08 21:48 ` Matthew Percival
0 siblings, 1 reply; 8+ messages in thread
From: Li Weichen @ 2006-01-06 12:13 UTC (permalink / raw)
To: 'Matthew Percival', 'Linux OMAP Open Source'
Well, if I use the toolchain consists of gcc-4.0.1, binutils-2.15,
glibc-2.3.5 to build u-boot and the kernel 2.6.15-omap1, I will still get
errors. The error of building u-boot is "No rule to make target
`hello_world.srec', needed by `all'" and the error of building kernel
2.6.15-omap1 is syntax error in touchscreen.
I don't know where is the problem.
> u-boot may not be a good test. Versions of u-boot older than 1.1.4
do
> not compile with 4.0 at all; even 1.1.4 seems to have problems, as some
> users have reported that it does not compile (most seem to be OK, but
> there are a few who cannot). You said that kernel did not compile
> either, though, and that should work, so the problem in your case likely
> lies with the toolchain.
>
> My toolchain was compile with gcc-4.0.1, binutils-2.15 and glibc
2.3.5:
> this combination is known to work. Looking at the crosstool buildlogs,
> your combination is not listed, so it is somewhat of an unknown
> quantity, though it sounds like the combination you have picked does not
> work. I would recommend looking at the crosstool buildlogs yourself, to
> see what combinations are known to work, and sticking with them, unless
> you want to experiment with different combinations.
>
> -- Matthew
>
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Toolchain select
2006-01-06 12:13 ` Li Weichen
@ 2006-01-08 21:48 ` Matthew Percival
2006-01-09 2:10 ` Li Weichen
0 siblings, 1 reply; 8+ messages in thread
From: Matthew Percival @ 2006-01-08 21:48 UTC (permalink / raw)
To: Linux OMAP Open Source
G'Day,
> The error of building u-boot is "No rule to make target `hello_world.srec',
> needed by `all'" and the error of building kernel 2.6.15-omap1 is syntax
> error in touchscreen.
That is a make error, not a toolchain one: make does not have a rule to
make the said file, and so does not know what to do. That likely
indicates that it is a file that either should already be there, or
created by an earlier process (eg running 'make something_config' type
operations). In this case, I can see the file in my examples/
directory, so likely there is something wrong with your process. Make
sure you have followed the steps for compiling u-boot correctly, as you
do not compile it the same as with most programs.
-- Matthew
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Toolchain select
2006-01-08 21:48 ` Matthew Percival
@ 2006-01-09 2:10 ` Li Weichen
2006-01-09 3:06 ` Matthew Percival
0 siblings, 1 reply; 8+ messages in thread
From: Li Weichen @ 2006-01-09 2:10 UTC (permalink / raw)
To: 'Matthew Percival', 'Linux OMAP Open Source'
Hi,
What version of u-boot are you using? I use the u-boot-1.1.4 and
u-boot-1.1.3, and my steps is,
$tar xjvf u-boot-1.1.x
$cd u-boot-1.1.x
$make omap5912osk_config
$make
I think there is nothing wrong in my process.
And have you tried building the 2.6.15 kernel?
Regards,
Li Weichen
2006-1-9
> That is a make error, not a toolchain one: make does not have a rule
to
> make the said file, and so does not know what to do. That likely
> indicates that it is a file that either should already be there, or
> created by an earlier process (eg running 'make something_config' type
> operations). In this case, I can see the file in my examples/
> directory, so likely there is something wrong with your process. Make
> sure you have followed the steps for compiling u-boot correctly, as you
> do not compile it the same as with most programs.
>
> -- Matthew
>
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Toolchain select
2006-01-09 2:10 ` Li Weichen
@ 2006-01-09 3:06 ` Matthew Percival
2006-01-09 3:23 ` Li Weichen
0 siblings, 1 reply; 8+ messages in thread
From: Matthew Percival @ 2006-01-09 3:06 UTC (permalink / raw)
To: Linux OMAP Open Source
G'Day,
> What version of u-boot are you using? I use the u-boot-1.1.4 and
> u-boot-1.1.3, and my steps is,
> $tar xjvf u-boot-1.1.x
> $cd u-boot-1.1.x
> $make omap5912osk_config
> $make
I am using 1.1.2; I have 1.1.4, but it does not link (I have not
investigated why yet, as it is pretty low priority).
Your process is correct, so it is a little strange that the file does
not exist. The command which creates the file (as called from the
Makefile) is:
arm-linux-objcopy -O srec hello_world hello_world.srec 2>/dev/null
I would suggest looking for where that command is used when you run it,
for there is likely a minor error being flagged at this point (run make
distclean first, then start afresh).
> And have you tried building the 2.6.15 kernel?
Not yet: it is not on my current list of priorities. I am running
2.6.14-omap1 at the moment.
-- Matthew
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Toolchain select
2006-01-05 13:38 Toolchain select Li Weichen
2006-01-05 22:00 ` Matthew Percival
@ 2006-01-09 18:32 ` Khem Raj
1 sibling, 0 replies; 8+ messages in thread
From: Khem Raj @ 2006-01-09 18:32 UTC (permalink / raw)
To: Li Weichen
Cc: u-boot-users, linux-arm-toolchain, linux-arm,
linux-omap-open-source
Li Weichen said the following on 01/05/2006 05:38 AM:
>Hi all,
>
>I encountered several toolchain problems while cross-compiling such as
>u-boot, kernel. I find it mostly problem about the version. I don't know
>which one is proper and stable for embedded system developing.
>
You may look at http://www.kegel.com/crosstool/crosstool-0.38/buildlogs/
which is a matrix of possible working tool combo's
>
>
--
Khem Raj <khem@mvista.com>
MontaVista Software, Inc.
www.mvista.com
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-01-09 18:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-05 13:38 Toolchain select Li Weichen
2006-01-05 22:00 ` Matthew Percival
2006-01-06 12:13 ` Li Weichen
2006-01-08 21:48 ` Matthew Percival
2006-01-09 2:10 ` Li Weichen
2006-01-09 3:06 ` Matthew Percival
2006-01-09 3:23 ` Li Weichen
2006-01-09 18:32 ` Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox