Trond Endrestøl
2012-Jun-04 08:53 UTC
cvsup{,d} woes after upgrading to RELENG_9 on amd64 this weekend
Hi, After upgrading to RELENG_9 as of yesterday on my amd64 system, cvsup bombs out with Bus error: 10. Example: # /usr/local/bin/cvsup -g -L 2 /usr/src/stable-supfile Parsing supfile "/usr/src/stable-supfile" Connecting to localhost Connected to localhost Server software version: SNAP_16_1h Negotiating file attribute support Exchanging collection information Establishing multiplexed-mode data connection Running Updating collection src-all/cvs Bus error: 10 The only recent change I can think of is switching to clang for building the kernel and base. Made I should rebuild world and kernel using gcc. Today, I used portupgrade -fprv lang/ezm3 net/cvsup-without-gui, but cvsup gives me the same result as in the example above. This bug also affects cvsupd for those of us who are running a local FreeBSD CVSup mirror (http://motoyuki.bsdclub.org/BSD/cvsup.html) on amd64/RELENG_9. I know csup is generally preferred over cvsup, and in the meantime I'm able to use csup with another local FreeBSD CVSup mirror running on i386/RELENG_8. cvsup on the amd64 box crashes with Bus error even when accessing the CVSup mirror on the i386 box, thus indicating a problem local to the amd64 box. I welcome any clues to solve this problem. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrest?l, | Trond Endrest?l, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gj?vik Technical College, Norway, | | tlf. dir. 61 14 54 39, | Office.....: +47 61 14 54 39, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+
Dimitry Andric
2012-Jun-04 09:33 UTC
cvsup{, d} woes after upgrading to RELENG_9 on amd64 this weekend
On 2012-06-04 10:53, Trond Endrest?l wrote:> After upgrading to RELENG_9 as of yesterday on my amd64 system, cvsup > bombs out with Bus error: 10....> The only recent change I can think of is switching to clang for > building the kernel and base. Made I should rebuild world and kernel > using gcc.Currently, the ezm3 port is broken for a world compiled with clang (or more specifically, for a world that uses SSE), see: http://www.freebsd.org/cgi/query-pr.cgi?pr=162588 The problem is that ezm3 doesn't correctly align the stack, causing certain routines in libz to crash, because clang emits SSE instructions in them, whilst assuming the stack is 16-byte aligned. This could also occur with any other compiler that uses SSE. Basically, ezm3 doesn't seem to respect the amd64 ABI. I haven't been able to fix ezm3's stack alignment; it is based on a very old branch of gcc, and I am not familiar with Modula-3 in general. Any assistance in this area will be greatly appreciated. That said, since the ezm3 software is essentially unmaintained, the only practical solutions to your problem currently are: - Compile libz without SSE - Compile libz with gcc - Use csup instead of cvsup - Fix ezm3 to respect the amd64 ABI - Rewrite cvsupd in C (this is left as an exercise for the reader ;)
Henri Hennebert
2012-Jun-04 09:34 UTC
cvsup{, d} woes after upgrading to RELENG_9 on amd64 this weekend
On 06/04/2012 10:53, Trond Endrest?l wrote:> Hi, > > After upgrading to RELENG_9 as of yesterday on my amd64 system, cvsup > bombs out with Bus error: 10. > > Example: > > # /usr/local/bin/cvsup -g -L 2 /usr/src/stable-supfile > Parsing supfile "/usr/src/stable-supfile" > Connecting to localhost > Connected to localhost > Server software version: SNAP_16_1h > Negotiating file attribute support > Exchanging collection information > Establishing multiplexed-mode data connection > Running > Updating collection src-all/cvs > Bus error: 10 > > The only recent change I can think of is switching to clang for > building the kernel and base. Made I should rebuild world and kernel > using gcc. >This is the culprit, you must compile libc and libz with gcc. See http://www.freebsd.org/cgi/query-pr.cgi?pr=162588 Henri> Today, I used portupgrade -fprv lang/ezm3 net/cvsup-without-gui, but > cvsup gives me the same result as in the example above. > > This bug also affects cvsupd for those of us who are running a local > FreeBSD CVSup mirror (http://motoyuki.bsdclub.org/BSD/cvsup.html) on > amd64/RELENG_9. > > I know csup is generally preferred over cvsup, and in the meantime I'm > able to use csup with another local FreeBSD CVSup mirror running on > i386/RELENG_8. > > cvsup on the amd64 box crashes with Bus error even when accessing the > CVSup mirror on the i386 box, thus indicating a problem local to the > amd64 box. > > I welcome any clues to solve this problem. > > > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
Trond Endrestøl
2012-Jun-04 09:44 UTC
cvsup{,d} woes after upgrading to RELENG_9 on amd64 this weekend
[I forgot to reply to the list, my bad] On Mon, 4 Jun 2012 11:42+0200, Trond Endrest?l wrote:> On Mon, 4 Jun 2012 11:28+0200, Henri Hennebert wrote: > > > On 06/04/2012 10:53, Trond Endrest?l wrote: > > > > > The only recent change I can think of is switching to clang for > > > building the kernel and base. Made I should rebuild world and kernel > > > using gcc. > > > > This is the culprit, you must compile libc and libz with gcc. > > > > See http://www.freebsd.org/cgi/query-pr.cgi?pr=162588 > > > > Henri > > Ah, that explains it. By disabling compression (-Z) I'm able to run > cvsup on the amd64 box using the CVSup mirror on the i386 box. I can > live with that. Hopefully the people working on clang will figure out > the details. Thanks.-- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrest?l, | Trond Endrest?l, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gj?vik Technical College, Norway, | | tlf. dir. 61 14 54 39, | Office.....: +47 61 14 54 39, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+
Hiroki Sato
2012-Jun-04 09:45 UTC
cvsup{, d} woes after upgrading to RELENG_9 on amd64 this weekend
Dimitry Andric <dim@freebsd.org> wrote in <4FCC80C7.8060802@FreeBSD.org>: di> That said, since the ezm3 software is essentially unmaintained, the di> only practical solutions to your problem currently are: di> di> - Compile libz without SSE di> - Compile libz with gcc di> - Use csup instead of cvsup di> - Fix ezm3 to respect the amd64 ABI di> - Rewrite cvsupd in C (this is left as an exercise for the reader ;) I have the same problem on my mirror server and currenly using a cvsup package for i386 on FreeBSD/amd64. -- Hiroki -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20120604/4b6e2e9f/attachment.pgp
Christer Solskogen
2012-Jun-04 20:20 UTC
cvsup{, d} woes after upgrading to RELENG_9 on amd64 this weekend
On 4/6/2012 10:53 AM, Trond Endrest?l wrote:> Hi, > > After upgrading to RELENG_9 as of yesterday on my amd64 system, cvsup > bombs out with Bus error: 10. >Why use cvsup, when you've got csup? :-) -- chs
Scot Hetzel
2012-Jun-05 08:17 UTC
cvsup{, d} woes after upgrading to RELENG_9 on amd64 this weekend
On Mon, Jun 4, 2012 at 4:34 AM, Henri Hennebert <hlh@restart.be> wrote:> On 06/04/2012 10:53, Trond Endrest?l wrote: >> >> Hi, >> >> After upgrading to RELENG_9 as of yesterday on my amd64 system, cvsup >> bombs out with Bus error: 10. >> >> Example: >> >> # /usr/local/bin/cvsup -g -L 2 /usr/src/stable-supfile >> Parsing supfile "/usr/src/stable-supfile" >> Connecting to localhost >> Connected to localhost >> Server software version: SNAP_16_1h >> Negotiating file attribute support >> Exchanging collection information >> Establishing multiplexed-mode data connection >> Running >> Updating collection src-all/cvs >> Bus error: 10 >> >> The only recent change I can think of is switching to clang for >> building the kernel and base. Made I should rebuild world and kernel >> using gcc. >> > This is the culprit, you must compile libc and libz with gcc. > > See http://www.freebsd.org/cgi/query-pr.cgi?pr=162588 >make.conf snipet from PR 162588: .if defined(WITH_CLANG) .if !defined(CC) || ${CC} == "cc" CC=clang .endif .if !defined(CXX) || ${CXX} == "c++" CXX=clang++ .endif .if !defined(CPP) || ${CPP} == "cpp" CPP=clang -E .endif NO_WERRORWERROR.endif # WITH_CLANG acccording to http://wiki.freebsd.org/BuildingFreeBSDWithClang#Quickstart, you should be using: CPP=clang-cpp If you change this , does it fix the issue? Scot