Opened 13 years ago

Closed 13 years ago

#30274 closed defect (fixed)

avrdude @5.10 doesn't build with parallel make

Reported by: andersm (Anders Montonen) Owned by: bd34n (Brian Dean)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: nomis52@…
Port: avrdude

Description

There's a race condition in avrdude's build process which means it often fails when using parallel make.

:msg:configure --->  Building avrdude
:debug:build build phase started at Thu Jul 21 15:51:16 EEST 2011
:debug:build Executing org.macports.build (avrdude)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avrdude/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avrdude/work/avrdude-5.10" && /usr/bin/make -j4 all'
:info:build /usr/bin/make  all-recursive
:info:build /bin/sh ./ylwrap config_gram.y y.tab.c config_gram.c y.tab.h config_gram.h y.output config_gram.output -- bison -y  -d
:info:build /bin/sh ./ylwrap lexer.l lex.yy.c lexer.c -- flex  
:info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I.  -DCONFIG_DIR=\"/opt/local/etc\" -I/opt/local/include -Wall -O2 -arch x86_64 -MT libavrdude_a-arduino.o -MD -MP -MF .deps/libavrdude_a-arduino.Tpo -c -o libavrdude_a-arduino.o `test -f 'arduino.c' || echo './'`arduino.c
:info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I.  -DCONFIG_DIR=\"/opt/local/etc\" -I/opt/local/include -Wall -O2 -arch x86_64 -MT libavrdude_a-avr.o -MD -MP -MF .deps/libavrdude_a-avr.Tpo -c -o libavrdude_a-avr.o `test -f 'avr.c' || echo './'`avr.c
:info:build mv -f .deps/libavrdude_a-arduino.Tpo .deps/libavrdude_a-arduino.Po
:info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I.  -DCONFIG_DIR=\"/opt/local/etc\" -I/opt/local/include -Wall -O2 -arch x86_64 -MT libavrdude_a-avr910.o -MD -MP -MF .deps/libavrdude_a-avr910.Tpo -c -o libavrdude_a-avr910.o `test -f 'avr910.c' || echo './'`avr910.c
:info:build mv -f .deps/libavrdude_a-avr.Tpo .deps/libavrdude_a-avr.Po
:info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I.  -DCONFIG_DIR=\"/opt/local/etc\" -I/opt/local/include -Wall -O2 -arch x86_64 -MT libavrdude_a-avrpart.o -MD -MP -MF .deps/libavrdude_a-avrpart.Tpo -c -o libavrdude_a-avrpart.o `test -f 'avrpart.c' || echo './'`avrpart.c
:info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I.  -DCONFIG_DIR=\"/opt/local/etc\" -I/opt/local/include -Wall -O2 -arch x86_64 -MT libavrdude_a-bitbang.o -MD -MP -MF .deps/libavrdude_a-bitbang.Tpo -c -o libavrdude_a-bitbang.o `test -f 'bitbang.c' || echo './'`bitbang.c
:info:build mv -f .deps/libavrdude_a-avrpart.Tpo .deps/libavrdude_a-avrpart.Po
:info:build mv -f .deps/libavrdude_a-avr910.Tpo .deps/libavrdude_a-avr910.Po
:info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I.  -DCONFIG_DIR=\"/opt/local/etc\" -I/opt/local/include -Wall -O2 -arch x86_64 -MT libavrdude_a-buspirate.o -MD -MP -MF .deps/libavrdude_a-buspirate.Tpo -c -o libavrdude_a-buspirate.o `test -f 'buspirate.c' || echo './'`buspirate.c
:info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I.  -DCONFIG_DIR=\"/opt/local/etc\" -I/opt/local/include -Wall -O2 -arch x86_64 -MT libavrdude_a-butterfly.o -MD -MP -MF .deps/libavrdude_a-butterfly.Tpo -c -o libavrdude_a-butterfly.o `test -f 'butterfly.c' || echo './'`butterfly.c
:info:build mv -f .deps/libavrdude_a-bitbang.Tpo .deps/libavrdude_a-bitbang.Po
:info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I.  -DCONFIG_DIR=\"/opt/local/etc\" -I/opt/local/include -Wall -O2 -arch x86_64 -MT libavrdude_a-config.o -MD -MP -MF .deps/libavrdude_a-config.Tpo -c -o libavrdude_a-config.o `test -f 'config.c' || echo './'`config.c
:info:build config.c:33:25: error: config_gram.h: No such file or directory
:info:build config.c: In function 'free_token':
:info:build config.c:111: error: 'TKN_STRING' undeclared (first use in this function)
:info:build config.c:111: error: (Each undeclared identifier is reported only once
:info:build config.c:111: error: for each function it appears in.)
:info:build config.c:112: error: 'TKN_ID' undeclared (first use in this function)
:info:build config.c: In function 'number':
:info:build config.c:143: error: 'TKN_NUMBER' undeclared (first use in this function)
:info:build config.c: In function 'hexnumber':
:info:build config.c:160: error: 'TKN_NUMBER' undeclared (first use in this function)
:info:build config.c: In function 'string':
:info:build config.c:182: error: 'TKN_STRING' undeclared (first use in this function)
:info:build config.c: In function 'id':
:info:build config.c:207: error: 'TKN_ID' undeclared (first use in this function)
:info:build buspirate.c: In function 'buspirate_enable':
:info:build buspirate.c:536: warning: pointer targets in initialization differ in signedness
:info:build buspirate.c:545: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
:info:build buspirate.c:545: warning: pointer targets in passing argument 2 of 'buspirate_send_bin' differ in signedness
:info:build config.c: In function 'print_token':
:info:build config.c:244: error: 'TKN_NUMBER' undeclared (first use in this function)
:info:build config.c:248: error: 'TKN_STRING' undeclared (first use in this function)
:info:build config.c:252: error: 'TKN_ID' undeclared (first use in this function)
:info:build make[2]: *** [libavrdude_a-config.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build mv -f .deps/libavrdude_a-butterfly.Tpo .deps/libavrdude_a-butterfly.Po
:info:build mv -f .deps/libavrdude_a-buspirate.Tpo .deps/libavrdude_a-buspirate.Po
:info:build updating config_gram.h
:info:build make[1]: *** [all-recursive] Error 1
:info:build make: *** [all] Error 2

Change History (3)

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to bsd@…

comment:2 Changed 13 years ago by nomis52@…

Cc: nomis52@… added

Cc Me!

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

5.11.1 seems OK. (Reopen if not.)

Note: See TracTickets for help on using tickets.