Bug 223749 - net/netatalk3 fails to build with: /usr/bin/ld error ... "recompile with -fPIC"
Summary: net/netatalk3 fails to build with: /usr/bin/ld error ... "recompile with -fPIC"
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Joe Marcus Clarke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-19 15:09 UTC by johan van Zanten
Modified: 2018-02-24 12:07 UTC (History)
0 users

See Also:


Attachments
poudriere build log for netatalk3 (199.51 KB, text/x-log)
2017-11-19 15:09 UTC, johan van Zanten
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description johan van Zanten 2017-11-19 15:09:32 UTC
Created attachment 188117 [details]
poudriere build log for netatalk3

This seems similar to 208692.

Please see the attached build log from poudriere.  I'm building over 800 packages for 11.1-RELEASE, and this is the only package failing.
Comment 1 Joe Marcus Clarke freebsd_committer freebsd_triage 2017-12-28 23:00:26 UTC
I cannot reproduce.  And when looking at your build log, I see:

checking if cc PIC flag -fPIC -DPIC works... no

In mine, I get:

checking if cc PIC flag -fPIC -DPIC works... yes

So you should look at the config.log to see why this test is failing.  If, after that, you believe there is an issue with netatalk, please open a new bug with the config.log.
Comment 2 johan van Zanten 2018-02-24 12:07:23 UTC
This ticket does not need to be reopened -- i'm just following up because the problem is resolved and i want to add a bit of info, in case it helps someone else.

Joe, thank you for your help in identifying the problem -- i believe you are correct in highlighting the failure of the 'cc PIC' line in configure section of the build log.

I have been using ccache with poudriere for some time. After your comment, I did try to remove it from the build process for netatalk3, but still could not get netatalk3 to compile.

A more recent build of netatalk3 on 2018-01-28 succeeded, and with ccache in use.  I noticed in the diff of the failed and working build logs that ccache is a different version:

< ===>   Installing existing package /packages/All/ccache-3.3.4_8.txz
< [pkg.fnord.] Installing ccache-3.3.4_8...
< [pkg.fnord.] Extracting ccache-3.3.4_8: .......... done
---
> ===>   Installing existing package /packages/All/ccache-3.3.5.txz
> [pkg.fnord.] Installing ccache-3.3.5...
> [pkg.fnord.] Extracting ccache-3.3.5: .......... done


It's possible that there was some cruft in my build environment (ccache?) that was causing the build to fail and was cleared out by the update to the newer ccache, or the newer version is compatible, where the older was not.

I have about 20 FreeBSD 11 build logs back to 2017-11-18. and the netatalk3 fails in every one. ccache version is always 3.3.4_8. (Before that i was only building for FreeBSD 10, and was not building the netatalk package.)