This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/66136] New: AArch64 geniterators.sh relies on GNU sed syntax, causing build failure on FreeBSD


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66136

            Bug ID: 66136
           Summary: AArch64 geniterators.sh relies on GNU sed syntax,
                    causing build failure on FreeBSD
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: emaste at freebsd dot org
  Target Milestone: ---

Attempting to build an AArch64 target on FreeBSD fails with:

In file included from ../../gcc/config/aarch64/aarch64-builtins.c:316:
./aarch64-builtin-iterators.h:5:1: warning: extra ';' outside of a function is
a C++11 extension [-Wc++11-extra-semi]
./aarch64-builtin-iterators.h:5:4: error: unknown type name 'Machine'
./aarch64-builtin-iterators.h:5:22: error: expected ';' after top level
declarator
./aarch64-builtin-iterators.h:5:48: warning: extra ';' outside of a function is
a C++11 extension [-Wc++11-extra-semi]
./aarch64-builtin-iterators.h:5:50: error: unknown type name 'Copyrigh'
./aarch64-builtin-iterators.h:5:62: error: expected ';' after top level
declarator
...


and aarch64-builtin-iterators.h looks like:
feynman% head gcc/aarch64-builtin-iterators.h 
/* -*- buffer-read-only: t -*- */
/* Generated automatically by geniterators.sh from iterators.md.  */
#ifndef GCC_AARCH64_ITERATORS_H
#define GCC_AARCH64_ITERATORS_H
;; Machine descripion for AArch64 archiecure. ;; Copyrigh (C) 2009-2015 Free
Sofware Foundaion, Inc. ;; Conribued by ARM Ld. ;; ;; This file is par of GCC.
;; ;; GCC is free sofware; you can redisribue i and/or modify i ;; under he
erms of he GNU General Public License as published by ;; he Free Sofware
Foundaion; eiher version 3, or (a your opion) ;; any laer version. ;; ;; GCC is
disribued in he hope ha i will be useful, bu ;; WITHOUT ANY WARRANTY; wihou
even he implied warrany of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See he GNU ;; General Public License for more deails. ;; ;; You should
have received a copy of he GNU General Public License ;; along wih GCC; see he
file COPYING3. If no see ;; <hp://www.gnu.org/licenses/>. ;;
------------------------------------------------------------------- ;;
...

To get past this locally for now I've s/sed/gsed/ in geniterators.sh.

I think we'll want to either change the expressions to work with other sed
implementations, or require GNU sed.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]