Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

libxml2 And Program Too Big

Hi,

I am having limited success in cross compiling libxml2.

When I link and then try to run my small test program from an NFS mount, I get the runtime error from Nios2/uClinux: "program too big" for a program that is 1520936 bytes.

free reports:

# free
MemTotal:        14544 kB
MemFree:          9140 kB
Buffers:          1764 kB

Does this seem right? My program is 1.5MB and my free memory is 9.1MB. What is the limit for binary file sizes?

I'm guessing my job at cross compiling libxml2 is incomplete. Does anyone know of a libxml2 port?

Cheers,

Jim

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by jlasswell@Jul 7 2006, 07:46 AM

    hi,

    i am having limited success in cross compiling libxml2.

    when i link and then try to run my small test program from an nfs mount, i get the runtime error from nios2/uclinux: "program too big" for a program that is 1520936 bytes.

    free reports:

    # free
    memtotal:        14544 kb
    memfree:          9140 kb
    buffers:          1764 kb

    does this seem right? my program is 1.5mb and my free memory is 9.1mb. what is the limit for binary file sizes?

    i'm guessing my job at cross compiling libxml2 is incomplete. does anyone know of a libxml2 port?

    cheers,

    jim

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16694)</div>

    --- Quote End ---

    Did you turn on large memory block option in kernel menuconfig?

    Processor type and features -->

    [*] Allow allocating large blocks (> 1MB) of memory