mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* RE: sandbox build failing on redhat host
@ 2011-06-08  4:16 ` Murthy, Ramana
  2011-07-16  6:45   ` Vikram Narayanan
  0 siblings, 1 reply; 8+ messages in thread
From: Murthy, Ramana @ 2011-06-08  4:16 UTC (permalink / raw)
  To: barebox


[-- Attachment #1.1: Type: text/plain, Size: 3352 bytes --]

Hi All,

Can somebody please help me on this. I know sandbox is not priority. But this helps me to progress to create a new port.

Best Regards,
N.S.S.R.Murthy,
Ph # +91-40-67303600, Extn - 3731,
Mobile # +91-9959677780.

From: Murthy, Ramana
Sent: Monday, June 06, 2011 3:48 PM
To: 'barebox@lists.infradead.org'
Subject: sandbox build failing on redhat host

Hi All,

I am trying to build barebox with ARCH = sandbox. My make menuconfig is successful.
But the actual build is throwing below errors. As I understand, the errors are because offt_build.c that includes <asm/barebox.h>. But in case of ARCH=sandbox,the arch/sandbox/inlcude/asm/barebox.h contains nothing. Is itsupposed to compile ft_build.c in case of sandbox?

 CHK     include/generated/version.h
 CHK     include/generated/utsrelease.h
 SYMLINK include/config.h -> arch/sandbox/board//config.h
 CC      scripts/mod/empty.o
 HOSTCC  scripts/mod/mk_elfconfig
 MKELF   scripts/mod/elfconfig.h
 HOSTCC  scripts/mod/modpost.o
 HOSTCC  scripts/mod/sumversion.o
 HOSTLD  scripts/mod/modpost
 HOSTCC  scripts/bin2c
 HOSTCC  scripts/mkimage
 HOSTCC  scripts/bareboxenv
 CC      common/hush.o
 CC      common/date.o
 CC      common/ft_build.o
In file included from common/ft_build.c:33:
include/ft_build.h:59: error: syntax error before "bd_t"
include/ft_build.h:59: warning: function declaration isn't a prototype
include/ft_build.h:65: error: syntax error before "bd_t"
include/ft_build.h:65: warning: function declaration isn't a prototype
include/ft_build.h:66: error: syntax error before "bd_t"
include/ft_build.h:66: warning: function declaration isn't a prototype
include/ft_build.h:67: error: syntax error before "bd_t"
include/ft_build.h:67: warning: function declaration isn't a prototype
common/ft_build.c:458: error: syntax error before "bd_t"
common/ft_build.c:459: warning: function declaration isn't a prototype
common/ft_build.c: In function `ft_setup':
common/ft_build.c:477: error: `blob' undeclared (first use in this function)
common/ft_build.c:477: error: (Each undeclared identifier is reported only once
common/ft_build.c:477: error: for each function it appears in.)
common/ft_build.c:477: error: `bd' undeclared (first use in this function)
common/ft_build.c:488: error: `initrd_start' undeclared (first use in
this function)
common/ft_build.c:488: error: `initrd_end' undeclared (first use in
this function)
common/ft_build.c:460: warning: unused variable `p'
common/ft_build.c:461: warning: unused variable `len'
common/ft_build.c:463: warning: unused variable `clock'
make[1]: *** [common/ft_build.o] Error 1
make: *** [common] Error 2

Best Regards,
N.S.S.R.Murthy,
Ph # +91-40-67303600, Extn - 3731,
Mobile # +91-9959677780.


________________________________
The information contained in or attached to this email may be subject to the Export Administration Regulations (EAR), administered by the U.S. Department of Commerce, or the International Traffic in Arms Regulations (ITAR), administered by the U.S. Department of State, and may require an export license from the Commerce or State Department prior to its export. An export can include a release or disclosure to a foreign national inside or outside the United States. Include this notice with any reproduced portion of this information.

[-- Attachment #1.2: Type: text/html, Size: 11755 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: sandbox build failing on redhat host
  2011-06-08  4:16 ` sandbox build failing on redhat host Murthy, Ramana
@ 2011-07-16  6:45   ` Vikram Narayanan
  2011-07-19  5:30     ` Murthy, Ramana
  0 siblings, 1 reply; 8+ messages in thread
From: Vikram Narayanan @ 2011-07-16  6:45 UTC (permalink / raw)
  To: Murthy, Ramana; +Cc: barebox

On Wed, Jun 8, 2011 at 9:46 AM, Murthy, Ramana
<Ramana.Murthy@microsemi.com> wrote:
> Hi All,
>
>
>
> Can somebody please help me on this. I know sandbox is not priority. But
> this helps me to progress to create a new port.

Please post your .config file.
Which version of barebox you are using?

-
Vikram
>
> Best Regards,
>
> N.S.S.R.Murthy,
>
> Ph # +91-40-67303600, Extn – 3731,
>
> Mobile # +91-9959677780.
>
>
>
> From: Murthy, Ramana
> Sent: Monday, June 06, 2011 3:48 PM
> To: 'barebox@lists.infradead.org'
> Subject: sandbox build failing on redhat host
>
>
>
> Hi All,
>
>
>
> I am trying to build barebox with ARCH = sandbox. My make menuconfig is
> successful.
>
> But the actual build is throwing below errors. As I understand, the errors
> are because offt_build.c that includes <asm/barebox.h>. But in case of
> ARCH=sandbox,the arch/sandbox/inlcude/asm/barebox.h contains nothing. Is
> itsupposed to compile ft_build.c in case of sandbox?
>
>  CHK     include/generated/version.h
>  CHK     include/generated/utsrelease.h
>  SYMLINK include/config.h -> arch/sandbox/board//config.h
>  CC      scripts/mod/empty.o
>  HOSTCC  scripts/mod/mk_elfconfig
>  MKELF   scripts/mod/elfconfig.h
>  HOSTCC  scripts/mod/modpost.o
>  HOSTCC  scripts/mod/sumversion.o
>  HOSTLD  scripts/mod/modpost
>  HOSTCC  scripts/bin2c
>  HOSTCC  scripts/mkimage
>  HOSTCC  scripts/bareboxenv
>  CC      common/hush.o
>  CC      common/date.o
>  CC      common/ft_build.o
> In file included from common/ft_build.c:33:
> include/ft_build.h:59: error: syntax error before "bd_t"
> include/ft_build.h:59: warning: function declaration isn't a prototype
> include/ft_build.h:65: error: syntax error before "bd_t"
> include/ft_build.h:65: warning: function declaration isn't a prototype
> include/ft_build.h:66: error: syntax error before "bd_t"
> include/ft_build.h:66: warning: function declaration isn't a prototype
> include/ft_build.h:67: error: syntax error before "bd_t"
> include/ft_build.h:67: warning: function declaration isn't a prototype
> common/ft_build.c:458: error: syntax error before "bd_t"
> common/ft_build.c:459: warning: function declaration isn't a prototype
> common/ft_build.c: In function `ft_setup':
> common/ft_build.c:477: error: `blob' undeclared (first use in this function)
> common/ft_build.c:477: error: (Each undeclared identifier is reported only
> once
> common/ft_build.c:477: error: for each function it appears in.)
> common/ft_build.c:477: error: `bd' undeclared (first use in this function)
> common/ft_build.c:488: error: `initrd_start' undeclared (first use in
> this function)
> common/ft_build.c:488: error: `initrd_end' undeclared (first use in
> this function)
> common/ft_build.c:460: warning: unused variable `p'
> common/ft_build.c:461: warning: unused variable `len'
> common/ft_build.c:463: warning: unused variable `clock'
> make[1]: *** [common/ft_build.o] Error 1
> make: *** [common] Error 2
>
>
>
> Best Regards,
>
> N.S.S.R.Murthy,
>
> Ph # +91-40-67303600, Extn – 3731,
>
> Mobile # +91-9959677780.
>
>
>
> ________________________________
> The information contained in or attached to this email may be subject to the
> Export Administration Regulations (EAR), administered by the U.S. Department
> of Commerce, or the International Traffic in Arms Regulations (ITAR),
> administered by the U.S. Department of State, and may require an export
> license from the Commerce or State Department prior to its export. An export
> can include a release or disclosure to a foreign national inside or outside
> the United States. Include this notice with any reproduced portion of this
> information.
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
>

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: sandbox build failing on redhat host
  2011-07-16  6:45   ` Vikram Narayanan
