public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* any recent changes to gcc test builds
@ 2009-03-23 16:20 Joel Sherrill
  2009-03-23 16:39 ` Hans-Peter Nilsson
  0 siblings, 1 reply; 5+ messages in thread
From: Joel Sherrill @ 2009-03-23 16:20 UTC (permalink / raw)
  To: GCC List

Hi,

I am confused at the gcc test results for RTEMS
over the weekend.  I have 1000s of failures
across all the targets which look like this:

Executing on host: /home/joel/test-gcc/b-gcc1-sparc/gcc/xgcc 
-B/home/joel/test-gcc/b-gcc1-sparc/gcc/ 
/home/joel/test-gcc/gcc-svn/gcc/testsuite/gcc.c-torture/execute/930930-1.c  
-w  -O3 -fomit-frame-pointer -funroll-loops  -DSTACK_SIZE=2048 
-B/home/joel/test-gcc/bsp-install/sparc-rtems4.10/sis/lib/ -specs 
bsp_specs -qrtems -mcpu=cypress 
/home/joel/test-gcc/b-gcc1-sparc/rtems_gcc_main.o  -lm   -o 
/home/joel/test-gcc/b-gcc1-sparc/gcc/testsuite/gcc/930930-1.x4    
(timeout = 300)
/home/joel/test-gcc/install/sparc-rtems4.10/bin/ld: cannot find -lm
collect2: ld returned 1 exit status

I haven't changed the configure command in the test script
and there are lots of libm.a's in the tree.  The command
just doesn't seem to be picking up the directory with libm.a.

Any ideas?

b-gcc1-sparc/sparc-rtems4.10/v8/newlib/libm.a
b-gcc1-sparc/sparc-rtems4.10/v8/newlib/libm/libm.a
b-gcc1-sparc/sparc-rtems4.10/newlib/libm.a
b-gcc1-sparc/sparc-rtems4.10/newlib/libm/libm.a
b-gcc1-sparc/sparc-rtems4.10/soft/v8/newlib/libm.a
b-gcc1-sparc/sparc-rtems4.10/soft/v8/newlib/libm/libm.a
b-gcc1-sparc/sparc-rtems4.10/soft/newlib/libm.a
b-gcc1-sparc/sparc-rtems4.10/soft/newlib/libm/libm.a

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985


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

* Re: any recent changes to gcc test builds
  2009-03-23 16:20 any recent changes to gcc test builds Joel Sherrill
@ 2009-03-23 16:39 ` Hans-Peter Nilsson
  2009-03-23 16:46   ` Joel Sherrill
  0 siblings, 1 reply; 5+ messages in thread
From: Hans-Peter Nilsson @ 2009-03-23 16:39 UTC (permalink / raw)
  To: joel.sherrill; +Cc: gcc

> Date: Mon, 23 Mar 2009 09:37:02 -0500
> From: Joel Sherrill <joel.sherrill@oarcorp.com>

> I am confused at the gcc test results for RTEMS
> over the weekend.  I have 1000s of failures
> across all the targets which look like this:

> Any ideas?

I fixed a bug in Janis' GCC_EXEC_PREFIX testsuite cleanup:
<http://gcc.gnu.org/ml/gcc-patches/2009-03/msg00970.html>.

Not that I see why this'd have any bearing on your failures;
-B's should be translated to -L's and the (presumably present)
 set_board_info ldflags   "[libgloss_link_flags] [newlib_link_flags]"
in your <board>.exp should help finding the newlib libraries.
(Hm, maybe I presumed too much and you don't have that!)

brgds, H-P

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

* Re: any recent changes to gcc test builds
  2009-03-23 16:39 ` Hans-Peter Nilsson
@ 2009-03-23 16:46   ` Joel Sherrill
  2009-03-23 16:52     ` Hans-Peter Nilsson
  0 siblings, 1 reply; 5+ messages in thread
From: Joel Sherrill @ 2009-03-23 16:46 UTC (permalink / raw)
  To: Hans-Peter Nilsson; +Cc: gcc

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

