Jump to content


Error while building on Windows


  • Please log in to reply
11 replies to this topic

#1 Berkely

Berkely

    Core Team

  • Core Team
  • PipPipPip
  • 615 posts
  • Country: flag of Flemish Belgium Flemish Belgium


Posted 10 January 2012 - 10:59 AM

I've been building the Windows package for a few months without issues. But now it seems there are some errors:

$ make package
.
.
.
CC		 flight/PiOS/STM32F10x/Libraries/STM32_USB-FS-Device_Driver/src/usb_mem.c
CC		 flight/PiOS/STM32F10x/Libraries/STM32_USB-FS-Device_Driver/src/usb_regs.c
CC		 flight/PiOS/STM32F10x/Libraries/STM32_USB-FS-Device_Driver/src/usb_sil.c
LD		 build/bl_coptercontrol/bl_coptercontrol.elf
c:/progra~2/codeso~1/source~1/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm
-none-eabi/bin/ld.exe: section .boardinfo loaded at [08002f80,08002f9f] overlaps
section .data loaded at [08002ee0,08002fd3]
collect2: ld returned 1 exit status
mingw32-make[3]: *** [c:/Users/sysadmin/OpenPilot/build/bl_coptercontrol/bl_copt
ercontrol.elf] Error 1
mingw32-make[2]: *** [bl_coptercontrol_install] Error 2
mingw32-make[1]: *** [all_bl] Error 2
mingw32-make: *** [package] Error 2

I cannot recall myself changing anything what would be the cause. Is there anything changed or does this error seems familiar to anyone? I have to admit I didn't dive into it yet.

#2 PT_Dreamer

PT_Dreamer

    GCS Core Developer

  • Administrators
  • 1211 posts
  • LocationCaparica, Portugal
  • Country: flag of Portugal Portugal


Posted 10 January 2012 - 02:07 PM

Make sure you are using the latest arm toolchain.
Life is just a game, but atleast the graphics are awesome!

#3 Berkely

Berkely

    Core Team

  • Core Team
  • PipPipPip
  • 615 posts
  • Country: flag of Flemish Belgium Flemish Belgium


Posted 27 January 2012 - 10:29 PM

I have to come back on this, I installed a SSD (huge difference), installed all programs needed & described in the wiki & the readme. But I run into exact the same problem. Upgraded to the latest Sourcery CodeBench Lite & to QT1.1.4 but that's the same.

I must be missing something ( & I think the wiki also).

#4 PT_Dreamer

PT_Dreamer

    GCS Core Developer

  • Administrators
  • 1211 posts
  • LocationCaparica, Portugal
  • Country: flag of Portugal Portugal


Posted 27 January 2012 - 11:01 PM

Can you post a screen shot of the same command with the upgraded system
Life is just a game, but atleast the graphics are awesome!

#5 Berkely

Berkely

    Core Team

  • Core Team
  • PipPipPip
  • 615 posts
  • Country: flag of Flemish Belgium Flemish Belgium


Posted 29 January 2012 - 08:15 AM

It looks mainly the same:

Building with the following command looks like this:
$ make package 2>&1 | tee make_log.txt

Spoiler


Building with make CLEAN_BUILD=NO package 2>&1 | tee make_clean.txt
results in:

Spoiler

I tried onlt the GCS via the batch file from the wiki which resulted in the following error.
Spoiler

I hope this makes sense.

Thanks

#6 Sambas

Sambas

    Core Developer

  • Core Team
  • PipPipPip
  • 244 posts
  • Country: flag of Finland Finland


Posted 29 January 2012 - 08:49 AM

First two "error: variable 'dummy'" comes from latest codesourcery, You can go around it by removing -Werror flag from CC makefile.

#7 robert b

robert b

    Advanced Member

  • Members
  • PipPipPip
  • 100 posts
  • Locationschneisingen
  • Country: flag of Switzerland Switzerland

Posted 29 January 2012 - 09:11 AM

View PostPT_Dreamer, on 10 January 2012 - 02:07 PM, said:

Make sure you are using the latest arm toolchain.
hi,
what means latest?
there a different sources when building arm eabi toolchains.

