Bug 220458 - ports-mgmt/synth: Fails to build on 11.1-RC1 AMD64 unknown type names '__vm_ooffset_t' and '__vm_pindex_t'
Summary: ports-mgmt/synth: Fails to build on 11.1-RC1 AMD64 unknown type names '__vm_o...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: needs-qa
: 221138 (view as bug list)
Depends on: 221111
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-03 21:04 UTC by Lacey Powers
Modified: 2017-12-03 09:52 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (ericturgeon.bsd)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lacey Powers 2017-07-03 21:04:30 UTC
cd /usr/ports/ports-mgmt/synth

Run make

===>  License ISCL accepted by the user
===>   synth-1.69 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by synth-1.69 for building
===>  Extracting for synth-1.69
=> SHA256 Checksum OK for jrmarino-synth-v1.69_GH0.tar.gz.
===>  Patching for synth-1.69
===>   synth-1.69 depends on file: /usr/local/lib/libncurses.a - found
===>   synth-1.69 depends on file: /usr/local/lib/gnat/ini_file_manager.gpr - found
===>   synth-1.69 depends on file: /usr/local/lib/gnat/adacurses.gpr - found
===>   synth-1.69 depends on file: /usr/local/gcc6-aux/bin/ada - found
===>  Configuring for synth-1.69
===>  Building for synth-1.69
(cd /usr/ports/ports-mgmt/synth/work/synth-1.69/src && /usr/bin/env NCURSES_LINK=static PATH=/usr/local/gcc6-aux/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin  ADA_PROJECT_PATH=/usr/local/lib/gnat XDG_DATA_HOME=/usr/ports/ports-mgmt/synth/work  XDG_CONFIG_HOME=/usr/ports/ports-mgmt/synth/work  HOME=/usr/ports/ports-mgmt/synth/work NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  LIBDIR="/usr/lib"  CC="ada" CFLAGS="-O2 -pipe -fno-omit-frame-pointer -march=native  -fstack-protector -fno-strict-aliasing"  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector" LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fno-omit-frame-pointer -march=native -fstack-protector -fno-strict-aliasing "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install   -m 555"  BSD_INSTALL_LIB="install   -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"  gcc -c unix_core.c -o ../build/unix_core.o)
In file included from unix_core.c:13:0:
/usr/local/gcc6-aux/lib/gcc/x86_64-aux-freebsd11.0/6.3.1/include-fixed/sys/types.h:266:9: error: unknown type name '__vm_ooffset_t'
 typedef __vm_ooffset_t vm_ooffset_t;
         ^~~~~~~~~~~~~~
/usr/local/gcc6-aux/lib/gcc/x86_64-aux-freebsd11.0/6.3.1/include-fixed/sys/types.h:268:9: error: unknown type name '__vm_pindex_t'
 typedef __vm_pindex_t vm_pindex_t;
         ^~~~~~~~~~~~~
*** Error code 1

Stop.
make: stopped in /usr/ports/ports-mgmt/synth

Please let me know if I can be of further assistance debugging this. Thank you.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2017-07-05 11:18:09 UTC
@Lacey Did this port version build on previous FreeBSD versions? If so, what was the last FreeBSD version that it was successfully built on. If not, what was the last (or currently installed version) of synth that successfully built?
Comment 2 Lacey Powers 2017-07-16 21:41:05 UTC
The last version of synth that worked for me was 1.68 on FreeBSD 11. Once I upgraded to FreeBSD 11.1, 1.68 started having problems. I tried 1.69 in the hopes that the latest version fixed some sort of bug.

I did a few of hours of troubleshooting (interesting way to spend a bit of vacation time), and it looks like synth didn't force a rebuild of lang/gcc6-aux, which had older definitions in the types.h header.

Once lang/gcc6-aux was fully and completely rebuilt, and reinstalled with pkg upgrade -f lang/gcc6-aux, the resulting header was updated, and synth started building again just fine.

I'm not sure why synth didn't force a rebuild of all of the packages when upgrading from 11.0-RELEASE to 11.1-RC1 (or any of the in-between BETA and RC versions).
Comment 3 Alexandre C. Guimarães freebsd_committer freebsd_triage 2017-07-26 16:46:08 UTC
11.1-RELEASE and the problem persist with v1.69, and with v1.70 (just out).
Comment 4 Alexandre C. Guimarães freebsd_committer freebsd_triage 2017-07-26 16:55:55 UTC
CORRECTION: 11.1-RELEASE and the problem persist with v1.69, but v1.70 is just out. However I had to delete the old gcc6-aux package to install it, and so I do not have how to test it anymore.
Comment 5 David Z. 2017-07-26 21:57:13 UTC
I can confirm the same problem on 11.1-RELEASE i386.  Same error when building v1.70.  I haven't rebuilt lang/gcc6-aux yet; it was previously built under 11.0-RELEASE.
Comment 6 David Z. 2017-07-31 02:40:22 UTC
I just created PR 221111 to fix the underlying problem in lang/gcc6-aux.  It should fix the problem with building synth.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221111
Comment 7 Kubilay Kocak freebsd_committer freebsd_triage 2017-08-01 10:33:33 UTC
*** Bug 221138 has been marked as a duplicate of this bug. ***
Comment 8 Kurt Jaeger freebsd_committer freebsd_triage 2017-12-03 09:52:39 UTC
Fixed with more recent gcc6-aux