Re: Kernel builds failing with lots of "failed to retrieve array bounds" errors

2012-05-30 Thread Sevan / Venture37

On 28/05/2012 20:45, Dimitry Andric wrote:

Note, in r236149 I have pulled in a change from upstream clang, which
should fix the root cause of the "failed to retrieve array bounds"
messages.


Indeed, I updated & rebuilt yesterday & message no-longer appeared.
Thanks


Sevan
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Kernel builds failing with lots of "failed to retrieve array bounds" errors

2012-05-28 Thread Dimitry Andric
On 2012-05-24 22:50, Sevan / Venture37 wrote:
> On 24/05/2012 20:21, Dimitry Andric wrote:
>> I've seen these too, and it seems clang produces debug info which
>> ctfconvert can't handle, for some reason.  However, in my case, the
>> kernel build doesn't abort at all, it continues and all the object files
>> seem to work just fine.
> 
> Updated to r235926 & kernel build completed successfully.

Note, in r236149 I have pulled in a change from upstream clang, which
should fix the root cause of the "failed to retrieve array bounds"
messages.

For flexible array members (e.g. arrays at the end of a struct with no
specified size), clang didn't produce correct debug information.  This
confused ctfconvert, causing it to bail out.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Kernel builds failing with lots of "failed to retrieve array bounds" errors

2012-05-24 Thread Sevan / Venture37

On 24/05/2012 20:21, Dimitry Andric wrote:

I've seen these too, and it seems clang produces debug info which
ctfconvert can't handle, for some reason.  However, in my case, the
kernel build doesn't abort at all, it continues and all the object files
seem to work just fine.


Updated to r235926 & kernel build completed successfully.


Sevan
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Kernel builds failing with lots of "failed to retrieve array bounds" errors

2012-05-24 Thread Dimitry Andric
On 2012-05-24 19:13, Sevan / Venture37 wrote:
> I'm unable to build the generic kernel, seeing lots of "failed to 
> retrieve array bounds" errors (129 to be exact) starting with ERROR: 
> scsi_all.c: die 43574: failed to retrieve array bounds & stoping at

I've seen these too, and it seems clang produces debug info which
ctfconvert can't handle, for some reason.  However, in my case, the
kernel build doesn't abort at all, it continues and all the object files
seem to work just fine.

I don't know much much about the dtrace/ctfconvert stuff though, so I
will have to ask somebody else to step up to investigate, and hopefully
fix it. :)

...
> Userland was built & installed earlier this morning WITH_CLANG_IS_CC 
> defined in src.conf, and the make.conf is as follows
> STRIP=
> CFLAGS+=-fno-omit-frame-pointer

Ah, I think that it works for me, because I don't define STRIP to empty.
Just as an experiment, can you try commenting that setting, and do a
clean build of your kernel?
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Kernel builds failing with lots of "failed to retrieve array bounds" errors

2012-05-24 Thread Sevan / Venture37

Hi
I'm unable to build the generic kernel, seeing lots of "failed to 
retrieve array bounds" errors (129 to be exact) starting with ERROR: 
scsi_all.c: die 43574: failed to retrieve array bounds & stoping at
cc -c -O2 -pipe -fno-strict-aliasing  -std=c99 -g -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs 
-fdiagnostics-show-option  -Wno-error-tautological-compare 
-Wno-error-empty-body  -Wno-error-parentheses-equality -nostdinc  -I. 
-I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL 
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h 
-fno-omit-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone 
-mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables 
-ffreestanding -fstack-protector -Werror  /usr/src/sys/dev/ata/ata-card.c

ctfconvert -L VERSION -g aic_pccard.o
ctfconvert -L VERSION -g ata-card.o
ctfconvert -L VERSION -g intel_dp.o
ERROR: intel_dp.c: die 24561: failed to retrieve array bounds
cc -c -O2 -pipe -fno-strict-aliasing  -std=c99 -g -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs 
-fdiagnostics-show-option  -Wno-error-tautological-compare 
-Wno-error-empty-body  -Wno-error-parentheses-equality -nostdinc  -I. 
-I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL 
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h 
-fno-omit-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone 
-mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables 
-ffreestanding -fstack-protector -Werror  /usr/src/sys/dev/cs/if_cs_pccard.c

