mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* GCC 6.3 Linker error
@ 2017-05-05 15:11 Daniel Schultz
  2017-05-08 10:57 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Schultz @ 2017-05-05 15:11 UTC (permalink / raw)
  To: barebox

Hi everyone,

when I build the Barebox with GCC 6.3 and am335x_defconfig, I get the 
following error:


|   LD      commands/built-in.o
|   LD      drivers/usb/built-in.o
|   PBLLD   drivers/usb/built-in-pbl.o
|   LD      fs/built-in.o
|   PBLLD   fs/built-in-pbl.o
|   LD      drivers/mtd/ubi/built-in.o
|   LD      drivers/mtd/built-in.o
|   PBLLD   drivers/mtd/built-in-pbl.o
|   LD      drivers/built-in.o
|   PBLLD   drivers/built-in-pbl.o
|   GEN     .version
|   CHK     include/generated/compile.h
|   UPD     include/generated/compile.h
|   CC      common/version.o
|   LD      common/built-in.o
|   LD      .tmp_barebox1
| arm-phytec-linux-gnueabi-ld: .tmp_barebox1: Not enough room for 
program headers, try linking with -N
| arm-phytec-linux-gnueabi-ld: final link failed: Bad value
| make[2]: *** [.tmp_barebox1] Error 1
| make[1]: *** [_all] Error 2
| make: *** [all] Error 2
| ERROR: Function failed: do_compile (log file is located at 
/home/schultz/yocto/PD17.2.0/build/tmp/work/phyboard_wega_am335x_2-phytec-linux-gnueabi/barebox/2017.03.0-phy1-r7.0/temp/log.do_compile.23997)
ERROR: Task 
(/home/schultz/yocto/PD17.2.0/sources/poky/../meta-phytec/recipes-bsp/barebox/barebox_2017.03.0-phy1.bb:do_compile) 
failed with exit code '1'
NOTE: Tasks Summary: Attempted 497 tasks of which 495 didn't need to be 
rerun and 1 failed.
NOTE: Writing buildhistory


has somebody else faced with this problem? I figured out that linking 
with "-nmagic" fix this problem.

-- 
Mit freundlichen Grüßen,
With best regards,
   Daniel Schultz

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GCC 6.3 Linker error
  2017-05-05 15:11 GCC 6.3 Linker error Daniel Schultz
@ 2017-05-08 10:57 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2017-05-08 10:57 UTC (permalink / raw)
  To: Daniel Schultz; +Cc: barebox

On Fri, May 05, 2017 at 05:11:30PM +0200, Daniel Schultz wrote:
> Hi everyone,
> 
> when I build the Barebox with GCC 6.3 and am335x_defconfig, I get the
> following error:
> 
> 
> |   LD      commands/built-in.o
> |   LD      drivers/usb/built-in.o
> |   PBLLD   drivers/usb/built-in-pbl.o
> |   LD      fs/built-in.o
> |   PBLLD   fs/built-in-pbl.o
> |   LD      drivers/mtd/ubi/built-in.o
> |   LD      drivers/mtd/built-in.o
> |   PBLLD   drivers/mtd/built-in-pbl.o
> |   LD      drivers/built-in.o
> |   PBLLD   drivers/built-in-pbl.o
> |   GEN     .version
> |   CHK     include/generated/compile.h
> |   UPD     include/generated/compile.h
> |   CC      common/version.o
> |   LD      common/built-in.o
> |   LD      .tmp_barebox1
> | arm-phytec-linux-gnueabi-ld: .tmp_barebox1: Not enough room for program
> headers, try linking with -N
> | arm-phytec-linux-gnueabi-ld: final link failed: Bad value
> | make[2]: *** [.tmp_barebox1] Error 1
> | make[1]: *** [_all] Error 2
> | make: *** [all] Error 2
> | ERROR: Function failed: do_compile (log file is located at /home/schultz/yocto/PD17.2.0/build/tmp/work/phyboard_wega_am335x_2-phytec-linux-gnueabi/barebox/2017.03.0-phy1-r7.0/temp/log.do_compile.23997)
> ERROR: Task (/home/schultz/yocto/PD17.2.0/sources/poky/../meta-phytec/recipes-bsp/barebox/barebox_2017.03.0-phy1.bb:do_compile)
> failed with exit code '1'
> NOTE: Tasks Summary: Attempted 497 tasks of which 495 didn't need to be
> rerun and 1 failed.
> NOTE: Writing buildhistory
> 
> 
> has somebody else faced with this problem? I figured out that linking with
> "-nmagic" fix this problem.

This was reported here: https://www.spinics.net/lists/u-boot-v2/msg29899.html
The patch should fix this. It was never sent for inclusion in barebox
though, so I haven't applied it yet.
If you can test this patch successfully you could just resend the patch
so we get this solved in mainline.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-08 10:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-05 15:11 GCC 6.3 Linker error Daniel Schultz
2017-05-08 10:57 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox