Re: poudriere-devel -S SRCPATH : no longer supported? (/usr/ports/ -r454407 vintage example)

2017-11-22 Thread Mark Millard
[Dumb typo in my } placements.]

On 2017-Nov-22, at 8:36 PM, Mark Millard  wrote:

> As evidence only two lines of jail.sh reference SRCPATH
> other than where -S assigns to it:
> 
> # grep "SRCPATH" /usr/local/share/poudriere/jail.sh
>   [ -z "${SRCPATH}" ] && DISTS="${DISTS} src"
>   [ -n "$SRCPATH" ] && jset ${JAILNAME} srcpath ${SRCPATH}
>   SRCPATH=${OPTARG}
> 
> Also, every non-comment instance of /usr/src in jail.sh
> is preceded by just ${JAILMNT} or ${SRC_BASE} or by
> nothing:
> 
> # grep "\/usr\/src" /usr/local/share/poudriere/jail.sh | more
>SRC_BASE="${JAILMNT}/usr/src"
>export SRC_BASE=${JAILMNT}/usr/src
># Otherwise it's the older broken one, so use the host /usr/src
>: ${XDEV_SRC:=/usr/src}
>msg_n "Copying ${SRC_BASE} to ${JAILMNT}/usr/src..."
>mkdir -p ${JAILMNT}/usr/src
>if [ -f ${SRC_BASE}/usr/src/.cpignore ]; then
>cpdup -i0 ${cpignore_flag} ${SRC_BASE} ${JAILMNT}/usr/src
>SRC_BASE="${JAILMNT}/usr/src"
> 
> 
> It leaves me wondering if some notation like:
> 
> ${SRCPATH:-${JAILMNT}}/usr/src

${SRCPATH:-${JAILMNT}/usr/src}

> should be in use in some places where
> 
> ${JAILMNT}/usr/src
> 
> is now in use. I'm no so sure that the
> analogous is appropriate for the one
> example of :
> 
> ${SRC_BASE}/usr/src


===
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 223809] archivers/zstd: clang 5.0 crashes during build

2017-11-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223809

Jan Beich  changed:

   What|Removed |Added

   Assignee|sunp...@freebsd.org |freebsd-toolchain@FreeBSD.o
   ||rg

--- Comment #1 from Jan Beich  ---
The preprocessed source/script doesn't trigger the crash. Maybe toolchain@
knows why.

-- 
You are receiving this mail because:
You are the assignee 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"


[Bug 223809] archivers/zstd: clang 5.0 crashes during build

2017-11-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223809

Jan Beich  changed:

   What|Removed |Added

   Hardware|Any |arm

-- 
You are receiving this mail because:
You are the assignee 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"


[Bug 223809] archivers/zstd: clang 5.0 crashes during build

2017-11-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223809

Mark Millard  changed:

   What|Removed |Added

 CC||mar...@dsl-only.net

--- Comment #2 from Mark Millard  ---
(In reply to Jan Beich from comment #1)

Is the clang crash reproducible? I've
had (rather rare) examples of
non-reproducable crashes in clang with
head -r325997 in an amd64 context --and
no reproducible crashes. The same for a
couple of system panics out of many
buildworld buildkernel sequences.

-r325700 which I was at before did not
get such things for me.

-- 
You are receiving this mail because:
You are the assignee 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"


poudriere-devel -S SRCPATH : no longer supported? (/usr/ports/ -r454407 vintage example)

2017-11-22 Thread Mark Millard
As evidence only two lines of jail.sh reference SRCPATH
other than where -S assigns to it:

# grep "SRCPATH" /usr/local/share/poudriere/jail.sh
[ -z "${SRCPATH}" ] && DISTS="${DISTS} src"
[ -n "$SRCPATH" ] && jset ${JAILNAME} srcpath ${SRCPATH}
SRCPATH=${OPTARG}

Also, every non-comment instance of /usr/src in jail.sh
is preceded by just ${JAILMNT} or ${SRC_BASE} or by
nothing:

# grep "\/usr\/src" /usr/local/share/poudriere/jail.sh | more
SRC_BASE="${JAILMNT}/usr/src"
export SRC_BASE=${JAILMNT}/usr/src
# Otherwise it's the older broken one, so use the host /usr/src
: ${XDEV_SRC:=/usr/src}
msg_n "Copying ${SRC_BASE} to ${JAILMNT}/usr/src..."
mkdir -p ${JAILMNT}/usr/src
if [ -f ${SRC_BASE}/usr/src/.cpignore ]; then
cpdup -i0 ${cpignore_flag} ${SRC_BASE} ${JAILMNT}/usr/src
SRC_BASE="${JAILMNT}/usr/src"


It leaves me wondering if some notation like:

${SRCPATH:-${JAILMNT}}/usr/src

should be in use in some places where

${JAILMNT}/usr/src

is now in use. I'm no so sure that the
analogous is appropriate for the one
example of :

${SRC_BASE}/usr/src


===
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 223809] archivers/zstd: clang 5.0 crashes during build

