public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: joel@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org
Subject: bootstrap/3922: sparc-elf embedded target makes UNIX calls
Date: Fri, 03 Aug 2001 07:26:00 -0000	[thread overview]
Message-ID: <20010803142005.2663.qmail@sourceware.cygnus.com> (raw)

>Number:         3922
>Category:       bootstrap
>Synopsis:       sparc-elf embedded target makes UNIX calls
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 03 07:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     joel@gcc.gnu.org
>Release:        gcc-30-cvs checked out on 20010802
>Organization:
>Environment:
GNU/Linux RedHat 6.2
>Description:
Embedded targets should not have to provide sysconf(),
getpagesize(), or mprotect().  This appears to be responsible
for 40 test failures.

Targetting sparc-elf some tests fail to link like this:

spawn /usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/xgcc -B/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/ /usr3/ftp_archive/gnu/gcc/ss/b3/gcc-30-cvs/gcc/testsuite/gcc.c-torture/execute/20000822-1.c testglue.o -w -O0 -I/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/sparc-elf//newlib/targ-include -I/usr3/ftp_archive/gnu/gcc/ss/b3/gcc-30-cvs/newlib/libc/include -nostdlib -nostartfiles -B/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/sparc-elf//libgloss/sparc/ -L/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/sparc-elf//libgloss/sparc -L/usr3/ftp_archive/gnu/gcc/ss/b3/gcc-30-cvs/libgloss/sparc -B/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/sparc-elf//newlib/ -L/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/sparc-elf//newlib -Wl,-wrap,exit -Wl,-wrap,main -Wl,-wrap,abort -lm -Telfsim.ld -o /usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/testsuite/20000822-1.x0 ^M
/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/libgcc.a(_trampoline.o): In function `check_enabling':^M
/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/../../gcc-30-cvs/gcc/libgcc2.c(.text+0x4): undefined reference to `sysconf'^M
/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/libgcc.a(_trampoline.o): In function `__enable_execute_stack':^M
/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/../../gcc-30-cvs/gcc/libgcc2.c(.text+0x40): undefined reference to `getpagesize'^M
/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/../../gcc-30-cvs/gcc/libgcc2.c(.text+0x64): undefined reference to `mprotect'^M
collect2: ld returned 1 exit status^M
compiler exited with status 1
>How-To-Repeat:
try to compile at least the test indicated above.
>Fix:
I don't know how the embedded sparc-elf ends up using the 
trampoline code in sol2.h which is where these references
appear to come from.
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2001-08-03  7:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-03  7:26 joel [this message]
2002-06-25 12:48 davem
2002-06-25 13:16 Joel Sherrill
2003-01-31 21:15 joel
2003-04-30 21:43 bootstrap/3922: [sparc-elf] " bangerth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010803142005.2663.qmail@sourceware.cygnus.com \
    --to=joel@gcc.gnu.org \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).