Problems compiling PCem

Support and general discussion.
Post Reply
Shoegazer
Posts: 8
Joined: Fri 16 Feb, 2018 2:37 am

Problems compiling PCem

Post by Shoegazer »

Hello, latest PCem source is failing to compile with Linux x64 using GCC 7.4.0, Specifically, I get:

Code: Select all

pcem-model.o: In function `at_pb520r_init':
model.c:(.text+0x1ff0): undefined reference to `aip_82091aa_init'
collect2: error: ld returned 1 exit status
Makefile:898: recipe for target 'pcem' failed
make[1]: *** [pcem] Error 1
make[1]: Leaving directory '/home/shoegazer/Desktop/pcem/pcem/src'
Makefile:365: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
The last successful compile was with this commit.

Any suggestions here are very much appreciated.
User avatar
SarahWalker
Site Admin
Posts: 1885
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Problems compiling PCem

Post by SarahWalker »

Run autoreconf then ./configure.
Shoegazer
Posts: 8
Joined: Fri 16 Feb, 2018 2:37 am

Re: Problems compiling PCem

Post by Shoegazer »

Thanks, Sarah. That worked. Out of curiosity, should that step be necessary from now on? I know autoreconf updates generated configuration files but I'm not entirely sure exactly what it's doing here.
User avatar
SarahWalker
Site Admin
Posts: 1885
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Problems compiling PCem

Post by SarahWalker »

It should always be considered necessary when building directly from the Bitbucket repo. I don't always run autoreconf before committing as it means booting up a Linux VM.
Shoegazer
Posts: 8
Joined: Fri 16 Feb, 2018 2:37 am

Re: Problems compiling PCem

Post by Shoegazer »

Got it, thanks.
Post Reply