From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-id: <20010803142005.2663.qmail@sourceware.cygnus.com> X-SW-Source: 2001-08/msg00049.html List-Id: >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: