Re: cvsup{, d} woes after upgrading to RELENG_9 on amd64 this weekend

2012-06-05 Thread Henri Hennebert

On 06/05/2012 10:17, Scot Hetzel wrote:

On Mon, Jun 4, 2012 at 4:34 AM, Henri Hennebert  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_WERROR=
WERROR=
.endif # WITH_CLANG

acccording to http://wiki.freebsd.org/BuildingFreeBSDWithClang#Quickstart,
you should be using:

CPP=clang-cpp



I change this a while ago and it don't change the problem at hand

Henri


If you change this , does it fix the issue?

Scot



___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: cvsup{, d} woes after upgrading to RELENG_9 on amd64 this weekend

2012-06-05 Thread Scot Hetzel
On Mon, Jun 4, 2012 at 4:34 AM, Henri Hennebert  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_WERROR=
WERROR=
.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
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: cvsup{, d} woes after upgrading to RELENG_9 on amd64 this weekend

2012-06-04 Thread Trond Endrestøl
On Mon, 4 Jun 2012 22:19+0200, Christer Solskogen wrote:

> 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? :-)

If you read the OP you'll see I prefer to run and use a local CVSup 
mirror. Thus, I need a working cvsupd on the amd64 box. Whether I use 
cvsup or csup doesn't really matter. Problem solved by continuing to 
use GCC instead of clang when building world & kernel.

-- 
+---++
| 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.  |
+---++___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: cvsup{, d} woes after upgrading to RELENG_9 on amd64 this weekend

2012-06-04 Thread Christer Solskogen

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


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: cvsup{, d} woes after upgrading to RELENG_9 on amd64 this weekend

2012-06-04 Thread Hiroki Sato
Dimitry Andric  wrote
  in <4fcc80c7.8060...@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


pgpEvSTVjMeKL.pgp
Description: PGP signature


Re: cvsup{,d} woes after upgrading to RELENG_9 on amd64 this weekend

2012-06-04 Thread Trond Endrestøl
[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.  |
+---++___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: cvsup{, d} woes after upgrading to RELENG_9 on amd64 this weekend

2012-06-04 Thread Henri Hennebert

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-unsubscr...@freebsd.org"


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: cvsup{, d} woes after upgrading to RELENG_9 on amd64 this weekend

2012-06-04 Thread Dimitry Andric
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 ;)

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


cvsup{,d} woes after upgrading to RELENG_9 on amd64 this weekend

2012-06-04 Thread Trond Endrestøl
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.  |
+---++___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"