Jump to content

generator and brickboot make error


wolf84

Recommended Posts

Hi

 

run generator script error? to deal with it?

 

LD brickd

-- The C compiler identification is GNU 4.8.3

-- The CXX compiler identification is GNU 4.8.3

-- Check for working C compiler: /usr/bin/arm-none-eabi-gcc

-- Check for working C compiler: /usr/bin/arm-none-eabi-gcc -- broken

CMake Error at /usr/share/cmake-3.0/Modules/CMakeTestCCompiler.cmake:61 (message):

  The C compiler "/usr/bin/arm-none-eabi-gcc" is not able to compile a simple

  test program.

  It fails with the following output:

  Change Dir: /home/osboxes/tf/master-brick/software/build/CMakeFiles/CMakeTmp

  Run Build Command:"/usr/bin/make" "cmTryCompileExec3743751674/fast"

  /usr/bin/make -f CMakeFiles/cmTryCompileExec3743751674.dir/build.make

  CMakeFiles/cmTryCompileExec3743751674.dir/build

  make[1]: Entering directory

  '/home/osboxes/tf/master-brick/software/build/CMakeFiles/CMakeTmp'

  /usr/bin/cmake -E cmake_progress_report

  /home/osboxes/tf/master-brick/software/build/CMakeFiles/CMakeTmp/CMakeFiles

  1

  Building C object

  CMakeFiles/cmTryCompileExec3743751674.dir/testCCompiler.c.obj

  /usr/bin/arm-none-eabi-gcc -o

  CMakeFiles/cmTryCompileExec3743751674.dir/testCCompiler.c.obj -c

  /home/osboxes/tf/master-brick/software/build/CMakeFiles/CMakeTmp/testCCompiler.c

  Linking C executable cmTryCompileExec3743751674

  /usr/bin/cmake -E cmake_link_script

  CMakeFiles/cmTryCompileExec3743751674.dir/link.txt --verbose=1

  /usr/bin/arm-none-eabi-gcc

  CMakeFiles/cmTryCompileExec3743751674.dir/testCCompiler.c.obj -o

  cmTryCompileExec3743751674

  /usr/lib/gcc/arm-none-eabi/4.8/../../../arm-none-eabi/lib/libc.a(lib_a-exit.o):

  In function `exit':

  /build/buildd/newlib-2.1.0+git20140818.1a8323b/build/arm-none-eabi/newlib/libc/stdlib/../../../../../newlib/libc/stdlib/exit.c:70:

  undefined reference to `_exit'

 

  collect2: error: ld returned 1 exit status

  CMakeFiles/cmTryCompileExec3743751674.dir/build.make:88: recipe for target

  'cmTryCompileExec3743751674' failed

  make[1]: Leaving directory

  '/home/osboxes/tf/master-brick/software/build/CMakeFiles/CMakeTmp'

  make[1]: *** [cmTryCompileExec3743751674] Error 1

  Makefile:118: recipe for target 'cmTryCompileExec3743751674/fast' failed

  make: *** [cmTryCompileExec3743751674/fast] Error 1

  CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

  CMakeLists.txt:6 (PROJECT)

-- Configuring incomplete, errors occurred!

See also "/home/osboxes/tf/master-brick/software/build/CMakeFiles/CMakeOutput.log".

See also "/home/osboxes/tf/master-brick/software/build/CMakeFiles/CMakeError.log".

-------------------------------------------------------------

Linking C executable master-brick.elf

  text   data     bss     dec     hex filename

126896       0   6012 132908   2072c master-brick.elf

[100%] Built target master-brick.elf

-- The C compiler identification is GNU 4.8.3

-- The CXX compiler identification is GNU 4.8.3

-- Check for working C compiler: /usr/bin/arm-none-eabi-gcc

-- Check for working C compiler: /usr/bin/arm-none-eabi-gcc -- broken

CMake Error at /usr/share/cmake-3.0/Modules/CMakeTestCCompiler.cmake:61 (message):

  The C compiler "/usr/bin/arm-none-eabi-gcc" is not able to compile a simple

  test program.

  It fails with the following output:

  Change Dir: /home/osboxes/tf/temperature-bricklet/software/build/CMakeFiles/CMakeTmp

  Run Build Command:"/usr/bin/make" "cmTryCompileExec2720114032/fast"

  /usr/bin/make -f CMakeFiles/cmTryCompileExec2720114032.dir/build.make

  CMakeFiles/cmTryCompileExec2720114032.dir/build

  make[1]: Entering directory

  '/home/osboxes/tf/temperature-bricklet/software/build/CMakeFiles/CMakeTmp'

  /usr/bin/cmake -E cmake_progress_report

  /home/osboxes/tf/temperature-bricklet/software/build/CMakeFiles/CMakeTmp/CMakeFiles

  1

  Building C object

  CMakeFiles/cmTryCompileExec2720114032.dir/testCCompiler.c.obj

  /usr/bin/arm-none-eabi-gcc -o

  CMakeFiles/cmTryCompileExec2720114032.dir/testCCompiler.c.obj -c

  /home/osboxes/tf/temperature-bricklet/software/build/CMakeFiles/CMakeTmp/testCCompiler.c

  Linking C executable cmTryCompileExec2720114032

  /usr/bin/cmake -E cmake_link_script

  CMakeFiles/cmTryCompileExec2720114032.dir/link.txt --verbose=1

  /usr/bin/arm-none-eabi-gcc

  CMakeFiles/cmTryCompileExec2720114032.dir/testCCompiler.c.obj -o

  cmTryCompileExec2720114032

  /usr/lib/gcc/arm-none-eabi/4.8/../../../arm-none-eabi/lib/libc.a(lib_a-exit.o):

  In function `exit':

  /build/buildd/newlib-2.1.0+git20140818.1a8323b/build/arm-none-eabi/newlib/libc/stdlib/../../../../../newlib/libc/stdlib/exit.c:70:

  undefined reference to `_exit'

  collect2: error: ld returned 1 exit status

  CMakeFiles/cmTryCompileExec2720114032.dir/build.make:88: recipe for target

  'cmTryCompileExec2720114032' failed

  make[1]: Leaving directory

  '/home/osboxes/tf/temperature-bricklet/software/build/CMakeFiles/CMakeTmp'

  make[1]: *** [cmTryCompileExec2720114032] Error 1

  Makefile:118: recipe for target 'cmTryCompileExec2720114032/fast' failed

  make: *** [cmTryCompileExec2720114032/fast] Error 2

  CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

  CMakeLists.txt:7 (PROJECT)

-- Configuring incomplete, errors occurred!

See also "/home/osboxes/tf/temperature-bricklet/software/build/CMakeFiles/CMakeOutput.log".

See also "/home/osboxes/tf/temperature-bricklet/software/build/CMakeFiles/CMakeError.log

------------------------------------------------------

 

brickboot not complied

 

cp -avr ~/tf/bricklib ~/tf/brickboot/software/src

cd ~/tf/brickboot/software

./generate_makefile

 

-- The C compiler identification is GNU 4.8.3

-- The CXX compiler identification is GNU 4.8.3

-- Check for working C compiler: /usr/bin/arm-none-eabi-gcc

-- Check for working C compiler: /usr/bin/arm-none-eabi-gcc -- broken

CMake Error at /usr/share/cmake-3.0/Modules/CMakeTestCCompiler.cmake:61 (message):

  The C compiler "/usr/bin/arm-none-eabi-gcc" is not able to compile a simple

  test program.

  It fails with the following output:

  Change Dir: /home/osboxes/tf/brickboot/software/build/CMakeFiles/CMakeTmp

  Run Build Command:"/usr/bin/make" "cmTryCompileExec619403037/fast"

  /usr/bin/make -f CMakeFiles/cmTryCompileExec619403037.dir/build.make

  CMakeFiles/cmTryCompileExec619403037.dir/build

  make[1]: Entering directory

  '/home/osboxes/tf/brickboot/software/build/CMakeFiles/CMakeTmp'

  /usr/bin/cmake -E cmake_progress_report

  /home/osboxes/tf/brickboot/software/build/CMakeFiles/CMakeTmp/CMakeFiles 1

  Building C object

  CMakeFiles/cmTryCompileExec619403037.dir/testCCompiler.c.obj

  /usr/bin/arm-none-eabi-gcc -o

  CMakeFiles/cmTryCompileExec619403037.dir/testCCompiler.c.obj -c

  /home/osboxes/tf/brickboot/software/build/CMakeFiles/CMakeTmp/testCCompiler.c

  Linking C executable cmTryCompileExec619403037

  /usr/bin/cmake -E cmake_link_script

  CMakeFiles/cmTryCompileExec619403037.dir/link.txt --verbose=1

  /usr/bin/arm-none-eabi-gcc

  CMakeFiles/cmTryCompileExec619403037.dir/testCCompiler.c.obj -o

  cmTryCompileExec619403037

  /usr/lib/gcc/arm-none-eabi/4.8/../../../arm-none-eabi/lib/libc.a(lib_a-exit.o):

  In function `exit':

  /build/buildd/newlib-2.1.0+git20140818.1a8323b/build/arm-none-eabi/newlib/libc/stdlib/../../../../../newlib/libc/stdlib/exit.c:70:

  undefined reference to `_exit'

  collect2: error: ld returned 1 exit status

  CMakeFiles/cmTryCompileExec619403037.dir/build.make:88: recipe for target

  'cmTryCompileExec619403037' failed

  make[1]: *** [cmTryCompileExec619403037] Error 1

  make[1]: Leaving directory

  '/home/osboxes/tf/brickboot/software/build/CMakeFiles/CMakeTmp'

  Makefile:118: recipe for target 'cmTryCompileExec619403037/fast' failed

  make: *** [cmTryCompileExec619403037/fast] Error 2

  CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

  CMakeLists.txt:6 (PROJECT)

-- Configuring incomplete, errors occurred!

See also "/home/osboxes/tf/brickboot/software/build/CMakeFiles/CMakeOutput.log".

See also "/home/osboxes/tf/brickboot/software/build/CMakeFiles/CMakeError.log".

Link zu diesem Kommentar
Share on other sites

First of all, you don't need brickboot, it's obsolete.

 

It seems that you're not using the latest master-brick.git content. Please check that your

 

~/tf/master-brick/software/generate_makefile

 

looks like this

 

#!/bin/bash
mkdir -p build
cmake -E chdir build/ cmake -DCMAKE_TOOLCHAIN_FILE=../src/bricklib/toolchains/arm-none-eabi.cmake ../

# Because of a bug in cmake we have to call it two times... For the second
# execution the toolchain files are already defined
cmake -E chdir build/ cmake ../

 

Now delete this directory

 

~/tf/master-brick/software/build/

 

and run generate_makefile again:

 

cd ~/tf/master-brick/software/
./generate_makefile

 

It runs cmake twice. The first run is expected to fail, the second should succeed like this:

 

-- The C compiler identification is GNU 4.9.3
-- The CXX compiler identification is GNU 4.9.3
-- Check for working C compiler: /home/matthias/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc
-- Check for working C compiler: /home/matthias/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler
  "/home/matthias/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc" is not
  able to compile a simple test program.

  It fails with the following output:

   Change Dir: /home/matthias/tf/dev/master-brick/software/build/CMakeFiles/CMakeTmp

  

  Run Build Command:/usr/bin/make "cmTryCompileExec1785423513/fast"

  /usr/bin/make -f CMakeFiles/cmTryCompileExec1785423513.dir/build.make
  CMakeFiles/cmTryCompileExec1785423513.dir/build

  make[1]: Verzeichnis
  »/home/matthias/tf/dev/master-brick/software/build/CMakeFiles/CMakeTmp«
  wird betreten

  /usr/bin/cmake -E cmake_progress_report
  /home/matthias/tf/dev/master-brick/software/build/CMakeFiles/CMakeTmp/CMakeFiles
  1

  Building C object
  CMakeFiles/cmTryCompileExec1785423513.dir/testCCompiler.c.obj

  /home/matthias/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc -o
  CMakeFiles/cmTryCompileExec1785423513.dir/testCCompiler.c.obj -c
  /home/matthias/tf/dev/master-brick/software/build/CMakeFiles/CMakeTmp/testCCompiler.c


  Linking C executable cmTryCompileExec1785423513

  /usr/bin/cmake -E cmake_link_script
  CMakeFiles/cmTryCompileExec1785423513.dir/link.txt --verbose=1

  /home/matthias/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc
  CMakeFiles/cmTryCompileExec1785423513.dir/testCCompiler.c.obj -o
  cmTryCompileExec1785423513

  
  /home/matthias/gcc-arm-none-eabi-4_9-2015q2/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o):
  In function `exit':

  exit.c:(.text.exit+0x2c): undefined reference to `_exit'

  collect2: error: ld returned 1 exit status

  make[1]: *** [cmTryCompileExec1785423513] Fehler 1

  make[1]: Verzeichnis
  »/home/matthias/tf/dev/master-brick/software/build/CMakeFiles/CMakeTmp«
  wird verlassen

  make: *** [cmTryCompileExec1785423513/fast] Fehler 2

  

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:6 (PROJECT)


-- Configuring incomplete, errors occurred!
See also "/home/matthias/tf/dev/master-brick/software/build/CMakeFiles/CMakeOutput.log".
See also "/home/matthias/tf/dev/master-brick/software/build/CMakeFiles/CMakeError.log".
-- The C compiler identification is GNU 4.9.3
-- Check for working C compiler: /home/matthias/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc
-- Check for working C compiler: /home/matthias/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- 
Found following source files:
/home/matthias/tf/dev/master-brick/software/src/communication.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/logging/logging.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/crc/crc.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/dacc/dacc.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/pwmc/pwmc.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/usart/uart_console.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/usart/usart.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/twi/twid.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/twi/twi.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/adc/adc.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/pio/pio.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/pio/pio_it.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/efc/efc.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/wdt/wdt.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/flash/flashd.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/board/board_cstartup_gnu.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/board/board_lowlevel.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/board/exceptions.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/tc/tc.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/usb/USBD.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/usb/USBDescriptors.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/usb/USBRequests.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/usb/USBDCallbacks.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/usb/USBD_HAL.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/usb/USBDDriver.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/usb/USBDDriverCallbacks.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/pmc/pmc.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/spi/spi.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/drivers/uid/uid.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/free_rtos/croutine.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/free_rtos/tasks.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/free_rtos/portable/MemMang/heap_tf.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/free_rtos/portable/GCC/ARM_CM3/port.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/free_rtos/queue.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/free_rtos/list.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/utility/pearson_hash.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/utility/rand.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/utility/init.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/utility/led.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/utility/syscalls.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/utility/profiling.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/utility/trace.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/utility/sqrt.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/utility/mutex.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/utility/sha_1.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/utility/base64_encode.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/com/com_messages.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/com/i2c/i2c_eeprom/i2c_eeprom_common.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/com/i2c/i2c_eeprom/i2c_eeprom_slave.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/com/i2c/i2c_eeprom/i2c_eeprom_master.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/com/none/none.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/com/com.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/com/usb/usb_descriptors.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/com/usb/usb_callbacks.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/com/usb/usb.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/com/com_common.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/com/i2c/i2c_clear_bus.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/bricklet/bricklet_communication.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/bricklet/bricklet_init.c;/home/matthias/tf/dev/master-brick/software/src/extensions/extension_init.c;/home/matthias/tf/dev/master-brick/software/src/extensions/extension_i2c.c;/home/matthias/tf/dev/master-brick/software/src/extensions/brickd.c;/home/matthias/tf/dev/master-brick/software/src/extensions/websocket.c;/home/matthias/tf/dev/master-brick/software/src/extensions/chibi/chibi_low_level.c;/home/matthias/tf/dev/master-brick/software/src/extensions/chibi/chibi_master.c;/home/matthias/tf/dev/master-brick/software/src/extensions/chibi/chibi_slave.c;/home/matthias/tf/dev/master-brick/software/src/extensions/chibi/chibi_init.c;/home/matthias/tf/dev/master-brick/software/src/extensions/chibi/chibi.c;/home/matthias/tf/dev/master-brick/software/src/extensions/rs485/rs485_low_level.c;/home/matthias/tf/dev/master-brick/software/src/extensions/rs485/rs485_slave.c;/home/matthias/tf/dev/master-brick/software/src/extensions/rs485/rs485_master.c;/home/matthias/tf/dev/master-brick/software/src/extensions/rs485/rs485.c;/home/matthias/tf/dev/master-brick/software/src/extensions/wifi/wifi_low_level.c;/home/matthias/tf/dev/master-brick/software/src/extensions/wifi/wifi_command.c;/home/matthias/tf/dev/master-brick/software/src/extensions/wifi/wifi_data.c;/home/matthias/tf/dev/master-brick/software/src/extensions/wifi/wifi_ringbuffer.c;/home/matthias/tf/dev/master-brick/software/src/extensions/wifi/wifi.c;/home/matthias/tf/dev/master-brick/software/src/extensions/wifi2/wifi2.c;/home/matthias/tf/dev/master-brick/software/src/extensions/wifi2/wifi2_uart.c;/home/matthias/tf/dev/master-brick/software/src/extensions/wifi2/wifi2_bootloader.c;/home/matthias/tf/dev/master-brick/software/src/extensions/ethernet/ethernet_websocket.c;/home/matthias/tf/dev/master-brick/software/src/extensions/ethernet/ethernet_low_level.c;/home/matthias/tf/dev/master-brick/software/src/extensions/ethernet/ethernet_dhcp.c;/home/matthias/tf/dev/master-brick/software/src/extensions/ethernet/ethernet.c;/home/matthias/tf/dev/master-brick/software/src/extensions/ethernet/ethernet_w5200.c;/home/matthias/tf/dev/master-brick/software/src/extensions/ethernet/ethernet_w5500.c;/home/matthias/tf/dev/master-brick/software/src/main.c;/home/matthias/tf/dev/master-brick/software/src/master.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/com/spi/spi_stack/spi_stack_select_dma.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/com/spi/spi_stack/spi_stack_common_dma.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/com/spi/spi_stack/spi_stack_slave_dma.c;/home/matthias/tf/dev/master-brick/software/src/bricklib/com/spi/spi_stack/spi_stack_master_dma.c;/home/matthias/tf/dev/master-brick/software/src/routing_dma.c

-- Configuring done
-- Generating done
-- Build files have been written to: /home/matthias/tf/dev/master-brick/software/build

 

Now you can run make

 

cd cd ~/tf/master-brick/software/build/
make

Link zu diesem Kommentar
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...