@ 2011-07-19  5:30     ` Murthy, Ramana
  2011-07-19 10:22       ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 8+ messages in thread
From: Murthy, Ramana @ 2011-07-19  5:30 UTC (permalink / raw)
  To: Vikram Narayanan; +Cc: barebox

[-- Attachment #1: Type: text/plain, Size: 6155 bytes --]

Hi Vikram,


Here are my latest set of errors for sandbox build. PFA the config file.
Version : barebox-2011.05.0

commands/loads.c:114: error: `load_addr' undeclared (first use in this function)
commands/loads.c:114: error: (Each undeclared identifier is reported only once
commands/loads.c:114: error: for each function it appears in.)
commands/loads.c: In function `load_serial':
commands/loads.c:179: warning: implicit declaration of function `barebox_setenv'
commands/loads.c:188: warning: implicit declaration of function `barebox_putc'
commands/loads.c: In function `read_record':
commands/loads.c:221: error: `gd' undeclared (first use in this function)
commands/loads.c:221: error: `XF_getc' undeclared (first use in this function)
commands/loads.c:233:6: warning: "CONFIG_COMMANDS" is not defined
commands/loads.c:233:24: warning: "CFG_CMD_SAVES" is not defined
commands/loads.c: At top level:
commands/loads.c:392: error: syntax error before numeric constant
commands/loads.c:396: warning: type defaults to `int' in declaration of `BAREBOX_CMD'
commands/loads.c:396: warning: function declaration isn't a prototype
commands/loads.c:396: warning: data definition has no type or storage class
commands/loads.c:404:6: warning: "CONFIG_COMMANDS" is not defined
commands/loads.c:404:24: warning: "CFG_CMD_SAVES" is not defined
make[1]: *** [commands/loads.o] Error 1
make: *** [commands] Error 2


Best Regards,
N.S.S.R.Murthy,

-----Original Message-----
From: Vikram Narayanan [mailto:vikram186@gmail.com]
Sent: Saturday, July 16, 2011 12:16 PM
To: Murthy, Ramana
Cc: barebox@lists.infradead.org
Subject: Re: sandbox build failing on redhat host

On Wed, Jun 8, 2011 at 9:46 AM, Murthy, Ramana
<Ramana.Murthy@microsemi.com> wrote:
> Hi All,
>
>
>
> Can somebody please help me on this. I know sandbox is not priority. But
> this helps me to progress to create a new port.

Please post your .config file.
Which version of barebox you are using?

-
Vikram
>
> Best Regards,
>
> N.S.S.R.Murthy,
>
> Ph # +91-40-67303600, Extn - 3731,
>
> Mobile # +91-9959677780.
>
>
>
> From: Murthy, Ramana
> Sent: Monday, June 06, 2011 3:48 PM
> To: 'barebox@lists.infradead.org'
> Subject: sandbox build failing on redhat host
>
>
>
> Hi All,
>
>
>
> I am trying to build barebox with ARCH = sandbox. My make menuconfig is
> successful.
>
> But the actual build is throwing below errors. As I understand, the errors
> are because offt_build.c that includes <asm/barebox.h>. But in case of
> ARCH=sandbox,the arch/sandbox/inlcude/asm/barebox.h contains nothing. Is
> itsupposed to compile ft_build.c in case of sandbox?
>
>  CHK     include/generated/version.h
>  CHK     include/generated/utsrelease.h
>  SYMLINK include/config.h -> arch/sandbox/board//config.h
>  CC      scripts/mod/empty.o
>  HOSTCC  scripts/mod/mk_elfconfig
>  MKELF   scripts/mod/elfconfig.h
>  HOSTCC  scripts/mod/modpost.o
>  HOSTCC  scripts/mod/sumversion.o
>  HOSTLD  scripts/mod/modpost
>  HOSTCC  scripts/bin2c
>  HOSTCC  scripts/mkimage
>  HOSTCC  scripts/bareboxenv
>  CC      common/hush.o
>  CC      common/date.o
>  CC      common/ft_build.o
> In file included from common/ft_build.c:33:
> include/ft_build.h:59: error: syntax error before "bd_t"
> include/ft_build.h:59: warning: function declaration isn't a prototype
> include/ft_build.h:65: error: syntax error before "bd_t"
> include/ft_build.h:65: warning: function declaration isn't a prototype
> include/ft_build.h:66: error: syntax error before "bd_t"
> include/ft_build.h:66: warning: function declaration isn't a prototype
> include/ft_build.h:67: error: syntax error before "bd_t"
> include/ft_build.h:67: warning: function declaration isn't a prototype
> common/ft_build.c:458: error: syntax error before "bd_t"
> common/ft_build.c:459: warning: function declaration isn't a prototype
> common/ft_build.c: In function `ft_setup':
> common/ft_build.c:477: error: `blob' undeclared (first use in this function)
> common/ft_build.c:477: error: (Each undeclared identifier is reported only
> once
> common/ft_build.c:477: error: for each function it appears in.)
> common/ft_build.c:477: error: `bd' undeclared (first use in this function)
> common/ft_build.c:488: error: `initrd_start' undeclared (first use in
> this function)
> common/ft_build.c:488: error: `initrd_end' undeclared (first use in
> this function)
> common/ft_build.c:460: warning: unused variable `p'
> common/ft_build.c:461: warning: unused variable `len'
> common/ft_build.c:463: warning: unused variable `clock'
> make[1]: *** [common/ft_build.o] Error 1
> make: *** [common] Error 2
>
>
>
> Best Regards,
>
> N.S.S.R.Murthy,
>
> Ph # +91-40-67303600, Extn - 3731,
>
> Mobile # +91-9959677780.
>
>
>
> ________________________________
> The information contained in or attached to this email may be subject to the
> Export Administration Regulations (EAR), administered by the U.S. Department
> of Commerce, or the International Traffic in Arms Regulations (ITAR),
> administered by the U.S. Department of State, and may require an export
> license from the Commerce or State Department prior to its export. An export
> can include a release or disclosure to a foreign national inside or outside
> the United States. Include this notice with any reproduced portion of this
> information.
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
>



