Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#32088 closed defect (fixed)

libccd: 'always_inline' function could not be inlined in call to 'ccdVec3Dot': function not considered for inlining

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: mamoll (Mark Moll)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: libccd

Description

libccd does not compile for me on OS X 10.6.8 with Xcode 3.2.6:

cc -Wall -pedantic --std=gnu99 -I.  -c -o ccd.o ccd.c
./ccd/vec3.h: In function ‘ccdGJKPenetration’:
./ccd/vec3.h:304: error: ‘always_inline’ function could not be inlined in call to ‘ccdVec3Dot’: function not considered for inlining
./ccd/vec3.h:248: error: called from here
make: *** [ccd.o] Error 1

Same problem on the buildbot.

Attachments (1)

main.log (5.6 KB) - added by ryandesign (Ryan Carsten Schmidt) 12 years ago.

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

comment:1 Changed 12 years ago by mamoll (Mark Moll)

Resolution: fixed
Status: newclosed

Sorry. Should be fixed in r87300.

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Thank you for UsingTheRightCompiler but the part that actually fixed the problem was adding ${configure.cflags}, specifically ${configure.optflags} i.e. -O2, to the CFLAGS; looks like -O1, -O2, and -O3 work but the default -O0 does not.

Note: See TracTickets for help on using tickets.