2017-11-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223809

--- Comment #3 from Jan Beich  ---
(In reply to Mark Millard from comment #2)
Not sure which revision beefy8 tracks but my head-armv6 jail is currently at
base r325700. I've jexec'd into poudriere jail to confirm port build vs. crash
script difference.

-- 
You are receiving this mail because:
You are the assignee 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"


[Bug 223809] archivers/zstd: clang 5.0 crashes during build

2017-11-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223809

--- Comment #4 from Jan Beich  ---
FWIW, head-armv7 from base r325705 isn't affected.

-- 
You are receiving this mail because:
You are the assignee 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"


[Bug 223809] archivers/zstd: clang 5.0 crashes during build

2017-11-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223809

--- Comment #5 from Jan Beich  ---
Created attachment 188201
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=188201&action=edit
preprocessed archive (contains several *.c and *.sh file)

This is supposedly crashing source. I suspect entropy_common-*.sh misses some
environment variables that actually trigger the crash.

-- 
You are receiving this mail because:
You are the assignee 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"


[Bug 223809] archivers/zstd: clang 5.0 crashes during build

2017-11-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223809

Jan Beich  changed:

   What|Removed |Added

 Attachment #188201|0   |1
is obsolete||

--- Comment #6 from Jan Beich  ---
Comment on attachment 188201
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=188201
preprocessed archive (contains several *.c and *.sh file)

Not related to make(1) or ports(7) environment. Simply running the same command
from comment 0 is enough to trigger the crash.

-- 
You are receiving this mail because:
You are the assignee 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"


[Bug 223809] archivers/zstd: clang 5.0 crashes during build

2017-11-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223809

--- Comment #7 from Jan Beich  ---
Doesn't crash with -O0. Here're steps to reproduce on -CURRENT for any
architecture:

$ cd /usr/ports/archivers/zstd
$ make clean patch BATCH=
$ cd `make -V WRKSRC)/programs`
$ cc -target armv6-unknown-freebsd12.0-gnueabihf -I../lib -I../lib/common
-I../lib/compress -I../lib/dictBuilder -DZSTD_NEWAPI -DXXH_NAMESPACE=ZSTD_   
-I../lib/legacy -DZSTD_MULTITHREAD -DZSTD_GZCOMPRESS -DZSTD_GZDECOMPRESS
-DZSTD_LZMACOMPRESS -DZSTD_LZMADECOMPRESS  -DZSTD_LEGACY_SUPPORT=4 -O2
../lib/compress/zstd_compress.c
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
cc: error: clang frontend command failed due to signal (use -v to see
invocation)

-- 
You are receiving this mail because:
You are the assignee 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"


[Bug 223809] archivers/zstd: clang 5.0 crashes during build

2017-11-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223809

--- Comment #8 from Jan Beich  ---
> $ cd `make -V WRKSRC)/programs`

Sorry for tcsh-style typo:

$ cd $(make -V WRKSRC)/programs

or

$ cd `make -V WRKSRC`/programs

-- 
You are receiving this mail because:
You are the assignee 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"