Bug 216798 - devel/aarch64-none-elf-gcc: (e.g. as of -r432460 on pine64) undefined symbol: _Z21host_detect_local_cpuiPPKc in gcc.o
Summary: devel/aarch64-none-elf-gcc: (e.g. as of -r432460 on pine64) undefined symbol:...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm64 Any
: --- Affects Only Me
Assignee: Baptiste Daroussin
URL:
Keywords:
Depends on:
Blocks: 201763
  Show dependency treegraph
 
Reported: 2017-02-04 22:40 UTC by Mark Millard
Modified: 2018-11-12 00:46 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (bapt)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Millard 2017-02-04 22:40:21 UTC
My attempt to build devel/aarch64-none-elf-gcc on a aarch64 (a
pine64) got:

c++    -fbracket-depth=512 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H  -o xgcc gcc.o gcc-main.o ggc-none.o spellcheck.o \
  c/gccspec.o  libcommon-target.a \
   libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a 
undefined symbol: _Z21host_detect_local_cpuiPPKc in gcc.o
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:1888: xgcc] Error 1
gmake[2]: Leaving directory '/usr/obj/portswork/usr/ports/devel/aarch64-none-elf-gcc/work/.build/gcc'
gmake[1]: *** [Makefile:4126: all-gcc] Error 2
gmake[1]: Leaving directory '/usr/obj/portswork/usr/ports/devel/aarch64-none-elf-gcc/work/.build'
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/aarch64-none-elf-gcc

===>>> make build failed for devel/aarch64-none-elf-gcc
===>>> Aborting update


# uname -apKU
FreeBSD pine64 12.0-CURRENT FreeBSD 12.0-CURRENT  r312982M  arm64 aarch64 1200020 1200020

# svnlite info /usr/ports/ | grep "Re[plv]"
Relative URL: ^/head
Repository Root: svn://svn.freebsd.org/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 432460
Last Changed Rev: 432460

That is after -r428312 which is the most recent update
to devel/aarch64-none-elf-gcc (a slave port) and -r431796
for devel/powerpc64-gcc (the master port). (At least as I
write this.)
Comment 1 Mark Millard 2017-02-05 01:43:18 UTC
FYI:

# more /etc/make.conf
DEFAULT_VERSIONS+=perl5=5.24
WRKDIRPREFIX=/usr/obj/portswork
WITH_DEBUG=
WITH_DEBUG_FILES=
MALLOC_PRODUCTION=
#
TO_TYPE=aarch64
TOOLS_TO_TYPE=${TO_TYPE}
#
CROSS_BINUTILS_PREFIX=/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/
AS=/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/as
AR=/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ar
LD=/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ld
NM=/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/nm
OBJCOPY=/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/objcopy
OBJDUMP=/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/objdump
RANLIB=/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ranlib
SIZE=/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/size
#NO-SUCH: XSTRINGS=/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/strings
STRINGS=/usr/local/bin/${TOOLS_TO_TYPE}-freebsd-strings
#
CFLAGS+= -B${CROSS_BINUTILS_PREFIX} -mcpu=cortex-a53
CXXFLAGS+= -B${CROSS_BINUTILS_PREFIX} -mcpu=cortex-a53
CPPFLAGS+= -B${CROSS_BINUTILS_PREFIX} -mcpu=cortex-a53
Comment 2 Emmanuel Vadot freebsd_committer 2018-08-21 08:17:41 UTC
This needs https://reviews.freebsd.org/D16743 so we can build again aarch64-none-elf-gcc on arm64.
Comment 3 Ed Maste freebsd_committer 2018-08-30 16:52:37 UTC
(In reply to Emmanuel Vadot from comment #2)
Commited as r478209, can this be closed?