LTLIB failing to config for IMX6Q release version L3.0.15_12.04.01

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LTLIB failing to config for IMX6Q release version L3.0.15_12.04.01

Jump to solution
2,691 Views
somjagadeeshan
Contributor I

Hello,

Started to build the source packages for IMx6Q baord. The release is L3.0.15_12.04.01_ER_source and end up getting buil dissues with LTLIB.

Here is the log of the error.

*************************************

Processing: mtd-utils

=======================

Build path taken because: no prebuilt rpm,

Testing network connectivity

OK GPP:

Try mtd-utils-201006.tar.bz2.md5 from the GPP

http://bitshrine.org/gpp/mtd-utils-201006.tar.bz2.md5:

11:52:39 ERROR 404: Not Found.

Try mtd-utils-201006.tar.bz2 from the GPP

http://bitshrine.org/gpp/mtd-utils-201006.tar.bz2:

11:52:39 ERROR 404: Not Found.

Can't get: mtd-utils-201006.tar.bz2 at ./ltib line 790.

Died at ./ltib line 1380.

traceback:

main::build_host_rpms:1380

  main::host_checks:1435

   main:542

Started: Mon Oct  1 11:52:36 2012

Ended:   Mon Oct  1 11:52:39 2012

Elapsed: 3 seconds

These packages failed to build:

mtd-utils

Build Failed

**************************************************


How can this be sorted out. My environment is a Ubuntu 10.04 lucid.


Any inputs will be highly appreciated.


Thanks,

mep

Labels (1)
1 Solution
1,562 Views
stéphanejournau
Contributor II

I meet the same problem but under linux version 3.2.0. I find inside the ltib/dist/lfs-5.1/mtd-utils folder a other file .spec (mtd-utils-20060302.spec) which worked on my plateform

View solution in original post

0 Kudos
Reply
5 Replies
1,562 Views
JohnCannizzo
Contributor III

I'm getting the same on L3.0.35_12.09.01.  I applied mtd-utils-201006-4K-218-224-support.patch, and still could not build.  I tried to apply mtd-utils-201006-remove-Werror-for-old-utils.patch, but it breaks.  The mfgtool2 image does not include kernel headers, and I need kernel headers to build my code, hence I NEED to build this kernel.  Somehow Freescale was able to build the kernel.  PLEASE could that person let us know how to get around this error?  Web searches have not provided a solution, and ltib tries to get mtd-utils-201006 from a site that no longer provides this older version of mtd-utils.

jc3@jc3-ubuntu:~/.local/share/Trash/files/mtd-utils$ make

gcc -I./include   -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o /home/jc3/.local/share/Trash/files/mtd-utils/nanddump.o nanddump.c -g -Wp,-MD,/home/jc3/.local/share/Trash/files/mtd-utils/.nanddump.c.dep

nanddump.c: In function ‘main’:

nanddump.c:347: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result

nanddump.c:350: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result

nanddump.c:376: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result

nanddump.c:389: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result

nanddump.c:392: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result

gcc -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare   -g -o /home/jc3/.local/share/Trash/files/mtd-utils/nanddump /home/jc3/.local/share/Trash/files/mtd-utils/nanddump.o 

gcc -I./include   -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o /home/jc3/.local/share/Trash/files/mtd-utils/mkfs.jffs2.o mkfs.jffs2.c -g -Wp,-MD,/home/jc3/.local/share/Trash/files/mtd-utils/.mkfs.jffs2.c.dep

mkfs.jffs2.c:69:21: error: sys/acl.h: No such file or directory

mkfs.jffs2.c: In function ‘recursive_add_host_directory’:

mkfs.jffs2.c:435: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result

mkfs.jffs2.c:440: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result

mkfs.jffs2.c:442: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result

mkfs.jffs2.c: In function ‘interpret_table_entry’:

mkfs.jffs2.c:533: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result

mkfs.jffs2.c:600: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result

mkfs.jffs2.c:601: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result

mkfs.jffs2.c: At top level:

mkfs.jffs2.c:1095: warning: initialization discards qualifiers from pointer target type

mkfs.jffs2.c:1096: warning: initialization discards qualifiers from pointer target type

mkfs.jffs2.c:1097: warning: initialization discards qualifiers from pointer target type

mkfs.jffs2.c:1098: warning: initialization discards qualifiers from pointer target type

mkfs.jffs2.c:1099: warning: initialization discards qualifiers from pointer target type

mkfs.jffs2.c: In function ‘formalize_posix_acl’:

mkfs.jffs2.c:1123: error: ‘ACL_USER_OBJ’ undeclared (first use in this function)

mkfs.jffs2.c:1123: error: (Each undeclared identifier is reported only once

mkfs.jffs2.c:1123: error: for each function it appears in.)

mkfs.jffs2.c:1124: error: ‘ACL_GROUP_OBJ’ undeclared (first use in this function)

mkfs.jffs2.c:1125: error: ‘ACL_MASK’ undeclared (first use in this function)

mkfs.jffs2.c:1126: error: ‘ACL_OTHER’ undeclared (first use in this function)

mkfs.jffs2.c:1132: error: ‘ACL_USER’ undeclared (first use in this function)

mkfs.jffs2.c:1133: error: ‘ACL_GROUP’ undeclared (first use in this function)

mkfs.jffs2.c: In function ‘recursive_populate_directory’:

mkfs.jffs2.c:1336: warning: format ‘%9lu’ expects type ‘long unsigned int’, but argument 3 has type ‘__off64_t’

mkfs.jffs2.c:1345: warning: format ‘%9lu’ expects type ‘long unsigned int’, but argument 3 has type ‘__off64_t’

mkfs.jffs2.c:1354: warning: format ‘%9lu’ expects type ‘long unsigned int’, but argument 3 has type ‘__off64_t’

mkfs.jffs2.c:1384: warning: format ‘%9lu’ expects type ‘long unsigned int’, but argument 3 has type ‘__off64_t’

mkfs.jffs2.c:1395: warning: format ‘%9lu’ expects type ‘long unsigned int’, but argument 3 has type ‘__off64_t’

mkfs.jffs2.c: At top level:

mkfs.jffs2.c:1519: warning: initialization discards qualifiers from pointer target type

mkfs.jffs2.c:1521: warning: initialization discards qualifiers from pointer target type

mkfs.jffs2.c: In function ‘main’:

mkfs.jffs2.c:1881: warning: passing argument 2 of ‘recursive_add_host_directory’ discards qualifiers from pointer target type

mkfs.jffs2.c:403: note: expected ‘char *’ but argument is of type ‘const char *’

make: *** [/home/jc3/.local/share/Trash/files/mtd-utils/mkfs.jffs2.o] Error 1

rm /home/jc3/.local/share/Trash/files/mtd-utils/nanddump.o


0 Kudos
Reply
1,563 Views
stéphanejournau
Contributor II

I meet the same problem but under linux version 3.2.0. I find inside the ltib/dist/lfs-5.1/mtd-utils folder a other file .spec (mtd-utils-20060302.spec) which worked on my plateform

0 Kudos
Reply
1,562 Views
monzie
Contributor II

I am also getting this error.

Stephane for newbies can you list the steps to use the .spec file?

0 Kudos
Reply
1,562 Views
stéphanejournau
Contributor II

Please find enclosed a link  to

Creating the Spec File

0 Kudos
Reply
1,562 Views
JohnCannizzo
Contributor III

Thanks for your reply and help!  Yesterday I was able to get the entire kernel and root file system for all supported programs working under Ubuntu 12.04.  Now I can work on MY application...