can't compile

21 views
Skip to first unread message

Craig Hollabaugh

unread,
May 14, 2018, 11:56:03 AM5/14/18
to beagleg-dev
Henner,

I was able to compile last week and was playing with source code. Decided to pull a new source version this morning and beagleg no longer compiles.

root@bb[505]: CONFIG_FLAGS=-D_DISABLE_PWM_TIMERS make
make -e -C src all
make[1]: Entering directory '/root/beagleg/src'
g++ -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/BUMPS -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"BUMPS"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"' -D_DISABLE_PWM_TIMERS  -c  machine-control.cc -o machine-control.o
g++ -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/BUMPS -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"BUMPS"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"' -D_DISABLE_PWM_TIMERS  -c  motor-operations.cc -o motor-operations.o
g++ -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/BUMPS -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"BUMPS"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"' -D_DISABLE_PWM_TIMERS  -c  sim-firmware.cc -o sim-firmware.o
g++ -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/BUMPS -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"BUMPS"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"' -D_DISABLE_PWM_TIMERS  -c  pru-motion-queue.cc -o pru-motion-queue.o
make -C ../am335x_pru_package
make[2]: Entering directory '/root/beagleg/am335x_pru_package'
make[2]: *** No targets specified and no makefile found.  Stop.
make[2]: Leaving directory '/root/beagleg/am335x_pru_package'
Makefile:141: recipe for target '../am335x_pru_package/pru_sw/utils/pasm' failed
make[1]: *** [../am335x_pru_package/pru_sw/utils/pasm] Error 2
make[1]: Leaving directory '/root/beagleg/src'
Makefile:32: recipe for target 'all' failed
make: *** [all] Error 2


looks like commit ab89786 broke something.

Craig

Hartley Sweeten

unread,
May 14, 2018, 12:12:03 PM5/14/18
to Craig Hollabaugh, beagleg-dev

On Monday, May 14, 2018 8:56 AM, Craig Hollabaugh wrote:

> I was able to compile last week and was playing with source code. Decided

> to pull a new source version this morning and beagleg no longer compiles.

 

Hi Craig. Looks like Henner was busy this weekend… 😉

 

I just pulled the latest version when it builds fine on my system:

 

$ git pull

$ make clean

$ make dist-clean

$ make CXX=g++-4.7 BEAGLEG_HARDWARE_TARGET=VGEN5

make -e -C src all

make[1]: Entering directory `/home/debian/src/beagleg/src'

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  machine-control.cc -o machine-control.o

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  motor-operations.cc -o motor-operations.o

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  sim-firmware.cc -o sim-firmware.o

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  pru-motion-queue.cc -o pru-motion-queue.o

make -C ../am335x_pru_package

make[2]: Entering directory `/home/debian/src/beagleg/am335x_pru_package'

cd pru_sw/utils/pasm_source && ./linuxbuild

cd pru_sw/app_loader/interface && CROSS_COMPILE= make

make[3]: Entering directory `/home/debian/src/beagleg/am335x_pru_package/pru_sw/app_loader/interface'

gcc -I. -Wall -I../include  -c -g -O0 -D__DEBUG -o debug/prussdrv.o prussdrv.c

ar rc ../lib/libprussdrvd.a debug/prussdrv.o

gcc -I. -Wall -I../include  -c -O3 -mtune=cortex-a8 -march=armv7-a -o release/prussdrv.o prussdrv.c

ar rc ../lib/libprussdrv.a release/prussdrv.o

gcc -I. -Wall -I../include  -c -fPIC -g -O0 -D__DEBUG -o debug/prussdrv_PIC.o prussdrv.c

gcc -shared -o ../lib/libprussdrvd.so debug/prussdrv_PIC.o

gcc -I. -Wall -I../include  -c -fPIC -O3 -mtune=cortex-a8 -march=armv7-a -o release/prussdrv_PIC.o prussdrv.c

gcc -shared -o ../lib/libprussdrv.so release/prussdrv_PIC.o

make[3]: Leaving directory `/home/debian/src/beagleg/am335x_pru_package/pru_sw/app_loader/interface'

make[2]: Leaving directory `/home/debian/src/beagleg/am335x_pru_package'

../am335x_pru_package/pru_sw/utils/pasm -I../hardware/VGEN5 -V3 -c motor-interface-pru.p

 

 

PRU Assembler Version 0.87

Copyright (C) 2005-2013 by Texas Instruments Inc.

 

 

Pass 2 : 0 Error(s), 0 Warning(s)

 

Writing Code Image of 731 word(s)

 

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  uio-pruss-interface.cc -o uio-pruss-interface.o

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  gcode-machine-control.cc -o gcode-machine-control.o

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  determine-print-stats.cc -o determine-print-stats.o

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  generic-gpio.cc -o generic-gpio.o

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  pwm-timer.cc -o pwm-timer.o

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  config-parser.cc -o config-parser.o

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  machine-control-config.cc -o machine-control-config.o

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  hardware-mapping.cc -o hardware-mapping.o

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  spindle-control.cc -o spindle-control.o

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  planner.cc -o planner.o

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  adc.cc -o adc.o

make -C common

make[2]: Entering directory `/home/debian/src/beagleg/src/common'

g++-4.7 -std=c++11 -Wall -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3  -c  logging.cc -o logging.o

g++-4.7 -std=c++11 -Wall -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3  -c  string-util.cc -o string-util.o

