Public bug reported:

ipxe does not build due to an infinite loop on
arch/i386/prefix/linuxprefix.S. This particular file was removed
upstream.

During build, the following is displayed:
  [DEPS] arch/i386/prefix/linuxprefix.S
  [DEPS] arch/i386/prefix/linuxprefix.S
  [DEPS] arch/i386/prefix/linuxprefix.S
  [DEPS] arch/i386/prefix/linuxprefix.S
  [DEPS] arch/i386/prefix/linuxprefix.S
  [DEPS] arch/i386/prefix/linuxprefix.S
  [DEPS] arch/i386/prefix/linuxprefix.S
  [DEPS] arch/i386/prefix/linuxprefix.S


Removing arch/{i386,x86_64}/prefix/linuxprefix.S fixes the problem.

Index: ipxe/src/arch/i386/prefix/linuxprefix.S
===================================================================
--- ipxe.orig/src/arch/i386/prefix/linuxprefix.S    2011-08-05 
16:56:49.028882032 -0600
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
@@ -1,28 +0,0 @@
-#include <linux/unistd.h>
-
-   .section ".text"
-   .code32
-   .globl _linux_start
-   .type _linux_start, @function
-
-_linux_start:
-   xorl    %ebp, %ebp
-
-   popl    %esi       // save argc
-   movl    %esp, %edi // save argv
-
-   andl    $~15, %esp // 16-byte align the stack
-
-   pushl   %edi // argv -> C arg2
-   pushl   %esi // argc -> C arg1
-
-   call    save_args
-
-   /* Our main doesn't use any arguments */
-   call    main
-
-   movl    %eax, %ebx // rc -> syscall arg1
-   movl    $__NR_exit, %eax
-   int $0x80
-
-   .size _linux_start, . - _linux_start
Index: ipxe/src/arch/x86_64/prefix/linuxprefix.S
===================================================================
--- ipxe.orig/src/arch/x86_64/prefix/linuxprefix.S  2011-08-05 
16:56:49.058882032 -0600
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
@@ -1,25 +0,0 @@
-#include <linux/unistd.h>
-
-   .section ".text"
-   .code64
-   .globl _linux_start
-   .type _linux_start, @function
-
-_linux_start:
-   xorq    %rbp, %rbp
-
-   popq    %rdi       // argc -> C arg1
-   movq    %rsp, %rsi // argv -> C arg2
-
-   andq    $~15, %rsp // 16-byte align the stack
-
-   call    save_args
-
-   /* Our main doesn't use any arguments */
-   call    main
-
-   movq    %rax, %rdi // rc -> syscall arg1
-   movq    $__NR_exit, %rax
-   syscall
-
-   .size _start, . - _start

** Affects: ipxe (Ubuntu)
     Importance: High
     Assignee: Ben Howard (utlemming)
         Status: Triaged


** Tags: server-o-rs

** Description changed:

  ipxe does not build due to an infinite loop on
  arch/i386/prefix/linuxprefix.S. This particular file was removed
  upstream.
+ 
+ During build, the following is displayed:
+   [DEPS] arch/i386/prefix/linuxprefix.S
+   [DEPS] arch/i386/prefix/linuxprefix.S
+   [DEPS] arch/i386/prefix/linuxprefix.S
+   [DEPS] arch/i386/prefix/linuxprefix.S
+   [DEPS] arch/i386/prefix/linuxprefix.S
+   [DEPS] arch/i386/prefix/linuxprefix.S
+   [DEPS] arch/i386/prefix/linuxprefix.S
+   [DEPS] arch/i386/prefix/linuxprefix.S
+ 
  
  Removing arch/{i386,x86_64}/prefix/linuxprefix.S fixes the problem.
  
  Index: ipxe/src/arch/i386/prefix/linuxprefix.S
  ===================================================================
  --- ipxe.orig/src/arch/i386/prefix/linuxprefix.S    2011-08-05 
16:56:49.028882032 -0600
  +++ /dev/null   1970-01-01 00:00:00.000000000 +0000
  @@ -1,28 +0,0 @@
  -#include <linux/unistd.h>
  -
  -   .section ".text"
  -   .code32
  -   .globl _linux_start
  -   .type _linux_start, @function
  -
  -_linux_start:
  -   xorl    %ebp, %ebp
  -
  -   popl    %esi       // save argc
  -   movl    %esp, %edi // save argv
  -
  -   andl    $~15, %esp // 16-byte align the stack
  -
  -   pushl   %edi // argv -> C arg2
  -   pushl   %esi // argc -> C arg1
  -
  -   call    save_args
  -
  -   /* Our main doesn't use any arguments */
  -   call    main
  -
  -   movl    %eax, %ebx // rc -> syscall arg1
  -   movl    $__NR_exit, %eax
  -   int $0x80
  -
  -   .size _linux_start, . - _linux_start
  Index: ipxe/src/arch/x86_64/prefix/linuxprefix.S
  ===================================================================
  --- ipxe.orig/src/arch/x86_64/prefix/linuxprefix.S  2011-08-05 
16:56:49.058882032 -0600
  +++ /dev/null   1970-01-01 00:00:00.000000000 +0000
  @@ -1,25 +0,0 @@
  -#include <linux/unistd.h>
  -
  -   .section ".text"
  -   .code64
  -   .globl _linux_start
  -   .type _linux_start, @function
  -
  -_linux_start:
  -   xorq    %rbp, %rbp
  -
  -   popq    %rdi       // argc -> C arg1
  -   movq    %rsp, %rsi // argv -> C arg2
  -
  -   andq    $~15, %rsp // 16-byte align the stack
  -
  -   call    save_args
  -
  -   /* Our main doesn't use any arguments */
  -   call    main
  -
  -   movq    %rax, %rdi // rc -> syscall arg1
  -   movq    $__NR_exit, %rax
  -   syscall
  -
  -   .size _start, . - _start

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/821725

Title:
  ipxe does not build

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ipxe/+bug/821725/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to