#8 PT_Dreamer

PT_Dreamer

    GCS Core Developer

  • Administrators
  • 1211 posts
  • LocationCaparica, Portugal
  • Country: flag of Portugal Portugal


Posted 29 January 2012 - 02:36 PM

By latest I mean the latest installer package available from codesourcery's webpage as pointed in the wiki. You should note this thread tittle.

@Berkely - please try the switch Sambas referred or delete the unused var.
Life is just a game, but atleast the graphics are awesome!

#9 Berkely

Berkely

    Core Team

  • Core Team
  • PipPipPip
  • 615 posts
  • Country: flag of Flemish Belgium Flemish Belgium


Posted 30 January 2012 - 09:27 AM

I tried switching between to the previous codesourcery but the error was the same.
So I've commented the _Werror flag which seems to work till the next error.

A make package results in:
../PiOS/STM32F10x/pios_spi.c: In function 'PIOS_SPI_TransferByte':
../PiOS/STM32F10x/pios_spi.c:294:10: warning: variable 'dummy' set but not used [-Wunused-but-set-variable]
CC		 flight/PiOS/STM32F10x/pios_ppm.c
CC		 flight/PiOS/STM32F10x/pios_pwm.c
..
CC		 flight/Libraries/fifo_buffer.c
CC		 flight/Libraries/CoordinateConversions.c
CC		 flight/PiOS/STM32F10x/Libraries/CMSIS/Core/CM3/core_cm3.c
...AppData\Local\Temp\ccmuucl9.s: Assembler messages:
...AppData\Local\Temp\ccmuucl9.s:492: Error: registers may not be the same -- `strexb r0,r0,[r1]'
...AppData\Local\Temp\ccmuucl9.s:516: Error: registers may not be the same -- `strexh r0,r0,[r1]'
mingw32-make[3]: *** [c:/OpenPilot/Openpilot/build/fw_coptercontrol/core_cm3.o] Error 1
mingw32-make[2]: *** [fw_coptercontrol_install] Error 2
mingw32-make[1]: *** [all_fw] Error 2
mingw32-make: *** [package] Error 2

I also noticed the 2 QT download links in the wiki are not longer valid.
qt-sdk-win-opensource-2010.05.exe or Qt_SDK_Win_offline_v1_1_1_en.exe. Can they be upgraded with version version 1.1.4?

#10 PT_Dreamer

PT_Dreamer

    GCS Core Developer

  • Administrators
  • 1211 posts
  • LocationCaparica, Portugal
  • Country: flag of Portugal Portugal


Posted 30 January 2012 - 11:47 AM

Just to make sure we are using the same version this is my output of "cs-make -v"

GNU Make (Sourcery G++ Lite 2011.03-42) 3.81

About Qt, it works with 4.7.4 and 4.8. The new webinstaller from Qt allows you to install several versions including the beta.
Life is just a game, but atleast the graphics are awesome!

#11 Berkely

Berkely

    Core Team

  • Core Team
  • PipPipPip
  • 615 posts
  • Country: flag of Flemish Belgium Flemish Belgium


Posted 30 January 2012 - 05:30 PM

Yes, it's the same.

GNU Make (Sourcery G++ Lite 2011.03-42) 3.81
Copyright (C) 2006  Free Software Foundation, Inc.

I'll have another look over the complete process & try to figure out what works & what doesn't. I'll be traveling the following days so it's gonna take a while.

What bothers me a bit is that I followed the wiki description from scratch & it worked straight forward, then suddenly (without changing anything i believe) the process generated errors. Now a complete new installed OS together with the toolchain results in the same errors.

To be continued.

#12 Berkely

Berkely

    Core Team

  • Core Team
  • PipPipPip
  • 615 posts
  • Country: flag of Flemish Belgium Flemish Belgium


Posted 03 February 2012 - 02:12 PM

Ok, I've got it building on my new OS. Wiki was correct apart from the download links.

It seems my problem was I've downloaded wrongly the SDL runtime libraries for win64 bit instead of the dev. libraries. I personally cannot link that to my error but that's what I found & it's building again now. :)