Skip to content

Instantly share code, notes, and snippets.

@sidprice
Created July 18, 2019 15:32
Show Gist options
  • Save sidprice/beed8a4047dabfb65c9e06619df5c304 to your computer and use it in GitHub Desktop.
Save sidprice/beed8a4047dabfb65c9e06619df5c304 to your computer and use it in GitHub Desktop.
Output when building libftdi (BMP)
PS C:\DataRoot\Projects\blackmagic\src> make CC=gcc V=1 PROBE_HOST=LIBFTDI
echo " GIT include/version.h"
" GIT include/version.h"
echo #define FIRMWARE_VERSION "v1.6.1-292-g3165d64" > include/version.h
" CC target/adiv5.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/adiv5.c -o adiv5.o
" CC target/adiv5_jtagdp.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/adiv5_jtagdp.c -o adiv5_jtagdp.o
" CC target/adiv5_swdp.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/adiv5_swdp.c -o adiv5_swdp.o
" CC command.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c command.c -o command.o
" CC target/cortexa.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/cortexa.c -o cortexa.o
" CC target/cortexm.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/cortexm.c -o cortexm.o
" CC crc32.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c crc32.c -o crc32.o
" CC target/efm32.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/efm32.c -o efm32.o
" CC exception.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c exception.c -o exception.o
" CC platforms/pc/gdb_if.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c platforms/pc/gdb_if.c -o gdb_if.o
" CC gdb_main.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c gdb_main.c -o gdb_main.o
" CC gdb_hostio.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c gdb_hostio.c -o gdb_hostio.o
" CC gdb_packet.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c gdb_packet.c -o gdb_packet.o
" CC hex_utils.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c hex_utils.c -o hex_utils.o
" CC target/jtag_devs.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/jtag_devs.c -o jtag_devs.o
" CC target/lmi.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/lmi.c -o lmi.o
" CC target/lpc_common.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/lpc_common.c -o lpc_common.o
" CC target/lpc11xx.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/lpc11xx.c -o lpc11xx.o
" CC target/lpc17xx.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/lpc17xx.c -o lpc17xx.o
" CC target/lpc15xx.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/lpc15xx.c -o lpc15xx.o
" CC target/lpc43xx.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/lpc43xx.c -o lpc43xx.o
" CC target/kinetis.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/kinetis.c -o kinetis.o
" CC main.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c main.c -o main.o
" CC morse.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c morse.c -o morse.o
" CC target/msp432.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/msp432.c -o msp432.o
" CC target/nrf51.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/nrf51.c -o nrf51.o
" CC target/nxpke04.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/nxpke04.c -o nxpke04.o
" CC platforms/LIBFTDI/platform.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c platforms/LIBFTDI/platform.c -o platform.o
" CC target/sam3x.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/sam3x.c -o sam3x.o
" CC target/sam4l.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/sam4l.c -o sam4l.o
" CC target/samd.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/samd.c -o samd.o
" CC target/stm32f1.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/stm32f1.c -o stm32f1.o
" CC target/stm32f4.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/stm32f4.c -o stm32f4.o
" CC target/stm32h7.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/stm32h7.c -o stm32h7.o
" CC target/stm32l0.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/stm32l0.c -o stm32l0.o
" CC target/stm32l4.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/stm32l4.c -o stm32l4.o
" CC target/target.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/target.c -o target.o
" CC platforms/common/timing.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c platforms/common/timing.c -o timing.o
" CC platforms/LIBFTDI/swdptap.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c platforms/LIBFTDI/swdptap.c -o swdptap.o
" CC target/swdptap_generic.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/swdptap_generic.c -o swdptap_generic.o
" CC target/jtag_scan.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/jtag_scan.c -o jtag_scan.o
" CC platforms/LIBFTDI/jtagtap.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c platforms/LIBFTDI/jtagtap.c -o jtagtap.o
" CC target/jtagtap_generic.c"
gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -O2 -std=gnu99 -g3 -MD -I. -Iinclude -Iplatforms/common -Iplatforms/LIBFTDI -DLIBFTDI -DENABLE_DEBUG -Wno-cast-function-type -c target/jtagtap_generic.c -o jtagtap_generic.o
" LD blackmagic"
gcc -o blackmagic adiv5.o adiv5_jtagdp.o adiv5_swdp.o command.o cortexa.o cortexm.o crc32.o efm32.o exception.o gdb_if.o gdb_main.o gdb_hostio.o gdb_packet.o hex_utils.o jtag_devs.o lmi.o lpc_common.o lpc11xx.o lpc17xx.o lpc15xx.o lpc43xx.o kinetis.o main.o morse.o msp432.o nrf51.o nxpke04.o platform.o sam3x.o sam4l.o samd.o stm32f1.o stm32f4.o stm32h7.o stm32l0.o stm32l4.o target.o timing.o swdptap.o swdptap_generic.o jtag_scan.o jtagtap.o jtagtap_generic.o -O2 -lftdi1 -lusb-1.0 -lws2_32
adiv5.o: In function `ap_mem_access_setup':
C:\DataRoot\Projects\blackmagic\src/target/adiv5.c:546: undefined reference to `adiv5_ap_write'
adiv5.o: In function `adiv5_mem_read32':
C:\DataRoot\Projects\blackmagic\src/target/adiv5.c:252: undefined reference to `adiv5_mem_read'
C:\DataRoot\Projects\blackmagic\src/target/adiv5.c:252: undefined reference to `adiv5_mem_read'
C:\DataRoot\Projects\blackmagic\src/target/adiv5.c:252: undefined reference to `adiv5_mem_read'
C:\DataRoot\Projects\blackmagic\src/target/adiv5.c:252: undefined reference to `adiv5_mem_read'
C:\DataRoot\Projects\blackmagic\src/target/adiv5.c:252: undefined reference to `adiv5_mem_read'
adiv5.o: In function `adiv5_new_ap':
C:\DataRoot\Projects\blackmagic\src/target/adiv5.c:402: undefined reference to `adiv5_ap_read'
C:\DataRoot\Projects\blackmagic\src/target/adiv5.c:403: undefined reference to `adiv5_ap_read'
C:\DataRoot\Projects\blackmagic\src/target/adiv5.c:417: undefined reference to `adiv5_ap_read'
C:\DataRoot\Projects\blackmagic\src/target/adiv5.c:418: undefined reference to `adiv5_ap_read'
C:\DataRoot\Projects\blackmagic\src/target/adiv5.c:419: undefined reference to `adiv5_ap_read'
adiv5.o: In function `adiv5_mem_write':
C:\DataRoot\Projects\blackmagic\src/target/adiv5.c:656: undefined reference to `adiv5_mem_write_sized'
cortexa.o: In function `apb_write':
C:\DataRoot\Projects\blackmagic\src/target/cortexa.c:190: undefined reference to `adiv5_ap_write'
cortexa.o: In function `apb_read':
C:\DataRoot\Projects\blackmagic\src/target/cortexa.c:199: undefined reference to `adiv5_ap_write'
cortexa.o: In function `cortexa_probe':
C:\DataRoot\Projects\blackmagic\src/target/cortexa.c:346: undefined reference to `adiv5_ap_write'
cortexm.o: In function `cortexm_regs_write':
C:\DataRoot\Projects\blackmagic\src/target/cortexm.c:510: undefined reference to `adiv5_ap_write'
C:\DataRoot\Projects\blackmagic\src/target/cortexm.c:518: undefined reference to `adiv5_ap_write'
cortexm.o:C:\DataRoot\Projects\blackmagic\src/target/cortexm.c:466: more undefined references to `adiv5_ap_write' follow
cortexm.o: In function `cortexm_mem_write_sized':
C:\DataRoot\Projects\blackmagic\src/target/cortexm.c:542: undefined reference to `adiv5_mem_write_sized'
cortexm.o: In function `cortexm_mem_read':
C:\DataRoot\Projects\blackmagic\src/target/cortexm.c:222: undefined reference to `adiv5_mem_read'
kinetis.o: In function `kinetis_mdm_cmd_erase_mass':
C:\DataRoot\Projects\blackmagic\src/target/kinetis.c:431: undefined reference to `adiv5_ap_read'
C:\DataRoot\Projects\blackmagic\src/target/kinetis.c:432: undefined reference to `adiv5_ap_read'
C:\DataRoot\Projects\blackmagic\src/target/kinetis.c:454: undefined reference to `adiv5_ap_write'
C:\DataRoot\Projects\blackmagic\src/target/kinetis.c:457: undefined reference to `adiv5_ap_read'
C:\DataRoot\Projects\blackmagic\src/target/kinetis.c:462: undefined reference to `adiv5_ap_read'
C:\DataRoot\Projects\blackmagic\src/target/kinetis.c:428: undefined reference to `adiv5_ap_write'
nrf51.o: In function `nrf51_mdm_cmd_erase_mass':
C:\DataRoot\Projects\blackmagic\src/target/nrf51.c:414: undefined reference to `adiv5_ap_read'
C:\DataRoot\Projects\blackmagic\src/target/nrf51.c:420: undefined reference to `adiv5_ap_write'
C:\DataRoot\Projects\blackmagic\src/target/nrf51.c:424: undefined reference to `adiv5_ap_read'
C:\DataRoot\Projects\blackmagic\src/target/nrf51.c:428: undefined reference to `adiv5_ap_read'
C:\DataRoot\Projects\blackmagic\src/target/nrf51.c:429: undefined reference to `adiv5_ap_read'
collect2.exe: error: ld returned 1 exit status
make: *** [blackmagic] Error 1
PS C:\DataRoot\Projects\blackmagic\src>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment