Hello ports@,

I have troubles building gcc and gdb from devel/avr. avr-binutils and
avr-libc build fine. I have two boxes: one running the latest snapshot
and one following -current from sources. I encounter the same problem on
both boxes.

# gcc

I manage to build avr-gcc by removing `-I /usr/local/include' from the
CFLAGS.

libiberty includes "ansidecl.h". Because of the -I command, it picked
the one from /usr/local/include instead of the one bundled with gcc and
they differ a lot. /usr/local/include/ansidecl.h has no macros PARAMS,
VA_OPEN, etc.

I don't understand why the -I command is used but I also don't
understand why it didn't work for me though someone™ is clearly building
the binary packages for pkg_add...

- Did I messed up my installations and have the wrong ansidecl.h file?
- Do package builders use a different configuration than the Makefile in
  ports? (I've never tried dpb(1))

# gdb

gdb-6.8.tar.gz cannot be found on any GNU mirrors (the closer is
gdb-6.8a.tar.gz). And the fallback on OpenBSD distfiles fails too
because it tries to fetch distfiles/gdb/gdb/gdb-6.8.tar.gz instead of
distfiles/gdb/gdb-6.8.tar.gz (two /gdb/ is too much).

Hardcoding MASTER_SITES to
https://ftp.openbsd.org/pub/OpenBSD/distfiles/gdb/ did the trick.

But again, how can the packages be built if the URLs fails?


So, what am I doing wrong? Did I miss some configuration steps or
misread some documentation?

Best,

Reply via email to