Skip to content

Compile error building cross-compiler (target VAX) #36

@awik32

Description

@awik32

I don't think I've encountered this particular error before:

./pftn.c: In function ‘defid2’:
./pftn.c:527:45: error: ‘GCC_ATYP_WEAKREF’ undeclared (first use in this function)
  527 |                 if ((at = attr_find(p->sap, GCC_ATYP_WEAKREF)))
      |                                             ^~~~~~~~~~~~~~~~

Configuration:

./configure --target=vax-dec-bsd --disable-gcc-compat \
  --with-incdir=/home/aw/x/vax/include --with-libdir=/home/aw/x/vax/lib \
  --with-assembler=/home/aw/x/vax/bin/as --with-linker=/home/aw/x/vax/bin/ld

Summary:

Target CPU is .................... vax
Target ABI is .................... aout
Target OS is ..................... bsd
Compiler is called ............... vax-dec-bsd-pcc
Installing compiler into ......... /usr/local/bin
Installing pre-processor into .... /usr/local/libexec
Using assembler .................. /home/aw/x/vax/bin/as
Using linker ..................... /home/aw/x/vax/bin/ld
Using Multi-Arch path ............ "x86_64-linux-gnu"
Using include path ............... /home/aw/x/vax/include
Using library path ............... /home/aw/x/vax/lib
Use libvmf ....................... no
Has TLS support .................. no
Has GCC compatibility ............ no
Has PCC debugging ................ yes
Type of wchar_t is ............... INT (4 chars)

Note that this error manifests when compiling with GCC. I'll report on the PCC compilation next.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions