Re: Compiling kernel with gcc43 [SOLVED]

2010-04-02 Thread Mario Lobo
On Thursday 01 April 2010 16:53:36 Pegasus Mc Cleaft wrote:
 On Thursday 01 April 2010 15:27:41 Oliver Fromme wrote:
  Mario Lobo l...@bsd.com.br wrote:
[...]
It's compiling right now.
   
I'll post my findings and impressions on results and performance right
after the next reboot.
 
  So, how is it going?  Any benchmarks yet?  I'm curious
  if the new gcc version will really make a significant
  difference.
 
   I would love to see the /etc/make.conf,  /etc/src.conf and
 /etc/libmap.conf files that were used for the build. I have tried compiling
  in VBox a current kernel and world, but it usually just bombs out for me.
  I would like to give this a go as well.
 
 Peg
 

Well, to tell the truth I wasn't that thrilled with the results. I didn't 
benchmark anything by my impressions were that at least disk access was a bit 
slower not only during booting but it was more noticeable to me particularly  
on a burning DVD session. Of course this is ultra abstract. 

In all previous experiences I had in burning CD/DVD with k3b, I recollect that 
during burning, the software buffer and device buffer gouges were always 100%, 
with the software buffer gouge dropping down occasionally to 89/92%.

After recompiling the kernel with gcc43, the software buffer was always empty 
and the device buffer rarely reached 40/50%. I think (if not mistaken) this 
means that the device is asking where is my data?? and the OS is not 
providing it fast enough.

I could not get world to build with gcc43 so I gave that up. Then I moved on 
to VirtualBox. I managed to have it compiled and running. After long trial and 
error sessions, I could pin point what was breaking compilation and fixed it. 
Here are the steps:

--

Compiling vbox/vbox-devel with gcc43

1) /usr/include/cam/cam.h needed #include stdio.h for FILE define, 
complained by: 

 
work/VirtualBox-3.1.51.r27657_OSE/src/VBox/Main/freebsd/HostHardwareFreeBSD.cpp:47:
 /usr/include/cam/cam.h:246: error: 'FILE' has not been declared

2)/usr/ports/emulators/virtualbox-
ose/work/VirtualBox-3.1.6_OSE/src/VBox/Main/generic/NetIf-generic.cpp 
  needed #include stdio.h because of popen() (this step is ONLY for 
virtualbox-ose)

3)/usr/ports/emulators/virtualbox-ose(-
devel)/work/VirtualBox-3.1.6_OSE/src/VBox/Main/freebsd/NetIf-freebsd.cpp 
  needed #include stdlib.h because of malloc()/free()

4) Config.kmk needed some tweaks:

  a) line 1750 - $(APPEND) '$@' 'VBOX_GCC_mtune-generic ?= $(call 
VBOX_GCC_CHECK_CC,-mtune=amdfam10 -D__FreeBSD_cc_version=0,)' 
 to use instructions closer to Phenom and avoid cc complains.
  b) took out all references to -fformat-extensions and -fno_format-
extensions
  c) Preceeded all relevant locations of /usr/lib \ with 
/usr/local/lib/gcc43 \ so kbuild searched there for libraries first.
(except TEMPLATE_VBOXQT4GUIEXE_LIBPATH !)

  d) You can use the same Config.kmk for building kmods as well

5) took out -fformat-extensions from src/sys/conf/kern.mk

And I left /etc/libmap.conf 

libgcc_s.so.1   gcc43/libgcc_s.so.1
libgomp.so.1gcc43/libgomp.so.1
libobjc.so.3gcc43/libobjc.so.2
libssp.so.0 gcc43/libssp.so.0
libstdc++.so.6  gcc43/libstdc++.so.6

/etc/make.conf 

CC=/usr/local/bin/gcc43
CXX=/usr/local/bin/g++43
CPP=/usr/local/bin/cpp43
CFLAGS+=-mssse3 -D__FreeBSD_cc_version=0
CXXFLAGS+=-D__FreeBSD_cc_version=0
CPUTYPE=amdfam10
#MAKEOPTS+= -j4


and /etc/src.conf

NO_WERROR=
WERROR=


--

New problems started to come when I tried to extend this to other ports, 
breaking a lot of them, to point of making me revert everything back to what 
it was. In fact I am still in this process right now, and reving a lot of 
problems to rebuild kde4.

This is it for now, guys. If you find anything new, please post.

Best of luck,

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43 [SOLVED] -ADDENDUM

2010-04-02 Thread Mario Lobo
Well, to tell the truth I wasn't that thrilled with the results. I didn't 

[snip]
--

Compiling vbox/vbox-devel with gcc43

1) /usr/include/cam/cam.h needed #include stdio.h for FILE define, 
complained by: 

[snip]

and /etc/src.conf

NO_WERROR=
WERROR=


--

New problems started to come when I tried to extend this to other ports, 

[snip]


You have to:

1) make patch
2) apply the mods
3) make


Best of luck, again

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43 [SOLVED]

2010-04-01 Thread Oliver Fromme
Mario Lobo l...@bsd.com.br wrote:
  [...]
  It's compiling right now.
  
  I'll post my findings and impressions on results and performance right after 
  the next reboot.

So, how is it going?  Any benchmarks yet?  I'm curious
if the new gcc version will really make a significant
difference.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

UNIX was not designed to stop you from doing stupid things,
because that would also stop you from doing clever things.
-- Doug Gwyn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43 [SOLVED]

2010-04-01 Thread Pegasus Mc Cleaft
On Thursday 01 April 2010 15:27:41 Oliver Fromme wrote:
 Mario Lobo l...@bsd.com.br wrote:
   [...]
   It's compiling right now.
  
   I'll post my findings and impressions on results and performance right
   after the next reboot.
 
 So, how is it going?  Any benchmarks yet?  I'm curious
 if the new gcc version will really make a significant
 difference.

I would love to see the /etc/make.conf,  /etc/src.conf and 
/etc/libmap.conf files that were used for the build. I have tried compiling in 
VBox a current kernel and world, but it usually just bombs out for me. I would 
like to give this a go as well. 

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


Re: Compiling kernel with gcc43 [SOLVED]

2010-04-01 Thread Vlad Galu
On Thu, Apr 1, 2010 at 6:27 PM, Oliver Fromme o...@lurza.secnetix.de wrote:
 Mario Lobo l...@bsd.com.br wrote:
   [...]
   It's compiling right now.
  
   I'll post my findings and impressions on results and performance right 
 after
   the next reboot.

 So, how is it going?  Any benchmarks yet?  I'm curious
 if the new gcc version will really make a significant
 difference.


I'm not as worried about performance as I am about compatibilty.
Various software suites have started using newer GCCisms in their
code. One example I can give from the top of my head is Wt
(www.webtoolkit.eu), which compiles with 4.4, but not with 4.2. I
shamefully haven't dug any deeper to check which particular
syntactical construct offended 4.2.

Yes, one might say, after all it's the upstream developers who ought
to make sure their software compiles on FreeBSD, but some aditional
overhead on the shoulders of our port maintainers should be expected.

 Best regards
   Oliver

 --
 Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
 Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
 secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
 chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

 FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

 UNIX was not designed to stop you from doing stupid things,
 because that would also stop you from doing clever things.
        -- Doug Gwyn
 ___
 freebsd-hack...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org




-- 
Good, fast  cheap. Pick any two.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43

2010-03-25 Thread Mario Lobo
2010/3/24 Mario Lobo l...@bsd.com.br

 Hi;

 I followed the instructions from
 http://www.freebsd.org/doc/en/articles/custom-gcc/article.html

 to see if I can achieve some performance gain (8-STABLE r205630 amd64) and
 also get a more modern instruction set for my Phenom II (amdfam10), so I've
 done the following config settings:

 make.conf

 .if !empty(.CURDIR:M/usr/ports/*)  exists(/usr/local/bin/gcc43)
 CC=/usr/local/bin/gcc43
 CXX=/usr/local/bin/g++43
 CPP=/usr/local/bin/cpp43
 CFLAGS+=-mssse3
 CPUTYPE=amdfam10
 .endif

 libmap.conf

 libgcc_s.so.1   gcc43/libgcc_s.so.1
 libgomp.so.1gcc43/libgomp.so.1
 libobjc.so.3gcc43/libobjc.so.2
 libssp.so.0 gcc43/libssp.so.0
 libstdc++.so.6  gcc43/libstdc++.so.6


 buildworld goes on normally it seems, but when I tried to build the kernel,
 the first stop came from the option used by the kernel build -fformat-
 extensions, which is not accepted by gcc43, so I took it out of
 /usr/src/sys/conf/kern.mk, the ONLY place I found it.

 It seemed to solve the problem until gcc43 stopped because of the -Werror
 option, which is all over the place!. Funny that gcc42 (used by default)
 doesn't stop because of this option.

 Anyway,my question boils down to: Is there a way to build the kernel with
 gcc43, with minimal tweaking? Am i attempting something out of my league?

 Thanks,
 --
 Mario Lobo


Any suggestions/Comments?

Should I just dump the gcc43 idea and try this with clang/llvm?

I've seen http://wiki.freebsd.org/BuildingFreeBSDWithClang.

Anything else to watch out for when building world/kernel/ports?

Thanks,
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43

2010-03-25 Thread Ryan Stone
If you just want to try it out you could disable -Werror for your own
build.  The reason that gcc 4.3 fails where 4.2 works fine is that the
gcc developers are adding new warnings with every compiler release, so
until somebody takes the time to fix all of the new warnings you won't
be able to build the kernel with -Werror.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43

2010-03-25 Thread Mario Lobo
2010/3/25 Ryan Stone ryst...@gmail.com

 If you just want to try it out you could disable -Werror for your own
 build.  The reason that gcc 4.3 fails where 4.2 works fine is that the
 gcc developers are adding new warnings with every compiler release, so
 until somebody takes the time to fix all of the new warnings you won't
 be able to build the kernel with -Werror.


All right !! Thanks for replying !

There are a lot of locations throughout the source code where -Werror is
enabled
How can I disable -Werror globally? via src.conf ? will it do it for
world/kernel?
will this damage the resulting kernel/world binaries?

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43

2010-03-25 Thread Ryan Stone
-Wnoerror should disable it, but I don't know enough about the FreeBSD
build infrastructure to tell you where it needs to go.  Worst comes to
worst you can just delete all of the -Werrors.

Disabling -Werror will not cause any problems.  -Werror means treat
warnings as errors.  It's very useful for development but in your
case, where you're starting with a known good source tree with no
warnings with earlier compilers, it's not necessary to have the option
enabled.  If the warnings are pointing to legitimate bugs, those bugs
also exist in a kernel built by gcc 4.2, so your kernel can't be any
worse than what you already have.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43

2010-03-25 Thread Andrius Morkūnas

On Thu, 25 Mar 2010 18:24:10 +0200, Mario Lobo l...@bsd.com.br wrote:

Should I just dump the gcc43 idea and try this with clang/llvm?

I've seen http://wiki.freebsd.org/BuildingFreeBSDWithClang.

Anything else to watch out for when building world/kernel/ports?


ClangBSD had little to no runtime testing, so you should be careful
with it. I'm not saying it won't work, but make sure you have backups
in case something goes wrong.

Also, if you just want to build the kernel, you don't need ClangBSD,
you can just install llvm-devel from ports and use

make CC=/usr/local/bin/clang buildkernel

Some people ran or are running their systems with clang compiled kernel.
You should still be careful, and some things (like snd_hda on amd64)
are known to have problems.

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


Re: Compiling kernel with gcc43

2010-03-25 Thread Garrett Cooper
On Thu, Mar 25, 2010 at 10:18 AM, Mario Lobo l...@bsd.com.br wrote:
 2010/3/25 Ryan Stone ryst...@gmail.com

 If you just want to try it out you could disable -Werror for your own
 build.  The reason that gcc 4.3 fails where 4.2 works fine is that the
 gcc developers are adding new warnings with every compiler release, so
 until somebody takes the time to fix all of the new warnings you won't
 be able to build the kernel with -Werror.


 All right !! Thanks for replying !

 There are a lot of locations throughout the source code where -Werror is
 enabled
 How can I disable -Werror globally? via src.conf ? will it do it for
 world/kernel?
 will this damage the resulting kernel/world binaries?

-Wno-error .
-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43

2010-03-25 Thread Bruce Cran
On Thu, Mar 25, 2010 at 02:18:34PM -0300, Mario Lobo wrote:

 All right !! Thanks for replying !
 
 There are a lot of locations throughout the source code where -Werror is
 enabled
 How can I disable -Werror globally? via src.conf ? will it do it for
 world/kernel?
 will this damage the resulting kernel/world binaries?

You should be able to use NO_WERROR in src.conf to prevent -Werror 
being used.

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


Re: Compiling kernel with gcc43

2010-03-25 Thread Edward Tomasz Napierała
Wiadomość napisana przez Mario Lobo w dniu 2010-03-25, o godz. 17:24:
 2010/3/24 Mario Lobo l...@bsd.com.br
 
 Anyway,my question boils down to: Is there a way to build the kernel with
 gcc43, with minimal tweaking? Am i attempting something out of my league?

This is what I use to compile kernel on 9.0-CURRENT/amd64:

CC=/usr/local/bin/gcc44
CXX=   /usr/local/bin/g++44
CWARNFLAGS=-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
   -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
   -Wno-pointer-sign -D__FreeBSD_cc_version=0 \
   -Wno-unused-function -Wno-inline -Wno-format \
   -Wno-uninitialized -Wno-array-bounds -Wno-missing-prototypes

Note that this is GCC 4.4.4, installed from ports.  Also, this will not
compile the world - only the kernel.  Also, they were a few fixes to make
this work; they were not MFC-ed, iirc; removing -Werror altogether should
work around these problems.

--
If you cut off my head, what would I say?  Me and my head, or me and my body?

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


Re: Compiling kernel with gcc43 [SOLVED]

2010-03-25 Thread Mario Lobo
On Thursday 25 March 2010 19:12:09 Edward Tomasz Napierała wrote:
 Wiadomość napisana przez Mario Lobo w dniu 2010-03-25, o godz. 17:24:
  2010/3/24 Mario Lobo l...@bsd.com.br
 
  Anyway,my question boils down to: Is there a way to build the kernel
  with gcc43, with minimal tweaking? Am i attempting something out of my
  league?
 
 This is what I use to compile kernel on 9.0-CURRENT/amd64:
 
 CC=/usr/local/bin/gcc44
 CXX=   /usr/local/bin/g++44
 CWARNFLAGS=-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
  \ -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
  -Wno-pointer-sign -D__FreeBSD_cc_version=0 \
-Wno-unused-function -Wno-inline -Wno-format \
-Wno-uninitialized -Wno-array-bounds -Wno-missing-prototypes
 
 Note that this is GCC 4.4.4, installed from ports.  Also, this will not
 compile the world - only the kernel.  Also, they were a few fixes to make
 this work; they were not MFC-ed, iirc; removing -Werror altogether should
 work around these problems.
 
 --
 If you cut off my head, what would I say?  Me and my head, or me and my
  body?
 

Adding 

NO_WERROR=
WERROR=

to src.conf did it. It's compiling right now.

I'll post my findings and impressions on results and performance right after 
the next reboot.

Thanks for all the help and info, Guys !!

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: compiling kernel with PAE

2008-01-21 Thread David Robillard
 Getting an error when trying to compile a kernel on 5.4 and 6.2 with the
 PAE option. I've tried NO_MODULES in make.conf as well...

 se2 -ffreestanding -Werror  /usr/src/sys/dev/advansys/advansys.c
 /usr/src/sys/dev/advansys/advansys.c: In function `adv_action':
 /usr/src/sys/dev/advansys/advansys.c:260: warning: cast from pointer to 
 integer of different size
 *** Error code 1

 Stop in /usr/obj/usr/src/sys/WEBTENT.
 *** Error code 1

 Stop in /usr/src.
 *** Error code 1

 Stop in /usr/src.

 This is a custom kernel build with the QUOTA option, I take out the PAE
 option and all makes fine. I did a src-all update with RELENG_VER tag
 prior to building. I assume this is a driver issue compatible with PAE?

 Also, can I run amd64 release on this Intel Xeon dual proc with 6GB RAM?
 Thinking about loading 6.3 amd64 if possible. Excuse my ignorance, I am
 not a hardware guy, I am a programmer.

 CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.12-MHz 686-class CPU)
   Origin = GenuineIntel  Id = 0xf41  Stepping = 1
   
 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
 MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
   Features2=0x641dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,b14
   AMD Features=0x2010NX,LM
   Logical CPUs per core: 2

According to http://www.freebsd.org/platforms/amd64.html the Intel
Xeon (3000-sequence, 5000-sequence, and 7000-sequence) processors use
the Intel(R)64 architecture.
Therefore if your Intel Xeon is in the 3000-sequence, 5000-sequence or
7000-sequence, then you can use FreeBSD/amd64 and use the memory above
4Gb. IMHO it should be more simple and efficient than compiling a
kernel with PAE support.

HTH,

David
-- 
David Robillard
UNIX systems administrator  Oracle DBA
CISSP, RHCE  Sun Certified Security Administrator
Montreal: +1 514 966 0122
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel with PAE

2008-01-21 Thread Pieter de Goeje
On Monday 21 January 2008, David Robillard wrote:
  Getting an error when trying to compile a kernel on 5.4 and 6.2 with the
  PAE option. I've tried NO_MODULES in make.conf as well...
 
  se2 -ffreestanding -Werror  /usr/src/sys/dev/advansys/advansys.c
  /usr/src/sys/dev/advansys/advansys.c: In function `adv_action':
  /usr/src/sys/dev/advansys/advansys.c:260: warning: cast from pointer to
  integer of different size *** Error code 1
 
  Stop in /usr/obj/usr/src/sys/WEBTENT.
  *** Error code 1
 
  Stop in /usr/src.
  *** Error code 1
 
  Stop in /usr/src.
 
  This is a custom kernel build with the QUOTA option, I take out the PAE
  option and all makes fine. I did a src-all update with RELENG_VER tag
  prior to building. I assume this is a driver issue compatible with PAE?
 
  Also, can I run amd64 release on this Intel Xeon dual proc with 6GB RAM?
  Thinking about loading 6.3 amd64 if possible. Excuse my ignorance, I am
  not a hardware guy, I am a programmer.
 
  CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.12-MHz 686-class CPU)
Origin = GenuineIntel  Id = 0xf41  Stepping = 1
   
  Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,
 MCA,C MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
Features2=0x641dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,b14
AMD Features=0x2010NX,LM
Note the LM feature here:^^
This means the CPU supports Long Mode, which basically means the cpu 
supports the 64bit extensions needed for FreeBSD/amd64.

Logical CPUs per core: 2

 According to http://www.freebsd.org/platforms/amd64.html the Intel
 Xeon (3000-sequence, 5000-sequence, and 7000-sequence) processors use
 the Intel(R)64 architecture.
 Therefore if your Intel Xeon is in the 3000-sequence, 5000-sequence or
 7000-sequence, then you can use FreeBSD/amd64 and use the memory above
 4Gb. IMHO it should be more simple and efficient than compiling a
 kernel with PAE support.

 HTH,

 David

- Pieter de Goeje
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel with PAE

2008-01-20 Thread Josh Paetzel
On Saturday 19 January 2008 06:15:15 pm Robert Fitzpatrick wrote:
 Getting an error when trying to compile a kernel on 5.4 and 6.2 with the
 PAE option. I've tried NO_MODULES in make.conf as well...

 se2 -ffreestanding -Werror  /usr/src/sys/dev/advansys/advansys.c
 /usr/src/sys/dev/advansys/advansys.c: In function `adv_action':
 /usr/src/sys/dev/advansys/advansys.c:260: warning: cast from pointer to
 integer of different size *** Error code 1

 Stop in /usr/obj/usr/src/sys/WEBTENT.
 *** Error code 1

 Stop in /usr/src.
 *** Error code 1

 Stop in /usr/src.

 This is a custom kernel build with the QUOTA option, I take out the PAE
 option and all makes fine. I did a src-all update with RELENG_VER tag
 prior to building. I assume this is a driver issue compatible with PAE?

 Also, can I run amd64 release on this Intel Xeon dual proc with 6GB RAM?
 Thinking about loading 6.3 amd64 if possible. Excuse my ignorance, I am
 not a hardware guy, I am a programmer.

 CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.12-MHz 686-class CPU)
   Origin = GenuineIntel  Id = 0xf41  Stepping = 1
  
 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MC
A,C MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
   Features2=0x641dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,b14
   AMD Features=0x2010NX,LM
   Logical CPUs per core: 2

PAE is a horrible hack, and even if you figured out why it won't compile 
(probably an incompatable driver in your kernel) it's slow.  That particular 
CPU will run FreeBSD/amd64 just fine.  (I happen to have one)  The drawbacks 
to FreeBSD/amd64 are mainly in the desktop arena.  If this is a server I'd go 
for it.

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


Re: compiling kernel problem

2007-05-27 Thread Roland Smith
On Sun, May 27, 2007 at 01:51:42PM -0300, Anton Galitch wrote:
  Hi I have a problem while compiling my kernel. When I go to /usr/src then
  make buildkernel ...
  it says that make doesnt know what to do because buildkernel is invalid
  option.
 
  I downloaded the latest source and still the same.
  In /usr/src there is only sys/ directory.

How did you download the source? There should be a lot more in /usr/src.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgp7vkilNDGmt.pgp
Description: PGP signature


Re: compiling kernel problem

2007-05-27 Thread Abdullah Ibn Hamad Al-Marri

On 5/27/07, Anton Galitch [EMAIL PROTECTED] wrote:

Hi I have a problem while compiling my kernel. When I go to /usr/src then
make buildkernel ...
it says that make doesnt know what to do because buildkernel is invalid
option.

I downloaded the latest source and still the same.
In /usr/src there is only sys/ directory.

Thanks for any help.

--
http://feudaltimes.com.ar - Webmaster, designer and programmer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



You need to check to do csup -L 2 /usr/share/examples/cvsup/stable-supfile

Also choose the mirror you need and edit the stable-supfile.

If you are using older version than 6.1 use cvsup.

--
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel problem

2007-05-27 Thread Anton Galitch

I downloaded the source using sysinstall via ftp


--
http://feudaltimes.com.ar - Webmaster, designer and programmer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[SOLVED] Re: compiling kernel problem

2007-05-27 Thread Anton Galitch

Thanks for your help i could get needed files using csup.

On 5/27/07, Anton Galitch [EMAIL PROTECTED] wrote:


I downloaded the source using sysinstall via ftp


--
http://feudaltimes.com.ar - Webmaster, designer and programmer





--
http://feudaltimes.com.ar - Webmaster, designer and programmer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel problem

2007-05-27 Thread Conrad J. Sabatier
On Sun, 27 May 2007 20:23:39 +0300
Abdullah Ibn Hamad Al-Marri [EMAIL PROTECTED] wrote:

 On 5/27/07, Anton Galitch [EMAIL PROTECTED] wrote:
  Hi I have a problem while compiling my kernel. When I go
  to /usr/src then make buildkernel ...
  it says that make doesnt know what to do because buildkernel is
  invalid option.
 
  I downloaded the latest source and still the same.
  In /usr/src there is only sys/ directory.
 
  Thanks for any help.
 
  --
  http://feudaltimes.com.ar - Webmaster, designer and programmer
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]
 
 
 You need to check to do csup -L
 2 /usr/share/examples/cvsup/stable-supfile
 
 Also choose the mirror you need and edit the stable-supfile.

If you set the relevant variables in /etc/make.conf, and use make
update, then you do not have to edit the sample supfile:

From the sample file /usr/share/examples/etc/make.conf (be sure to
uncomment anything you change):

#SUP_UPDATE=
#SUP=/usr/bin/csup
#SUPFLAGS=   -g -L 2
#SUPHOST=cvsup.uk.FreeBSD.org
#SUPFILE=/usr/share/examples/cvsup/standard-supfile
#PORTSSUPFILE=   /usr/share/examples/cvsup/ports-supfile
#DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile

 If you are using older version than 6.1 use cvsup.

FWIW, if you want to checkout the actual CVS repository, you still need
to use cvsup as well.  Unfortunately, csup does not yet support CVS
mode.

-- 
Conrad J. Sabatier [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Compiling Kernel Modules

2006-08-16 Thread Daniel Gerzo
Hello Lawrence,

Wednesday, August 16, 2006, 10:21:27 PM, you wrote:

 I hope this is the correct list for this question but ..

 I am trying NOT to compile certain modules when I create
 my own custom kernel. I thought /etc/make.conf with the
 directive WITHOUT_MODULES did what I was expecting but
 it does not.

Actually, WITHOUT_MODULES is a list of modules you want to exclude
from the build.

You are looking for MODULES_OVERRIDE directive.

Please refer to the make.conf(5) manual page.

 So, how do I leave out certain modules when custom
 compile a new kernel?

 Thanks ..

-- 
Best regards,
 Danielmailto:[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Compiling Kernel Modules

2006-08-16 Thread LDB

Daniel Gerzo wrote:

Hello Lawrence,

Wednesday, August 16, 2006, 10:21:27 PM, you wrote:



I hope this is the correct list for this question but ..




I am trying NOT to compile certain modules when I create
my own custom kernel. I thought /etc/make.conf with the
directive WITHOUT_MODULES did what I was expecting but
it does not.



Actually, WITHOUT_MODULES is a list of modules you want to exclude
from the build.

You are looking for MODULES_OVERRIDE directive.

Please refer to the make.conf(5) manual page.



So, how do I leave out certain modules when custom
compile a new kernel?




Thanks ..





CRAP I read it wrong... Thanks Daniel ..

LDB
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Compiling Kernel for Computer with 2 CPUs

2006-05-27 Thread Lukas Razik

Hello!

You need this option/device in your KERNCONF file:
options SMP
device  apic

For better performance comment out SCHED_4BSD:
#options SCHED_4BSD
And take this:
options SCHED_ULE

You could also try these optimizations:
makeoptions COPTFLAGS=-O2 -pipe -funroll-loops -ffast-math

Read this:
http://www.de.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
http://www.silverwraith.com/papers/freebsd-kernel.php



Another thing, is it a good box for running a webserver with mysql-database
or should I buy one?


Normally it is but it depends on the load...
And more important than the number of CPUs could be the RAM...

Regards,
Lukas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel

2005-08-30 Thread [EMAIL PROTECTED]
On Tue, 30 Aug 2005 16:14:25 -0500
Efren Bravo [EMAIL PROTECTED] wrote:

 Trying to compile the kernel I found this problem:
 
  My PC has not ISA slot and I want to disable it from
 /sys/i386/conf/MYKERNEL but on /boot/device.hints I found some devices
 pointing to isa.   

from GENERIC

# Bus support.  Do not remove isa, even if you have no isa slots
device  isa
device  eisa
device  pci

normally i only comment out eisa

  Can I remove those devices declarations? Because for example my pc
 doesn't have SCSI but what can I do with ata, fdc, ppc, sio, vga, psm and
 atkbdc devices? Can I also remove them?

no scsi ? yes, i think you can remove all scsi-card lines, but some
scsi-device lines might be needed for burning cdroms and dvds, R.T. Fine
M. see the handbook about burning cd/dvd if you need that

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel

2005-08-30 Thread Glenn Dawson

At 02:14 PM 8/30/2005, Efren Bravo wrote:

Hi,

Trying to compile the kernel I found this problem:

 My PC has not ISA slot and I want to disable it from
/sys/i386/conf/MYKERNEL but on /boot/device.hints I found some devices
pointing to isa.

 Can I remove those devices declarations? Because for example my pc
doesn't have SCSI but what can I do with ata, fdc, ppc, sio, vga, psm and
atkbdc devices? Can I also remove them?


You can remove devices that you don't have, but you need to leave the 
isa device in the kernel.


-Glenn



 Thanks a lot...


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel

2005-08-30 Thread Robert Slade
On Tue, 2005-08-30 at 22:14, Efren Bravo wrote:
 Hi,
 
 Trying to compile the kernel I found this problem:
 
  My PC has not ISA slot and I want to disable it from
 /sys/i386/conf/MYKERNEL but on /boot/device.hints I found some devices
 pointing to isa.   
   
  Can I remove those devices declarations? Because for example my pc
 doesn't have SCSI but what can I do with ata, fdc, ppc, sio, vga, psm and
 atkbdc devices? Can I also remove them?
 
  Thanks a lot...
 
Efren,

See the handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html

In particular it says to not remove isa support even if you have no isa.

Rob

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel

2005-08-30 Thread Kevin Kinsey

Efren Bravo wrote:


Hi,

Trying to compile the kernel I found this problem:

My PC has not ISA slot and I want to disable it from
/sys/i386/conf/MYKERNEL but on /boot/device.hints I found some devices
pointing to isa.   
 
Can I remove those devices declarations? Because for example my pc

doesn't have SCSI but what can I do with ata, fdc, ppc, sio, vga, psm and
atkbdc devices? Can I also remove them?

Thanks a lot...

 



If you think you have a machine that will run without drivers for
an ATA disk controller, a Floppy Disk Controller, a Parallel Port
Chipset driver, any serial communications (sio), a video console (vga),
a mouse, and a keyboard, then by all means go ahead and try it. 
BUT if I were you I'd do man ata, man fdc, man ppc, etc. and see

what those things do before I remove them from my kernel.

((In other words, leave it all in!!!)

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel

2005-01-24 Thread Oliver Leitner
$ which perl5
/usr/local/bin/perl5
$ perl5 --version

This is perl, v5.8.5 built for i386-freebsd-64int

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

Thats my info on perl5, which tells me, that i prolly installed it through 
the ports collection (hence /usr/local...), and that its the perl version 
5.8.5 from there...

maybe you just havent the right perl installed?

but i cant put my hand into the fire for this, after all im new to bsd=)

Greetings
Oliver Leitner
Technical Staff
http://www.shells.at

On Monday 24 January 2005 15:13, Josip wrote:
 Let me first just say that I'm new to FreeBSD. I'm tring to compile a
 custom kernel and when I do make buildkernel KERNCONF=NEWKERN  I get
 this:
 perl5 /usr/src/sys/kern/vnode_if.pl -h /usr/src/sys/kern/vnode_if.src
 perl5:No such file or directory.

 Both files are in the specified dir.

 When I run the above command manualy it execues OK and creates the file
 vnode_if.h in pwd.

 What am I doing wrong?

 Thanks!

 PS Also if I do make buildkernel KERNCONF=GENERIC I get the same error!
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

-- 
By reading this mail you agree to the following:

using or giving out the email address and any 
other info of the author of this email is strictly forbidden.
By acting against this agreement the author of this mail 
will take possible legal actions against the abuse.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel

2005-01-24 Thread Kris Kennaway
On Mon, Jan 24, 2005 at 03:13:32PM +0100, Josip wrote:
 Let me first just say that I'm new to FreeBSD. I'm tring to compile a 
 custom kernel and when I do make buildkernel KERNCONF=NEWKERN  I get  
 this:
 perl5 /usr/src/sys/kern/vnode_if.pl -h /usr/src/sys/kern/vnode_if.src
 perl5:No such file or directory.
 
 Both files are in the specified dir.
 
 When I run the above command manualy it execues OK and creates the file 
 vnode_if.h in pwd.
 
 What am I doing wrong?

Did you run 'make buildworld' first as explained in the docs?  Also,
you forgot to mention what version of FreeBSD you're running.

Kris

pgpwXhY9Kg7sk.pgp
Description: PGP signature


Re: compiling kernel :(

2004-03-31 Thread Martin Welk
On Tue, Mar 30, 2004 at 07:30:22PM -0500, Brian G. wrote:

 im pretty new to freebsd
 got it about two weeks ago
 now i've been trying to get kazaa on my box so i have installed wine, but 
 whenever i try to run it i get an error and a question wheter i have added 
 USER_LDT option to my kernel
 which brings me to my current problem
(...)
 /usr/src/sys/dev/usb/if_aue.c:769: undefined reference to `mii_phy_probe'
 if_aue.o: In function `aue_tick':
 /usr/src/sys/dev/usb/if_aue.c:1116: undefined reference to `mii_tick'
 /usr/src/sys/dev/usb/if_aue.c:1118: undefined reference to `mii_pollstat'
 if_aue.o: In function `aue_init':
(...)
 # PCI Ethernet NICs that use the common MII bus controller code.
 # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
   =
(...)
 # ISA Ethernet NICs.
 # 'device ed' requires 'device miibus'
===
(...)
 # USB Ethernet, requires mii
  
(...)

But, at all, no device miibus line in your kernel config file - and
that's where the above error messages come from.

So, please add device miibus again and take care of that sort of
warnings, they're there for a reason :)

Regards,
Martin
-- 
  ,,Oh, there's a lot of opportunities, if you're knowing to take them,
  you know, there's a lot of opportunities, if there aren't
you can make them, make or break them!'' (Tennant/Lowe)

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel :(

2004-03-30 Thread Don
 whenever i try to run it i get an error and a question wheter i have added
 USER_LDT option to my kernel
 which brings me to my current problem
 whenever i attempt to compile my kernel i get this after a while :
The answer to your question is in the file you sent:

 umass.o:/usr/src/sys/dev/usb/umass.c:2683: more undefined references to
 `xpt_done' follow

 deviceumass   # Disks/Mass storage - Requires scbus and da

You have defined umass but the driver specifically says it requires scbus
and da which you have not defined.

The same is true of your network cards. You have defined ethernet cards
whcih require the miibus and yet you have not defined the miibus device in
your config file.

The answers are there but you need to sit down and actually read the
kernel config file. If you randomly delete or include options without
reading them then the kernel is not going to compile.

-Don
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel with netgraph option

2004-01-30 Thread Chris
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 30 January 2004 11:56 pm, niraj kumar wrote:
 1. how can we compile kernel in freebsd 4.7 with netgraph option.

 2 what is the procedure to add ur own module between the lower and the
 higher node of the ng_ether.

 3 where i can find more about this

  niraj


I know this sounds redundant, but your answer might be in the Questions 
Archive - and consider this:
http://www.google.com/search?hl=enlr=ie=ISO-8859-1q=kernel+in+freebsd+4.7+with+netgraphbtnG=Google+Search

- -- 
Best regards,
Chris

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8

iQA/AwUBQBs2pw+T/4DAG8NjEQIBIwCeJM0KMzA8Wj0FlYa3CNShuLuYfLAAoIvp
W8M+6EJdaCjkKzlk+j6ackL4
=I7xR
-END PGP SIGNATURE-

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]