Still true at -r326192 : head -r320458 (e.g.) amd64 -> powerpc64 cross build's install32 during installworld: /usr/src/share/mk/bsd.linker.mk tried to use "head" when PATH provided no access (head is
[I just retried this old issue under -r326192 and the problem still exists for an amd64 -> powerpc64 build via clang, WITH_LIB32= in use. This is a devel/powerpc64-binutils context because the system ld (and lld) are not sufficient.] On 2017-Jul-26, at 3:06 AM, Mark Millard wrote: > [ -r321493 installworld's use of "head" during lib32 installation is still > true for amd64 -> powerpc64 cross builds that uses devel/powerpc64-binutils > for ld: that ld is also used . LOCAL_ITOOLS adding head is still a > workaround.] > > On 2017-Jul-5, at 12:36 PM, Bryan Drewery wrote: > >> On 6/29/17 6:21 PM, Mark Millard wrote: >>> [I found where the tools are listed that are copied, >>> the list that is missing head.] >>> >>> On 2017-Jun-29, at 3:33 PM, Mark Millard wrote: >>> [This is a clang targetting powerpc64 context from my experimentation efforts, not the normal gcc 4.2.1 context for powerpc64.] I break out the PATH into lines below to make it easier to scan. See the later "sh: head: not found" line and the even later ls of the directory with the x86-64 program directory in use: no "head" is present to find. --- install32 --- cd /usr/src/lib; MACHINE=powerpc MACHINE_ARCH=powerpc MAKEOBJDIRPREFIX=/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/world32 PATH=/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp/legacy/usr/sbin :/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp/legacy/usr/bin :/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp/legacy/bin :/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp/usr/sbin :/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp/usr/bin :/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp/legacy/usr/sbin :/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp/legacy/usr/bin :/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp/legacy/bin :/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp/usr/sbin :/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp/usr/bin :/tmp/install.7ljKosWa SYSROOT=/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/lib32 LIBDIR=/usr/lib32 SHLIBDIR=/usr/lib32 DTRACE="dtrace" make LD="/usr/local/powerpc64-freebsd/bin/ld -m elf32ppc_fbsd" OBJCOPY="/usr/local/powerpc64-freebsd/bin/objcopy" NM="/usr/local/powerpc64-freebsd/bin/nm" -DCOMPAT_32BIT CC="cc -target powerpc64-unknown-freebsd12.0 --sysroot=/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp -B/usr/local/powerpc64-freebsd/bin/ -DCOMPAT_32BIT -mcpu=powerpc -m32 -L/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/lib32/usr/lib32 --sysroot=/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/lib32 -B/usr/local/powerpc64-freebsd/bin/ -B/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/lib32/usr/lib32" CXX="c++ -target powerpc64-unknown-freebsd12.0 --sysroot=/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp -B/usr/local/powerpc64-freebsd/bin/ -DCOMPAT_32BIT -mcpu=powerpc -m32 > -L/ usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/lib32/usr/lib32 --sysroot=/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/lib32 -B/usr/local/powerpc64-freebsd/bin/ -B/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/lib32/usr/lib32" CPP="cpp -target powerpc64-unknown-freebsd12.0 --sysroot=/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/tmp -B/usr/local/powerpc64-freebsd/bin/ -DCOMPAT_32BIT -mcpu=powerpc -m32 -L/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/lib32/usr/lib32 --sysroot=/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/lib32 -B/usr/local/powerpc64-freebsd/bin/ -B/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/lib32/usr/lib32" -DNO_CPU_CFLAGS MK_CTF=no -DNO_LINT MK_TESTS=no MK_MAN=no MK_HTML=no MK_TOOLCHAIN=no -DLIBRARIES_ONLY install sh: head: not found make[4]: "/usr/src/share/mk/bsd.linker.mk" line 47: Unable to determine linker type from XLD=/usr/local/powerpc64-freebsd/bin/ld *** [install32] Error code 1 # ls -lT /tmp/install.7ljKosWa/ total 6151 -r-xr-xr-x1 root wheel12592 Jun 29 14:02:46 2017 [ -r-xr-xr-x1 root wheel 207320 Jun 29 14:02:46 2017 awk -r-xr-xr-x1 root wheel 8456 Jun 29 14:02:46 2017 cap_mkdb -r-xr-xr-x1 root wheel13272 Jun 29 14:02:46 2017 cat . . . -r-xr-xr-x1 root wheel57632 Jun 29 14:02:46 2017 find -r-xr-xr-x1 root wheel
Re: ARM broken since a while
=== Mark Millard markmi at dsl-only.net On 2017-Nov-25, at 1:10 PM, Pedro Giffuni wrote: > On 11/25/17 15:28, Pedro Giffuni wrote: >> >> ... >> >> I have seen problems on arm with zstd though. >> > For the record: > arm.armv6 buildworld failed, check _.arm.armv6.buildworld for details > > ===> lib/libzstd (all) > Assertion failed: (LiveCPSR && "CPSR liveness tracking is wrong!"), function > UpdateCPSRUse, file > /usr/src/contrib/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp, line 961. > cc: error: unable to execute command: Abort trap (core dumped) > cc: error: clang frontend command failed due to signal (use -v to see > invocation) > FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on LLVM > 5.0.0svn) > Target: armv6--freebsd12.0-gnueabihf > Thread model: posix > InstalledDir: /usr/bin > cc: note: diagnostic msg: PLEASE submit a bug report to > https://bugs.freebsd.org/submit/ and include the crash backtrace, > preprocessed source, and associated run script. > cc: note: diagnostic msg: > > > PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: > Preprocessed source(s) and associated run script(s) are located at: > cc: note: diagnostic msg: /tmp/zstd_compress-3f783c.c > cc: note: diagnostic msg: /tmp/zstd_compress-3f783c.sh > cc: note: diagnostic msg: > > > --- zstd_compress.o --- > *** [zstd_compress.o] Error code 254 > > make[7]: stopped in /scratch/tmp/pfg/head/lib/libzstd > For this there is: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223072 and: https://bugs.llvm.org/show_bug.cgi?id=35023 The detailed error message has changed over time but the above tracks that. I've not seen this problem (before armv7 or after I switched), possibly because I use -mcpu=cortex-a7 explicitly. (For aarch64: -mcpu=cortex-a53 .) === Mark Millard markmi at dsl-only.net ___ freebsd-toolchain@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"
Re: ARM broken since a while
On 25 Nov 2017, at 22:10, Pedro Giffuniwrote: > > On 11/25/17 15:28, Pedro Giffuni wrote: >> >> ... >> >> I have seen problems on arm with zstd though. >> > For the record: > arm.armv6 buildworld failed, check _.arm.armv6.buildworld for details > > ===> lib/libzstd (all) > Assertion failed: (LiveCPSR && "CPSR liveness tracking is wrong!"), function > UpdateCPSRUse, file > /usr/src/contrib/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp, line 961. > cc: error: unable to execute command: Abort trap (core dumped) This is probably after the most recent zstd import, see also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223072 and https://bugs.llvm.org/show_bug.cgi?id=35023 No progress at all upstream, though. :-/ -Dimitry signature.asc Description: Message signed with OpenPGP
ARM broken since a while
On 11/25/17 15:28, Pedro Giffuni wrote: ... I have seen problems on arm with zstd though. For the record: arm.armv6 buildworld failed, check _.arm.armv6.buildworld for details ===> lib/libzstd (all) Assertion failed: (LiveCPSR && "CPSR liveness tracking is wrong!"), function UpdateCPSRUse, file /usr/src/contrib/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp, line 961. cc: error: unable to execute command: Abort trap (core dumped) cc: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on LLVM 5.0.0svn) Target: armv6--freebsd12.0-gnueabihf Thread model: posix InstalledDir: /usr/bin cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. cc: note: diagnostic msg: PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/zstd_compress-3f783c.c cc: note: diagnostic msg: /tmp/zstd_compress-3f783c.sh cc: note: diagnostic msg: --- zstd_compress.o --- *** [zstd_compress.o] Error code 254 make[7]: stopped in /scratch/tmp/pfg/head/lib/libzstd Pedro. ___ freebsd-toolchain@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"
Re: head -r326193 (e.g.) buildworld broken: rejecting some . . ./usr/src/amd64.amd64/tmp/usr/include/stdio.h content
Thank you for the report ... On 11/25/17 15:15, Mark Millard wrote: [Quick top post:] Reverting to -r326192 and rebuilding avoided the issue. Prior notes: On 2017-Nov-25, at 12:02 PM, Mark Millard wrote: For example, /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:449:47: error: function definition is not allowed here static __inline int __sputc(int _c, FILE *_p) { for: /* * The __sfoo macros are here so that we can * define function versions in the C library. */ #define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++)) #if defined(__GNUC__) && defined(__STDC__) static __inline int __sputc(int _c, FILE *_p) { if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n')) return (*_p->_p++ = _c); else return (__swbuf(_c, _p)); } #else /* * This has been tuned to generate reasonable code on the vax using pcc. */ #define __sputc(c, p) \ (--(p)->_w < 0 ? \ (p)->_w >= (p)->_lbfsize ? \ (*(p)->_p = (c)), *(p)->_p != '\n' ? \ (int)*(p)->_p++ : \ __swbuf('\n', p) : \ __swbuf((int)(c), p) : \ (*(p)->_p = (c), (int)*(p)->_p++)) #endif More of the prefix of the messages: --- var.o --- In file included from /usr/src/bin/sh/var.c:70: In file included from /usr/src/bin/sh/myhistedit.h:35: In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/histedit.h:48: /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:255:6: warning: declaration of built-in function 'fprintf' requires inclusion of the header [-Wbuiltin-requires-header] int fprintf(FILE * __restrict, const char * __restrict, ...); ^ /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:260:6: warning: declaration of built-in function 'fscanf' requires inclusion of the header [-Wbuiltin-requires-header] int fscanf(FILE * __restrict, const char * __restrict, ...); ^ --- csh_make --- Building /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/rescue/rescue/usr/src/bin/csh/sh.init.o --- sh_make --- /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:284:6: warning: declaration of built-in function 'vfprintf' requires inclusion of the header [-Wbuiltin-requires-header] int vfprintf(FILE * __restrict, const char * __restrict, ^ /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:293:6: warning: declaration of built-in function 'vfscanf' requires inclusion of the header [-Wbuiltin-requires-header] int vfscanf(FILE * __restrict, const char * __restrict, __va_list) ^ /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:449:47: error: function definition is not allowed here static __inline int __sputc(int _c, FILE *_p) { ^ In file included from /usr/src/bin/sh/var.c:70: In file included from /usr/src/bin/sh/myhistedit.h:35: In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/histedit.h:254: In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/wchar.h:69: In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/_ctype.h:97: /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/runetype.h:96:1: error: function definition is not allowed here { ^ In file included from /usr/src/bin/sh/var.c:70: In file included from /usr/src/bin/sh/myhistedit.h:35: In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/histedit.h:254: In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/wchar.h:69: /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/_ctype.h:101:1: error: function definition is not allowed here { ^ . . . (much omitted) . . . I can't reproduce it ... I have been running tinderbox builds with the changes for a while. Jenkins wasn't affected either: https://ci.freebsd.org/job/FreeBSD-head-amd64-build/6040/ I have seen problems on arm with zstd though. Pedro. ___ freebsd-toolchain@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"
head -r326193 (e.g.) buildworld broken: rejecting some . . ./usr/src/amd64.amd64/tmp/usr/include/stdio.h content
For example, /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:449:47: error: function definition is not allowed here static __inline int __sputc(int _c, FILE *_p) { for: /* * The __sfoo macros are here so that we can * define function versions in the C library. */ #define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++)) #if defined(__GNUC__) && defined(__STDC__) static __inline int __sputc(int _c, FILE *_p) { if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n')) return (*_p->_p++ = _c); else return (__swbuf(_c, _p)); } #else /* * This has been tuned to generate reasonable code on the vax using pcc. */ #define __sputc(c, p) \ (--(p)->_w < 0 ? \ (p)->_w >= (p)->_lbfsize ? \ (*(p)->_p = (c)), *(p)->_p != '\n' ? \ (int)*(p)->_p++ : \ __swbuf('\n', p) : \ __swbuf((int)(c), p) : \ (*(p)->_p = (c), (int)*(p)->_p++)) #endif More of the prefix of the messages: --- var.o --- In file included from /usr/src/bin/sh/var.c:70: In file included from /usr/src/bin/sh/myhistedit.h:35: In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/histedit.h:48: /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:255:6: warning: declaration of built-in function 'fprintf' requires inclusion of the header [-Wbuiltin-requires-header] int fprintf(FILE * __restrict, const char * __restrict, ...); ^ /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:260:6: warning: declaration of built-in function 'fscanf' requires inclusion of the header [-Wbuiltin-requires-header] int fscanf(FILE * __restrict, const char * __restrict, ...); ^ --- csh_make --- Building /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/rescue/rescue/usr/src/bin/csh/sh.init.o --- sh_make --- /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:284:6: warning: declaration of built-in function 'vfprintf' requires inclusion of the header [-Wbuiltin-requires-header] int vfprintf(FILE * __restrict, const char * __restrict, ^ /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:293:6: warning: declaration of built-in function 'vfscanf' requires inclusion of the header [-Wbuiltin-requires-header] int vfscanf(FILE * __restrict, const char * __restrict, __va_list) ^ /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:449:47: error: function definition is not allowed here static __inline int __sputc(int _c, FILE *_p) { ^ In file included from /usr/src/bin/sh/var.c:70: In file included from /usr/src/bin/sh/myhistedit.h:35: In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/histedit.h:254: In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/wchar.h:69: In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/_ctype.h:97: /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/runetype.h:96:1: error: function definition is not allowed here { ^ In file included from /usr/src/bin/sh/var.c:70: In file included from /usr/src/bin/sh/myhistedit.h:35: In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/histedit.h:254: In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/wchar.h:69: /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/_ctype.h:101:1: error: function definition is not allowed here { ^ . . . (much omitted) . . . === Mark Millard markmi at dsl-only.net ___ freebsd-toolchain@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"
[Bug 222641] www/firefox: OPTIMIZED_CFLAGS=off build fails: libgkrust.a: could not read symbols
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222641 Mikhail T.changed: What|Removed |Added CC||m...@aldan.algebra.com --- Comment #27 from Mikhail T. --- I just had this problem too trying to build 57.0_2,1, and was able to overcome it by setting the environment variable COMPILER_PATH to /opt/bin (/opt is what I use for LOCALBASE) and simply rerunning the build -- without cleaning and rebuilding. My options are: # This file is auto-generated by 'make config'. # Options for firefox-57.0_2,1 _OPTIONS_READ=firefox-57.0_2,1 _FILE_COMPLETE_OPTIONS_LIST=BUNDLED_CAIRO CANBERRA DBUS DEBUG DTRACE FFMPEG GCONF INTEGER_SAMPLES LIBPROXY OPTIMIZED_CFLAGS PROFILE TEST ALSA JACK PULSEAUDIO SNDIO OPTIONS_FILE_UNSET+=BUNDLED_CAIRO OPTIONS_FILE_UNSET+=CANBERRA OPTIONS_FILE_SET+=DBUS OPTIONS_FILE_UNSET+=DEBUG OPTIONS_FILE_UNSET+=DTRACE OPTIONS_FILE_SET+=FFMPEG OPTIONS_FILE_UNSET+=GCONF OPTIONS_FILE_UNSET+=INTEGER_SAMPLES OPTIONS_FILE_UNSET+=LIBPROXY OPTIONS_FILE_UNSET+=OPTIMIZED_CFLAGS OPTIONS_FILE_UNSET+=PROFILE OPTIONS_FILE_UNSET+=TEST OPTIONS_FILE_SET+=ALSA OPTIONS_FILE_UNSET+=JACK OPTIONS_FILE_UNSET+=PULSEAUDIO OPTIONS_FILE_UNSET+=SNDIO -- You are receiving this mail because: You are on the CC list for the bug. ___ freebsd-toolchain@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"