1 error
*** [all] Error code 2
1 error
*** [all] Error code 2
1 error
*** [modules-all] Error code 2
cc -c -O2 -pipe -fno-strict-aliasing  -std=c99 -g -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs 
-fdiagnostics-show-option  -Wno-error-tautological-compare 
-Wno-error-empty-body  -Wno-error-parentheses-equality -nostdinc  -I. 
-I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL 
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h 
-fno-omit-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone 
-mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables 
-ffreestanding -fstack-protector -Werror  /usr/src/sys/dev/ed/if_ed_pccard.c

ctfconvert -L VERSION -g if_an_pccard.o
ctfconvert -L VERSION -g if_cs_pccard.o
ctfconvert -L VERSION -g if_ed_pccard.o
1 error
*** [buildkernel] Error code 2
1 error
*** [buildkernel] Error code 2
1 error

Userland was built & installed earlier this morning WITH_CLANG_IS_CC 
defined in src.conf, and the make.conf is as follows

STRIP=
CFLAGS+=-fno-omit-frame-pointer

#CFLAGS= -O2 -fno-strict-aliasing -pipe
#COPTFLAGS= -O -pipe
#CXXFLAGS+= -fconserve-space
#CPUTYPE?=core2

WITH_LCD_FILTERING="YES"
VIDEO_DRIVER="intel"
WITHOUT_NLS="YES"
RUBY_VER=1.9
WITH_LCD_FILTERING="YES"

# added by use.perl 2012-05-20 14:42:26
PERL_VERSION=5.12.4



Sevan / Venture37
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Kernel builds failing

2001-08-31 Thread Søren Schmidt

It seems [EMAIL PROTECTED] wrote:
> > For the last two days, my kernel builds have been failing with:
> > 
> > linking kernel.debug
> > ata-all.o: In function `ataioctl':
> > /usr/src/sys/dev/ata/ata-all.c(.text+0x791): undefined reference to
> > `atapi_queue   _cmd'
> > *** Error code 1

I'm looking at how to solve this, commit to follow soon...

-Søren

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RE: Kernel builds failing

2001-08-31 Thread kibbet

Hi Adam, Søren  (CC'd to [EMAIL PROTECTED])


On 31-Aug-01 Adam Kranzel wrote:
> Hi...
> 
> For the last two days, my kernel builds have been failing with:
> 
> linking kernel.debug
> ata-all.o: In function `ataioctl':
> /usr/src/sys/dev/ata/ata-all.c(.text+0x791): undefined reference to
> `atapi_queue   _cmd'
> *** Error code 1
> 
> Stop in /usr/obj/usr/src/sys/CHESHIRE.
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 
> Stop in /usr/src.
> 
> 
> Any ideas?
> 
> thanks
>  -Adam
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-current" in the body of the message



I had this problem to, I went for a snoop and found the following;


>From my kenel config file;

device  ata  
device  atadisk # ATA disk drives
#device atapicd # ATAPI CDROM drives
#device atapifd # ATAPI floppy drives
#device atapist # ATAPI tape drives

I don't have an ata cd, floppy or tape in the machine so I
commented them out - I'm assuming you've done the same.


>From /usr/src/sys/conf/files;

dev/ata/atapi-all.c optional atapicd
dev/ata/atapi-all.c optional atapifd
dev/ata/atapi-all.c optional atapist


the atapi-all.c file contains atapi_queue_cmd(),
in other words, with the above configuration, atapi-all.c
is never compiled, so the function isn't there.

Workaround: add one of the devices to get it compiled, ata[cd,fd,st]



Søren, looks like your last ata-all.c commit has broken this,

sos 2001/08/30 02:47:17 PDT   Modified files:
sys/dev/ata  ata-all.c
  Log:
  Add support for sending ATAPI commands via ioctl.
 
  Revision  ChangesPath
  1.118 +42 -1 src/sys/dev/ata/ata-all.c



Cheers,

--
Kent Ibbetson
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Kernel builds failing

2001-08-31 Thread Adam Kranzel

Hi...

For the last two days, my kernel builds have been failing with:

linking kernel.debug
ata-all.o: In function `ataioctl':
/usr/src/sys/dev/ata/ata-all.c(.text+0x791): undefined reference to `atapi_queue   
_cmd'
*** Error code 1

Stop in /usr/obj/usr/src/sys/CHESHIRE.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


Any ideas?

thanks
 -Adam

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message