g++-4.7 -std=c++11 -Wall -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3  -c  fd-mux.cc -o fd-mux.o

g++-4.7 -std=c++11 -Wall -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3  -c  linebuf-reader.cc -o linebuf-reader.o

ar rcs libbeaglegbase.a logging.o string-util.o fd-mux.o linebuf-reader.o

make[2]: Leaving directory `/home/debian/src/beagleg/src/common'

make -C gcode-parser

make[2]: Entering directory `/home/debian/src/beagleg/src/gcode-parser'

g++-4.7 -std=c++11 -Wall -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -I../  -c  gcode-parser.cc -o gcode-parser.o

g++-4.7 -std=c++11 -Wall -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -I../  -c  gcode-streamer.cc -o gcode-streamer.o

g++-4.7 -std=c++11 -Wall -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -I../  -c  arc-gen.cc -o arc-gen.o

g++-4.7 -std=c++11 -Wall -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -I../  -c  simple-lexer.cc -o simple-lexer.o

g++-4.7 -std=c++11 -Wall -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -I../  -c  gcode-parser-config.cc -o gcode-parser-config.o

ar rcs libgcodeparser.a gcode-parser.o gcode-streamer.o arc-gen.o simple-lexer.o gcode-parser-config.o

make[2]: Leaving directory `/home/debian/src/beagleg/src/gcode-parser'

g++-4.7 -o ../machine-control machine-control.o motor-operations.o sim-firmware.o pru-motion-queue.o uio-pruss-interface.o gcode-machine-control.o determine-print-stats.o generic-gpio.o pwm-timer.o config-parser.o machine-control-config.o hardware-mapping.o spindle-control.o planner.o adc.o common/libbeaglegbase.a gcode-parser/libgcodeparser.a common/libbeaglegbase.a gcode-parser/libgcodeparser.a ../am335x_pru_package/pru_sw/app_loader/lib/libprussdrv.a -lpthread -lm

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  gcode-print-stats.cc -o gcode-print-stats.o

g++-4.7 -o ../gcode-print-stats gcode-print-stats.o gcode-machine-control.o determine-print-stats.o generic-gpio.o pwm-timer.o config-parser.o machine-control-config.o hardware-mapping.o spindle-control.o planner.o adc.o common/libbeaglegbase.a gcode-parser/libgcodeparser.a common/libbeaglegbase.a gcode-parser/libgcodeparser.a -lpthread -lm

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  gcode2ps.cc -o gcode2ps.o

g++-4.7 -std=c++11 -Wall -I. -I../am335x_pru_package/pru_sw/app_loader/include -I../hardware/VGEN5 -D_XOPEN_SOURCE=500 -mtune=cortex-a8 -march=armv7-a -O3 -DCAPE_NAME='"VGEN5"' -DBEAGLEG_VERSION='"2018-05-13 (commit=ab89786)"'   -c  hershey.cc -o hershey.o

g++-4.7 -o gcode2ps gcode2ps.o hershey.o gcode-machine-control.o determine-print-stats.o generic-gpio.o pwm-timer.o config-parser.o machine-control-config.o hardware-mapping.o spindle-control.o planner.o adc.o common/libbeaglegbase.a gcode-parser/libgcodeparser.a -lpthread -lm

make[1]: Leaving directory `/home/debian/src/beagleg/src'

 

It appears you may have something messed up in your tree. Try cloning a

new copy and see if that builds.

 

Regards,

Hartley

Leonardo Romor

unread,
May 14, 2018, 12:15:07 PM5/14/18
to Hartley Sweeten, Craig Hollabaugh, beagleg-dev
Hi Craig, 

It appears you may have something messed up in your tree. Try cloning a

new copy and see if that builds.


could it be that you forgot the --recursive to include the submodules?

Regards,

Leo

--
You received this message because you are subscribed to the Google Groups "beagleg-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleg-dev...@googlegroups.com.
To post to this group, send email to beagl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleg-dev/CO2PR01MB216848C8E4DBA69B9D7BBF69D09C0%40CO2PR01MB2168.prod.exchangelabs.com.
For more options, visit https://groups.google.com/d/optout.

Henner Zeller

unread,
May 14, 2018, 1:09:50 PM5/14/18
to Leonardo Romor, Hartley Sweeten, Craig Hollabaugh, beagleg-dev
On 14 May 2018 at 09:14, Leonardo Romor <leonard...@gmail.com> wrote:
Hi Craig, 

It appears you may have something messed up in your tree. Try cloning a

new copy and see if that builds.


could it be that you forgot the --recursive to include the submodules?

I suspect that this is what is happening Craig.  Your build complains about the am335x_pru_package, which is a git submodule so by default an empty directory if the project is not checked out recursively.

-h


Regards,

Leo

To unsubscribe from this group and stop receiving emails from it, send an email to beagleg-dev+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "beagleg-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleg-dev+unsubscribe@googlegroups.com.

To post to this group, send email to beagl...@googlegroups.com.

Craig Hollabaugh

unread,
May 14, 2018, 1:30:19 PM5/14/18
to beagleg-dev
duh, yes, didn't clone recursively. compiles now, thanks. 

rm -rf beagleg
cd beagleg
CONFIG_FLAGS=-D_DISABLE_PWM_TIMERS make
ls -als machine-control 
-rwxr-xr-x 1 root root 196K May 14 17:26 machine-control

thanks guys.
Reply all
Reply to author
Forward
0 new messages