[ipxe-devel] [OpenBSD] 'internal compiler error: Segmentation' or 'Error: bad expression used with @GOTOFF' fault

Thomas Miletich thomas.miletich at gmail.com
Tue Dec 4 16:42:16 UTC 2012


On Tue, Nov 27, 2012 at 3:17 PM, Jiri B <jirib at devio.us> wrote:
> Hello,
>
> I'm trying to build ipxe on OpenBSD -current but it fails in net/tls.o when
> building with gcc 4.2.1 or in bin/clientcert.o when building with
> gcc 4.7.2. Any idea how to build ipxe successfully?
>
> It was git clone from Nov 23rd 2012.
>
> This was build with gcc 4.2.1:
>
> <snip>
>
>   [BUILD] bin/tls.o
> net/tls.c: In function 'tls_new_server_hello':
> net/tls.c:1668: internal compiler error: Segmentation fault
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> gmake: *** [bin/tls.o] Error 1

This sounds like a gcc-4.2.1 bug. Using a newer version is the way to go.

> If I tried to build with gcc 4.7.2 (suggested by a person on
> #ipxe):
>
>   [BUILD] bin/clientcert.o
> /tmp//ccMSpFmU.s: Assembler messages:
> /tmp//ccMSpFmU.s:35: Error: bad expression used with @GOTOFF
> /tmp//ccMSpFmU.s:64: Error: bad expression used with @GOTOFF
> gmake: *** [bin/clientcert.o] Error 1
>

Which binutils version are you using? If it's in the same age range
than gcc-4.2 it might be too outdated.

Thomas

> jirib
> _______________________________________________
> ipxe-devel mailing list
> ipxe-devel at lists.ipxe.org
> https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel



More information about the ipxe-devel mailing list