The information contained in or attached to this email may be subject to the Export Administration Regulations (EAR), administered by the U.S. Department of Commerce, or the International Traffic in Arms Regulations (ITAR), administered by the U.S. Department of State, and may require an export license from the Commerce or State Department prior to its export.  An export can include a release or disclosure to a foreign national inside or outside the United States.  Include this notice with any reproduced portion of this information.

[-- Attachment #2: ATT62575.config --]
[-- Type: application/octet-stream, Size: 3958 bytes --]

#
# Automatically generated make config: don't edit
# Linux/sandbox 2011.05.0 Barebox Configuration
# Tue Jul 19 10:47:48 2011
#
CONFIG_ARCH_TEXT_BASE=0x00000000
CONFIG_BOARDINFO="sandbox"
CONFIG_LINUX=y
CONFIG_DEFCONFIG_LIST="$ARCH_DEFCONFIG"
CONFIG_GREGORIAN_CALENDER=y
CONFIG_CMD_MEMORY=y
CONFIG_ENV_HANDLING=y

#
# General Settings              
#
CONFIG_LOCALVERSION_AUTO=y

#
# memory layout                 
#
CONFIG_STACK_SIZE=0x8000
CONFIG_MALLOC_SIZE=0x400000
CONFIG_BROKEN=y
CONFIG_EXPERIMENTAL=y
CONFIG_PROMPT="barebox:"
CONFIG_BAUDRATE=115200
CONFIG_SIMPLE_READLINE=y
# CONFIG_LONGHELP is not set
CONFIG_CBSIZE=1024
CONFIG_MAXARGS=16
CONFIG_SHELL_HUSH=y
# CONFIG_SHELL_SIMPLE is not set
# CONFIG_GLOB is not set
CONFIG_PROMPT_HUSH_PS2="> "
# CONFIG_HUSH_FANCY_PROMPT is not set
# CONFIG_HUSH_GETOPT is not set
# CONFIG_CMDLINE_EDITING is not set
# CONFIG_MENU is not set
CONFIG_PASSWORD=y
CONFIG_PASSWD_SUM_MD5=y
# CONFIG_PASSWD_SUM_SHA1 is not set
# CONFIG_PASSWD_SUM_SHA256 is not set
CONFIG_DYNAMIC_CRC_TABLE=y
CONFIG_ERRNO_MESSAGES=y
CONFIG_TIMESTAMP=y
CONFIG_CONSOLE_FULL=y
CONFIG_CONSOLE_ACTIVATE_FIRST=y
# CONFIG_OF_FLAT_TREE is not set
# CONFIG_PARTITION is not set
CONFIG_DEFAULT_ENVIRONMENT=y
# CONFIG_DEFAULT_ENVIRONMENT_GENERIC is not set
CONFIG_DEFAULT_ENVIRONMENT_PATH=""
# CONFIG_POLLER is not set

#
# Debugging                     
#
CONFIG_DEBUG_INFO=y
CONFIG_ENABLE_FLASH_NOISE=y
CONFIG_ENABLE_PARTITION_NOISE=y
CONFIG_ENABLE_DEVICE_NOISE=y

#
# Commands                      
#

#
# scripting                     
#
CONFIG_CMD_EDIT=y
CONFIG_CMD_SLEEP=y
CONFIG_CMD_SAVEENV=y
CONFIG_CMD_LOADENV=y
CONFIG_CMD_EXPORT=y
CONFIG_CMD_PRINTENV=y
CONFIG_CMD_READLINE=y
CONFIG_CMD_TRUE=y
CONFIG_CMD_FALSE=y
CONFIG_CMD_LOGIN=y
CONFIG_CMD_PASSWD=y
CONFIG_PASSWD_MODE_HIDE=y
# CONFIG_PASSWD_MODE_STAR is not set
# CONFIG_PASSWD_MODE_CLEAR is not set

#
# file commands                 
#
CONFIG_CMD_LS=y
CONFIG_CMD_RM=y
CONFIG_CMD_CAT=y
CONFIG_CMD_MKDIR=y
CONFIG_CMD_RMDIR=y
CONFIG_CMD_CP=y
CONFIG_CMD_PWD=y
CONFIG_CMD_CD=y
CONFIG_CMD_MOUNT=y
CONFIG_CMD_UMOUNT=y

#
# console                       
#
CONFIG_CMD_CLEAR=y
CONFIG_CMD_ECHO=y
# CONFIG_CMD_ECHO_E is not set

#
# memory                        
#
CONFIG_CMD_LOADB=y
CONFIG_CMD_LOADY=y
CONFIG_CMD_LOADS=y
CONFIG_CMD_SAVES=y
CONFIG_CMD_MEMINFO=y
CONFIG_CMD_CRC=y
CONFIG_CMD_CRC_CMP=y
CONFIG_CMD_MTEST=y
CONFIG_CMD_MTEST_ALTERNATIVE=y

#
# flash                         
#
CONFIG_CMD_FLASH=y
# CONFIG_CMD_UBI is not set

#
# booting                       
#
CONFIG_CMD_BOOTM=y
# CONFIG_CMD_BOOTM_ZLIB is not set
# CONFIG_CMD_BOOTM_BZLIB is not set
# CONFIG_CMD_BOOTM_SHOW_TYPE is not set
# CONFIG_CMD_RESET is not set
# CONFIG_CMD_GO is not set
# CONFIG_CMD_TIMEOUT is not set
# CONFIG_CMD_PARTITION is not set
CONFIG_CMD_TEST=y
CONFIG_CMD_VERSION=y
CONFIG_CMD_HELP=y
CONFIG_CMD_DEVINFO=y
# CONFIG_CMD_UNLZO is not set
# CONFIG_NET is not set

#
# Drivers                       
#

#
# serial drivers                
#
CONFIG_DRIVER_SERIAL_LINUX_COMSOLE=y
# CONFIG_DRIVER_SERIAL_NS16550 is not set

#
# SPI drivers                   
#
CONFIG_SPI=y
# CONFIG_I2C is not set

#
# flash drivers                 
#
# CONFIG_DRIVER_CFI is not set
# CONFIG_MTD is not set
# CONFIG_ATA is not set
# CONFIG_USB is not set
# CONFIG_USB_GADGET is not set
# CONFIG_VIDEO is not set
# CONFIG_MCI is not set

#
# MFD
#
# CONFIG_I2C_MC13892 is not set
# CONFIG_DRIVER_SPI_MC13783 is not set
# CONFIG_LED is not set

#
# Filesystem support            
#
# CONFIG_FS_CRAMFS is not set
CONFIG_FS_RAMFS=y
CONFIG_FS_DEVFS=y
CONFIG_CRC32=y
CONFIG_CRC16=y
CONFIG_DIGEST=y
CONFIG_MD5=y
# CONFIG_SHA1 is not set
# CONFIG_SHA256 is not set
CONFIG_GENERIC_FIND_NEXT_BIT=y
# CONFIG_PROCESS_ESCAPE_SEQUENCE is not set

[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: sandbox build failing on redhat host
  2011-07-19  5:30     ` Murthy, Ramana
@ 2011-07-19 10:22       ` Jean-Christophe PLAGNIOL-VILLARD
  2011-07-19 10:53         ` Murthy, Ramana
  0 siblings, 1 reply; 8+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-07-19 10:22 UTC (permalink / raw)
  To: Murthy, Ramana; +Cc: barebox

On 11:00 Tue 19 Jul     , Murthy, Ramana wrote:
> Hi Vikram,
> 
> 
> Here are my latest set of errors for sandbox build. PFA the config file.
> Version : barebox-2011.05.0
disable loads as it make not too much sense on sandbox anyway

> 
> commands/loads.c:114: error: `load_addr' undeclared (first use in this function)
> commands/loads.c:114: error: (Each undeclared identifier is reported only once
> commands/loads.c:114: error: for each function it appears in.)
> commands/loads.c: In function `load_serial':
> commands/loads.c:179: warning: implicit declaration of function `barebox_setenv'
> commands/loads.c:188: warning: implicit declaration of function `barebox_putc'
> commands/loads.c: In function `read_record':
> commands/loads.c:221: error: `gd' undeclared (first use in this function)
> commands/loads.c:221: error: `XF_getc' undeclared (first use in this function)
> commands/loads.c:233:6: warning: "CONFIG_COMMANDS" is not defined
> commands/loads.c:233:24: warning: "CFG_CMD_SAVES" is not defined
> commands/loads.c: At top level:
> commands/loads.c:392: error: syntax error before numeric constant
> commands/loads.c:396: warning: type defaults to `int' in declaration of `BAREBOX_CMD'
> commands/loads.c:396: warning: function declaration isn't a prototype
> commands/loads.c:396: warning: data definition has no type or storage class
> commands/loads.c:404:6: warning: "CONFIG_COMMANDS" is not defined
> commands/loads.c:404:24: warning: "CFG_CMD_SAVES" is not defined
> make[1]: *** [commands/loads.o] Error 1
> make: *** [commands] Error 2
Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: sandbox build failing on redhat host
  2011-07-19 10:22       ` Jean-Christophe PLAGNIOL-VILLARD
@ 2011-07-19 10:53         ` Murthy, Ramana
  2011-07-20  4:39           ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 8+ messages in thread
From: Murthy, Ramana @ 2011-07-19 10:53 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox

Hi,

I have tried this.
But it seems the loader needs loads enabled.

/usr/bin/ld:arch/sandbox/board//barebox.lds:77: syntax error
collect2: ld returned 1 exit status
make: *** [barebox] Error 1

Line 77 in arch/sandbox/board//barebox.lds is  __barebox_cmd : { KEEP(*(SORT_BY_NAME(.barebox_cmd*))) }

Best Regards,
N.S.S.R.Murthy,


-----Original Message-----
From: Jean-Christophe PLAGNIOL-VILLARD [mailto:plagnioj@jcrosoft.com]
Sent: Tuesday, July 19, 2011 3:53 PM
To: Murthy, Ramana
Cc: Vikram Narayanan; barebox@lists.infradead.org
Subject: Re: sandbox build failing on redhat host

On 11:00 Tue 19 Jul     , Murthy, Ramana wrote:
> Hi Vikram,
>
>
> Here are my latest set of errors for sandbox build. PFA the config file.
> Version : barebox-2011.05.0
disable loads as it make not too much sense on sandbox anyway

>
> commands/loads.c:114: error: `load_addr' undeclared (first use in this function)
> commands/loads.c:114: error: (Each undeclared identifier is reported only once
> commands/loads.c:114: error: for each function it appears in.)
> commands/loads.c: In function `load_serial':
> commands/loads.c:179: warning: implicit declaration of function `barebox_setenv'
> commands/loads.c:188: warning: implicit declaration of function `barebox_putc'
> commands/loads.c: In function `read_record':
> commands/loads.c:221: error: `gd' undeclared (first use in this function)
> commands/loads.c:221: error: `XF_getc' undeclared (first use in this function)
> commands/loads.c:233:6: warning: "CONFIG_COMMANDS" is not defined
> commands/loads.c:233:24: warning: "CFG_CMD_SAVES" is not defined
> commands/loads.c: At top level:
> commands/loads.c:392: error: syntax error before numeric constant
> commands/loads.c:396: warning: type defaults to `int' in declaration of `BAREBOX_CMD'
> commands/loads.c:396: warning: function declaration isn't a prototype
> commands/loads.c:396: warning: data definition has no type or storage class
> commands/loads.c:404:6: warning: "CONFIG_COMMANDS" is not defined
> commands/loads.c:404:24: warning: "CFG_CMD_SAVES" is not defined
> make[1]: *** [commands/loads.o] Error 1
> make: *** [commands] Error 2
Best Regards,
J.



The information contained in or attached to this email may be subject to the Export Administration Regulations (EAR), administered by the U.S. Department of Commerce, or the International Traffic in Arms Regulations (ITAR), administered by the U.S. Department of State, and may require an export license from the Commerce or State Department prior to its export.  An export can include a release or disclosure to a foreign national inside or outside the United States.  Include this notice with any reproduced portion of this information.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: sandbox build failing on redhat host
  2011-07-19 10:53         ` Murthy, Ramana
@ 2011-07-20  4:39           ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 8+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-07-20  4:39 UTC (permalink / raw)
  To: Murthy, Ramana; +Cc: barebox

On 16:23 Tue 19 Jul     , Murthy, Ramana wrote:
> Hi,
> 
> I have tried this.
> But it seems the loader needs loads enabled.
> 
> /usr/bin/ld:arch/sandbox/board//barebox.lds:77: syntax error
> collect2: ld returned 1 exit status
> make: *** [barebox] Error 1
> 
> Line 77 in arch/sandbox/board//barebox.lds is  __barebox_cmd : { KEEP(*(SORT_BY_NAME(.barebox_cmd*))) }
I don't known what you did but
make O=build/sandbox -j9 -s sandbox_defconfig
make O=build/sandbox -j9 -s

work fine

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: sandbox build failing on redhat host
  2011-06-06 10:17 Murthy, Ramana
@ 2011-06-10  7:22 ` Sascha Hauer
  0 siblings, 0 replies; 8+ messages in thread
From: Sascha Hauer @ 2011-06-10  7:22 UTC (permalink / raw)
  To: Murthy, Ramana; +Cc: barebox

Hi Murthy,

On Mon, Jun 06, 2011 at 03:47:35PM +0530, Murthy, Ramana wrote:
> Hi All,
> 
> I am trying to build barebox with ARCH = sandbox. My make menuconfig is successful.
> But the actual build is throwing below errors. As I understand, the
> errors are because offt_build.c that includes <asm/barebox.h>. But in
> case of ARCH=sandbox,the arch/sandbox/inlcude/asm/barebox.h contains
> nothing. Is itsupposed to compile ft_build.c in case of sandbox?

It is supposed to be built when CONFIG_OF_FLAT_TREE is enabled. This
is not the case in sandbox_defconfig. Please do a make menuconfig
and disable

General Settings                --->
	[ ] Open Firmware flat device tree support

That should do it.

Sascha


> 
>  CHK     include/generated/version.h
>  CHK     include/generated/utsrelease.h
>  SYMLINK include/config.h -> arch/sandbox/board//config.h
>  CC      scripts/mod/empty.o
>  HOSTCC  scripts/mod/mk_elfconfig
>  MKELF   scripts/mod/elfconfig.h
>  HOSTCC  scripts/mod/modpost.o
>  HOSTCC  scripts/mod/sumversion.o
>  HOSTLD  scripts/mod/modpost
>  HOSTCC  scripts/bin2c
>  HOSTCC  scripts/mkimage
>  HOSTCC  scripts/bareboxenv
>  CC      common/hush.o
>  CC      common/date.o
>  CC      common/ft_build.o
> In file included from common/ft_build.c:33:
> include/ft_build.h:59: error: syntax error before "bd_t"
> include/ft_build.h:59: warning: function declaration isn't a prototype
> include/ft_build.h:65: error: syntax error before "bd_t"
> include/ft_build.h:65: warning: function declaration isn't a prototype
> include/ft_build.h:66: error: syntax error before "bd_t"
> include/ft_build.h:66: warning: function declaration isn't a prototype
> include/ft_build.h:67: error: syntax error before "bd_t"
> include/ft_build.h:67: warning: function declaration isn't a prototype
> common/ft_build.c:458: error: syntax error before "bd_t"
> common/ft_build.c:459: warning: function declaration isn't a prototype
> common/ft_build.c: In function `ft_setup':
> common/ft_build.c:477: error: `blob' undeclared (first use in this function)
> common/ft_build.c:477: error: (Each undeclared identifier is reported only once
> common/ft_build.c:477: error: for each function it appears in.)
> common/ft_build.c:477: error: `bd' undeclared (first use in this function)
> common/ft_build.c:488: error: `initrd_start' undeclared (first use in
> this function)
> common/ft_build.c:488: error: `initrd_end' undeclared (first use in
> this function)
> common/ft_build.c:460: warning: unused variable `p'
> common/ft_build.c:461: warning: unused variable `len'
> common/ft_build.c:463: warning: unused variable `clock'
> make[1]: *** [common/ft_build.o] Error 1
> make: *** [common] Error 2
> 
> Best Regards,
> N.S.S.R.Murthy,
> Ph # +91-40-67303600, Extn - 3731,
> Mobile # +91-9959677780.
> 
> 
> ________________________________
> The information contained in or attached to this email may be subject to the Export Administration Regulations (EAR), administered by the U.S. Department of Commerce, or the International Traffic in Arms Regulations (ITAR), administered by the U.S. Department of State, and may require an export license from the Commerce or State Department prior to its export. An export can include a release or disclosure to a foreign national inside or outside the United States. Include this notice with any reproduced portion of this information.

> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

* sandbox build failing on redhat host
@ 2011-06-06 10:17 Murthy, Ramana
  2011-06-10  7:22 ` Sascha Hauer
  0 siblings, 1 reply; 8+ messages in thread
From: Murthy, Ramana @ 2011-06-06 10:17 UTC (permalink / raw)
  To: barebox


[-- Attachment #1.1: Type: text/plain, Size: 2978 bytes --]

Hi All,

I am trying to build barebox with ARCH = sandbox. My make menuconfig is successful.
But the actual build is throwing below errors. As I understand, the errors are because offt_build.c that includes <asm/barebox.h>. But in case of ARCH=sandbox,the arch/sandbox/inlcude/asm/barebox.h contains nothing. Is itsupposed to compile ft_build.c in case of sandbox?

 CHK     include/generated/version.h
 CHK     include/generated/utsrelease.h
 SYMLINK include/config.h -> arch/sandbox/board//config.h
 CC      scripts/mod/empty.o
 HOSTCC  scripts/mod/mk_elfconfig
 MKELF   scripts/mod/elfconfig.h
 HOSTCC  scripts/mod/modpost.o
 HOSTCC  scripts/mod/sumversion.o
 HOSTLD  scripts/mod/modpost
 HOSTCC  scripts/bin2c
 HOSTCC  scripts/mkimage
 HOSTCC  scripts/bareboxenv
 CC      common/hush.o
 CC      common/date.o
 CC      common/ft_build.o
In file included from common/ft_build.c:33:
include/ft_build.h:59: error: syntax error before "bd_t"
include/ft_build.h:59: warning: function declaration isn't a prototype
include/ft_build.h:65: error: syntax error before "bd_t"
include/ft_build.h:65: warning: function declaration isn't a prototype
include/ft_build.h:66: error: syntax error before "bd_t"
include/ft_build.h:66: warning: function declaration isn't a prototype
include/ft_build.h:67: error: syntax error before "bd_t"
include/ft_build.h:67: warning: function declaration isn't a prototype
common/ft_build.c:458: error: syntax error before "bd_t"
common/ft_build.c:459: warning: function declaration isn't a prototype
common/ft_build.c: In function `ft_setup':
common/ft_build.c:477: error: `blob' undeclared (first use in this function)
common/ft_build.c:477: error: (Each undeclared identifier is reported only once
common/ft_build.c:477: error: for each function it appears in.)
common/ft_build.c:477: error: `bd' undeclared (first use in this function)
common/ft_build.c:488: error: `initrd_start' undeclared (first use in
this function)
common/ft_build.c:488: error: `initrd_end' undeclared (first use in
this function)
common/ft_build.c:460: warning: unused variable `p'
common/ft_build.c:461: warning: unused variable `len'
common/ft_build.c:463: warning: unused variable `clock'
make[1]: *** [common/ft_build.o] Error 1
make: *** [common] Error 2

Best Regards,
N.S.S.R.Murthy,
Ph # +91-40-67303600, Extn - 3731,
Mobile # +91-9959677780.


________________________________
The information contained in or attached to this email may be subject to the Export Administration Regulations (EAR), administered by the U.S. Department of Commerce, or the International Traffic in Arms Regulations (ITAR), administered by the U.S. Department of State, and may require an export license from the Commerce or State Department prior to its export. An export can include a release or disclosure to a foreign national inside or outside the United States. Include this notice with any reproduced portion of this information.

[-- Attachment #1.2: Type: text/html, Size: 9156 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-07-20  4:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <AcwkMvQr2IoEFQV9To6jK9T6RQPvyABX9l1w>
2011-06-08  4:16 ` sandbox build failing on redhat host Murthy, Ramana
2011-07-16  6:45   ` Vikram Narayanan
2011-07-19  5:30     ` Murthy, Ramana
2011-07-19 10:22       ` Jean-Christophe PLAGNIOL-VILLARD
2011-07-19 10:53         ` Murthy, Ramana
2011-07-20  4:39           ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-06 10:17 Murthy, Ramana
2011-06-10  7:22 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox