List Info

Thread: linux cross-compilation




linux cross-compilation
user name
2006-10-16 05:36:06
Hi
    I found the information at 
http://www.bluedonkey.org/cgi-bin/twik
i/bin/view/Netbsd/MandrakeLinuxBuild 
very useful and still applicable(except for the patch part)
to the 
NetBSDD3.0.1 release. I think it will be worthwhile to
mention that link 
at http://www.netbs
d.org/Documentation/ under a kernel FAQ like "Is it

possible to compile NetBSD from linux?" or "Other
Information" section.

Thanks
Prasad




linux cross-compilation
user name
2006-10-16 06:52:06
Hello, Prasad!

I find that patch to carry the only piece of information
missing from
the current documentation. As -current doesn't build
correctly on MDK it
should IMHO be considered a bug and the patch should be
imported instead
of noting the bug in the documentation.

Kind regards,
Lubo

On Po, 2006-10-16 at 11:06 +0530, Narayana Prasad wrote:
> Hi
>     I found the information at 
> http://www.bluedonkey.org/cgi-bin/twik
i/bin/view/Netbsd/MandrakeLinuxBuild 
> very useful and still applicable(except for the patch
part) to the 
> NetBSDD3.0.1 release. I think it will be worthwhile to
mention that link 
> at http://www.netbs
d.org/Documentation/ under a kernel FAQ like "Is it

> possible to compile NetBSD from linux?" or
"Other Information" section.
> 
> Thanks
> Prasad
> 
> 
> 
> 
-- 
Lubomir Kundrak (Red Hat Security Response Team)

linux cross-compilation
user name
2006-10-16 07:11:29
Hi Lubo
    Sorry for not being clear the first time. The patch is
not required 
for the 3.0.1. The author of the article had documented the
steps in May 
2003 and what i was trying to say is that the patch is no
longer 
required. However, there is one change in the patch that
NetBSD 
distribution doesnt have. The lack of this change causes a
re-definition 
warning for every C file being compiled and the patch is not
critical. 
The rest of the documention is primarily 2 steps - one is to
build the 
tools(which is essential for cross-compilation from linux)
and the 
second is to build the kernel itself.

Also only when i read the comments inside build.sh did i
realize that it 
was intended for use on all POSIX shells. This  was not
evident to me 
from the NetBSD documentation. Searching through mailing
lists was 
giving me hits on problem reports rather than solutions. So
i thought 
that it will be useful for others to know that
cross-compiling NetBSD 
from linux is not rocket-science. If these steps are already
covered 
somewhere in the NetBSD documentation can you please point
me to that 
and in that case, there wouldnt be a need to add new
documentation.

Thanks
Prasad

Lubomir Kundrak wrote:
> Hello, Prasad!
>
> I find that patch to carry the only piece of
information missing from
> the current documentation. As -current doesn't build
correctly on MDK it
> should IMHO be considered a bug and the patch should be
imported instead
> of noting the bug in the documentation.
>
> Kind regards,
> Lubo
>
> On Po, 2006-10-16 at 11:06 +0530, Narayana Prasad
wrote:
>   
>> Hi
>>     I found the information at 
>> http://www.bluedonkey.org/cgi-bin/twik
i/bin/view/Netbsd/MandrakeLinuxBuild 
>> very useful and still applicable(except for the
patch part) to the 
>> NetBSDD3.0.1 release. I think it will be worthwhile
to mention that link 
>> at http://www.netbs
d.org/Documentation/ under a kernel FAQ like "Is it

>> possible to compile NetBSD from linux?" or
"Other Information" section.
>>
>> Thanks
>> Prasad
>>
>>
>>
>>
>>     
linux cross-compilation
user name
2006-10-16 08:00:56
On Mon, 16 Oct 2006, Narayana Prasad wrote:
>    I found the information at 
> http://www.bluedonkey.org/cgi-bin/twik
i/bin/view/Netbsd/MandrakeLinuxBuild 
> very useful and still applicable(except for the patch
part) to the 
> NetBSDD3.0.1 release. I think it will be worthwhile to
mention that link 
> at http://www.netbs
d.org/Documentation/ under a kernel FAQ like "Is it

> possible to compile NetBSD from linux?" or
"Other Information" section.

I'd rather fix the bugs than point to an out of date web
page that
describes a workaround.

You mentioned that the patch <http://www.blued
onkey.org/twiki/pub/
Netbsd/MandrakeLinuxBuild/linux-20030527.patch> is no
longer necessary,
and the only other special instructions seem to be
overriding LIBC and
LIBM on the build.sh command line.

Can you confirm that overriding LIBC and LIBM is both
necessary and
sufficient to get the build to work?  What errors do you get
if you fail
to override those variables?

--apb (Alan Barrett)
linux cross-compilation
user name
2006-10-16 08:06:57
On Mon, 16 Oct 2006, Lubomir Kundrak wrote:
> As -current doesn't build correctly on MDK it should
IMHO be
> considered a bug and the patch should be imported
instead of noting
> the bug in the documentation.

Now we have one person saying that the patch is not
necessary, and
one person saying it is necessary, so I am confused.

Please explain what errors you get when building -current on
any
kind of Linux where build.sh doesn't just work.

--apb (Alan Barrett)
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )