All of lore.kernel.org
 help / color / mirror / Atom feed
From: Don Slutz <dslutz@verizon.com>
To: Aurelien Jarno <aurelien@aurel32.net>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	Kevin O'Connor <kevin@koconnor.net>,
	seabios@seabios.org, qemu-stable@nongnu.org,
	Dietmar Maurer <dietmar@proxmox.com>
Subject: Re: [Qemu-devel] problems with freeBSD
Date: Thu, 7 Mar 2013 09:00:59 -0500	[thread overview]
Message-ID: <51389D9B.4010000@terremark.com> (raw)
In-Reply-To: <51388FD1.2000201@terremark.com>

[-- Attachment #1: Type: text/plain, Size: 4421 bytes --]

On 03/07/13 08:02, Don Slutz wrote:
> On 03/07/13 03:43, Aurelien Jarno wrote:
>> On Wed, Mar 06, 2013 at 07:53:51PM -0500, Kevin O'Connor wrote:
>>> >On Thu, Mar 07, 2013 at 12:12:08AM +0100, Aurelien Jarno wrote:
>>>> > >On Wed, Mar 06, 2013 at 08:21:11AM +0000, Dietmar Maurer wrote:
> [snip]
>>>> Maybe I am doing something wrong or there is a bug in my toolchain 
>>>> (Debian Sid). It would be nice if someone could try to reproduce 
>>>> that on another distro/system. 
>> -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net 
>> http://www.aurel32.net
>
> I reproduced this on "Fedora release 17 (Beefy Miracle)" 
> 3.7.3-101.fc17.x86_64 doing the steps provided.
>    -Don Slutz

Turns out that this is not the normal kind of issue.  Newer seabios 
works, older does not:

good   * 88cb66e (HEAD, tag: rel-1.7.2.1, origin/1.7.2-stable, 
1.7.2-stable) seabios: Add a dummy PCI slot to irq mapping funct
good   * 985a9d3 seabios q35: Add new PCI slot to irq routing function
good   * 2b57726 seabios q35: Enable all PIRQn IRQs at startup
good   * e5fe4f9 Verify CC is valid during build tests.
good   * 4219149 build: Don't require $(OUT) to be a sub-directory of 
the main directory.
bad    * d75c22f Fix Makefile - don't reference "out/" directly, instead 
use "$(OUT)".
bad    * 12e8199 USB-EHCI: Fix null pointer assignment
bad    * f396871 Update tools/acpi_extract.py to handle iasl 20130117 
release.
bad    * 4bd8aeb (tag: rel-1.7.2) vgabios: implement AX=1120H..1124H 
functions


good:
Version: rel-1.7.2-4-g4219149-20130307_085117-don-lt.don.CloudSwitch.com
Fixed space: 0xe05b-0x10000  total: 8101  slack: 5  Percent slack: 0.1%
16bit size:           39856
32bit segmented size: 1430
32bit flat size:      18778
32bit flat init size: 62400
Lowmem size:          2176

bad:
Version: rel-1.7.2-3-gd75c22f-20130307_085345-don-lt.don.CloudSwitch.com
Fixed space: 0xe05b-0x10000  total: 8101  slack: 5  Percent slack: 0.1%
16bit size:           39808
32bit segmented size: 1430
32bit flat size:      18778
32bit flat init size: 62400
Lowmem size:          2176


The 16bit size change is the only output change.

The changed that fixed it:

commit 4219149ad2b783abfa61e80e9e9f6910db0c76c9
Author: Kevin O'Connor <kevin@koconnor.net>
Date:   Sun Feb 17 10:56:10 2013 -0500

     build: Don't require $(OUT) to be a sub-directory of the main 
directory.

     Remove references to "../" and "out/" from the build so that "make
     OUT=/a/b/c/" will work.

     Signed-off-by: Kevin O'Connor <kevin@koconnor.net>

diff --git a/Makefile b/Makefile
index a482c94..20da6d0 100644
--- a/Makefile
+++ b/Makefile
@@ -84,7 +84,7 @@ vpath %.S src vgasrc
  ################ Common build rules

  # Verify the build environment works.
-TESTGCC:=$(shell CC="$(CC)" LD="$(LD)" IASL="$(IASL)" tools/test-build.sh)
+TESTGCC:=$(shell OUT="$(OUT)" CC="$(CC)" LD="$(LD)" IASL="$(IASL)" 
tools/test-build.sh)
  ifeq "$(TESTGCC)" "-1"
  $(error "Please upgrade the build environment")
  endif
@@ -97,7 +97,7 @@ endif
  # Do a whole file compile by textually including all C code.
  define whole-compile
  @echo "  Compiling whole program $3"
-$(Q)printf '$(foreach i,$2,#include "../$i"\n)' > $3.tmp.c
+$(Q)printf '$(foreach i,$2,#include "$(CURDIR)/$i"\n)' > $3.tmp.c
  $(Q)$(CC) $1 $(CFLAGSWHOLE) -c $3.tmp.c -o $3
  endef

diff --git a/src/Kconfig b/src/Kconfig
index 0b112ed..2c9100d 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -367,7 +367,7 @@ menu "BIOS Tables"
              Support generation of ACPI tables.
  endmenu

-source ../vgasrc/Kconfig
+source vgasrc/Kconfig

  menu "Debugging"
      config DEBUG_LEVEL
diff --git a/tools/test-build.sh b/tools/test-build.sh
index 7bd6d1f..ce0aca9 100755
--- a/tools/test-build.sh
+++ b/tools/test-build.sh
@@ -14,13 +14,13 @@ if [ $? -ne 0 ]; then
      exit 0
  fi

-mkdir -p out
-TMPFILE1=out/tmp_testcompile1.c
-TMPFILE1o=out/tmp_testcompile1.o
-TMPFILE1_ld=out/tmp_testcompile1.lds
-TMPFILE2=out/tmp_testcompile2.c
-TMPFILE2o=out/tmp_testcompile2.o
-TMPFILE3o=out/tmp_testcompile3.o
+mkdir -p ${OUT}
+TMPFILE1=${OUT}/tmp_testcompile1.c
+TMPFILE1o=${OUT}/tmp_testcompile1.o
+TMPFILE1_ld=${OUT}/tmp_testcompile1.lds
+TMPFILE2=${OUT}/tmp_testcompile2.c
+TMPFILE2o=${OUT}/tmp_testcompile2.o
+TMPFILE3o=${OUT}/tmp_testcompile3.o

  # Test if ld's alignment handling is correct.  This is a known problem
  # with the linker that ships with Ubuntu 11.04.

   -Don Slutz

[-- Attachment #2: Type: text/html, Size: 7373 bytes --]

  reply	other threads:[~2013-03-07 14:01 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-06  8:21 [Qemu-devel] problems with freeBSD Dietmar Maurer
2013-03-06 12:41 ` Alexandre DERUMIER
2013-03-06 14:38   ` Dietmar Maurer
2013-03-06 15:56 ` Laszlo Ersek
2013-03-06 23:12 ` Aurelien Jarno
2013-03-07  0:53   ` Kevin O'Connor
2013-03-07  1:28     ` Laszlo Ersek
2013-03-07  1:58       ` [Qemu-devel] [SeaBIOS] " Peter Stuge
2013-03-07  6:12         ` [Qemu-devel] [Qemu-stable] " Doug Goldstein
2013-03-07  6:32           ` Peter Maydell
2013-03-07  7:17           ` Michael Tokarev
2013-03-07 11:56             ` Gerd Hoffmann
2013-03-07 13:06               ` Michael Tokarev
2013-03-07 15:03               ` Peter Maydell
2013-03-07 15:56                 ` Gerd Hoffmann
2013-03-07 16:03                   ` Peter Maydell
2013-03-07 16:21                     ` Aurelien Jarno
2013-03-07 18:57                       ` [Qemu-devel] [SeaBIOS] [Qemu-stable] " Peter Stuge
2013-03-08  7:50                       ` [Qemu-devel] " Paolo Bonzini
2013-03-08 13:52                     ` [Qemu-devel] [Qemu-stable] [SeaBIOS] " Kevin O'Connor
2013-03-08 14:57                       ` [Qemu-devel] [SeaBIOS] [Qemu-stable] " Peter Stuge
2013-03-07 20:24                   ` David Woodhouse
2013-03-08  7:47                     ` Paolo Bonzini
2013-03-08  7:54                       ` David Woodhouse
2013-03-08  8:20                       ` Gerd Hoffmann
2013-03-08  8:33                         ` Paolo Bonzini
2013-03-08  9:58                           ` Gerd Hoffmann
2013-03-07 16:33                 ` [Qemu-devel] [Qemu-stable] [SeaBIOS] " Dietmar Maurer
2013-03-07 11:17       ` [Qemu-devel] " Gerd Hoffmann
2013-03-07  8:43     ` Aurelien Jarno
2013-03-07 12:16       ` Laszlo Ersek
2013-03-07 13:48         ` Aurelien Jarno
2013-03-07 13:02       ` Don Slutz
2013-03-07 14:00         ` Don Slutz [this message]
2013-03-07 16:05           ` Paolo Bonzini
2013-03-07 13:57       ` Kevin O'Connor
2013-03-07 14:09         ` [Qemu-devel] [SeaBIOS] " Don Slutz
2013-03-07 16:15         ` [Qemu-devel] " Aurelien Jarno
2013-03-08  3:35       ` Kevin O'Connor
2013-03-08 11:30         ` [Qemu-devel] [SeaBIOS] " Laszlo Ersek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51389D9B.4010000@terremark.com \
    --to=dslutz@verizon.com \
    --cc=aurelien@aurel32.net \
    --cc=dietmar@proxmox.com \
    --cc=kevin@koconnor.net \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-stable@nongnu.org \
    --cc=seabios@seabios.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.