Hans-Peter Nilsson wrote:
>> Date: Mon, 23 Mar 2009 09:37:02 -0500
>> From: Joel Sherrill <joel.sherrill@oarcorp.com>
>>     
>
>   
>> I am confused at the gcc test results for RTEMS
>> over the weekend.  I have 1000s of failures
>> across all the targets which look like this:
>>     
>
>   
>> Any ideas?
>>     
>
> I fixed a bug in Janis' GCC_EXEC_PREFIX testsuite cleanup:
> <http://gcc.gnu.org/ml/gcc-patches/2009-03/msg00970.html>.
>
> Not that I see why this'd have any bearing on your failures;
> -B's should be translated to -L's and the (presumably present)
>  set_board_info ldflags   "[libgloss_link_flags] [newlib_link_flags]"
> in your <board>.exp should help finding the newlib libraries.
> (Hm, maybe I presumed too much and you don't have that!)
>
>   
No.  I don't have those in my board.exp:

set_board_info cflags  "-B${RTEMS_MAKEFILE_PATH}/lib/ -specs bsp_specs 
-qrtems -mcpu=603e"
set_board_info ldflags "${RTEMS_CONFIG_OBJ}"

Where do I need to add those?  Can you point me
to examples?

I have attached the complete rtems-powerpc-psim.exp
in case that helps.  It isn't very large.

Thanks.


> brgds, H-P
>   


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985



[-- Attachment #2: rtems-powerpc-psim.exp --]
[-- Type: text/plain, Size: 2093 bytes --]

# Copyright (C) 1997-2008 Free Software
# Foundation, Inc.
#
# This file is part of DejaGnu.
#
# DejaGnu is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# DejaGnu is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with DejaGnu; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

# This is a list of toolchains that are supported on this board.
set_board_info target_install {powerpc-rtems4.9}

# Load the generic configuration for this board, This will define a basic
# set of routines needed by the tool to communicate with the board.
load_generic_config "sim"

# basic-sim.exp is a basic description for the standard Cygnus simulator.
load_base_board_description "basic-sim"

# The name of the simulator is "ppc".
setup_sim psim

# No multilib flags needed by default.
process_multilib_options ""

# The compiler used to build for this board. This has *nothing* to do
# with what compiler is tested if we're testing gcc.
set_board_info compiler  "[find_gcc]"

set_board_info cflags  "-B${RTEMS_MAKEFILE_PATH}/lib/ -specs bsp_specs -qrtems -mcpu=603e"
set_board_info ldflags "${RTEMS_CONFIG_OBJ}"

# The simulator isn't really remote.
set_board_info isremote 0

# We only have a small stack available to us
set_board_info gcc,stack_size 2048

# wrapper script which handles the device tree
set_board_info sim "psim -l 180"

# No support for signals on this target.
set_board_info gdb,nosignals 1

# The simulator doesn't return exit statuses and we need to indicate this.
set_board_info needs_status_wrapper 1

# Can't call functions from GDB.
# set_board_info gdb,cannot_call_functions 1

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

* Re: any recent changes to gcc test builds
  2009-03-23 16:46   ` Joel Sherrill
@ 2009-03-23 16:52     ` Hans-Peter Nilsson
  2009-03-23 19:32       ` Joel Sherrill
  0 siblings, 1 reply; 5+ messages in thread
From: Hans-Peter Nilsson @ 2009-03-23 16:52 UTC (permalink / raw)
  To: joel.sherrill; +Cc: hans-peter.nilsson, gcc

> Date: Mon, 23 Mar 2009 10:19:37 -0500
> From: Joel Sherrill <joel.sherrill@oarcorp.com>

> I don't have those in my board.exp:
> 
> set_board_info cflags  "-B${RTEMS_MAKEFILE_PATH}/lib/ -specs bsp_specs 
> -qrtems -mcpu=603e"
> set_board_info ldflags "${RTEMS_CONFIG_OBJ}"

Those should find ${RTEMS_MAKEFILE_PATH}/lib/libm.a which might
or might not be what you want.

> Where do I need to add those?  Can you point me
> to examples?

I'd grep among the other baseboards for numerous examples, in
the dejagnu installation, subdir baseboards.  In case you have
no clue where it is on the system where you test, you'll see it
as:
...
Using <dejagnu_installation_root>/config/sim.exp as generic interface file for target.
...

when running the test-suite.

brgds, H-P

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

* Re: any recent changes to gcc test builds
  2009-03-23 16:52     ` Hans-Peter Nilsson
@ 2009-03-23 19:32       ` Joel Sherrill
  0 siblings, 0 replies; 5+ messages in thread
From: Joel Sherrill @ 2009-03-23 19:32 UTC (permalink / raw)
  To: Hans-Peter Nilsson; +Cc: gcc

Hans-Peter Nilsson wrote:
>> Date: Mon, 23 Mar 2009 10:19:37 -0500
>> From: Joel Sherrill <joel.sherrill@oarcorp.com>
>>     
>
>   
>> I don't have those in my board.exp:
>>
>> set_board_info cflags  "-B${RTEMS_MAKEFILE_PATH}/lib/ -specs bsp_specs 
>> -qrtems -mcpu=603e"
>> set_board_info ldflags "${RTEMS_CONFIG_OBJ}"
>>     
>
> Those should find ${RTEMS_MAKEFILE_PATH}/lib/libm.a which might
> or might not be what you want.
>   
Not. :)  That only points to RTEMS libraries for a particular
board.
>   
>> Where do I need to add those?  Can you point me
>> to examples?
>>     
>
> I'd grep among the other baseboards for numerous examples, in
> the dejagnu installation, subdir baseboards.  In case you have
> no clue where it is on the system where you test, you'll see it
> as:
> ...
> Using <dejagnu_installation_root>/config/sim.exp as generic interface file for target.
> ...
>
> when running the test-suite.
>   
Fixed and closed the single PR I was testing when I
ran into this.

Thanks.
> brgds, H-P
>   


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985


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

end of thread, other threads:[~2009-03-23 18:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-23 16:20 any recent changes to gcc test builds Joel Sherrill
2009-03-23 16:39 ` Hans-Peter Nilsson
2009-03-23 16:46   ` Joel Sherrill
2009-03-23 16:52     ` Hans-Peter Nilsson
2009-03-23 19:32       ` Joel Sherrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).