Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#49567 closed defect (fixed)

akonadi: build fails

Reported by: steve.kaeppler@… Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: akonadi

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Problem #1:

sudo port upgrade outdated
--->  Computing dependencies for akonadi
--->  Building akonadi
Error: org.macports.build for port akonadi returned: command execution
failed
Please see the log file for port akonadi for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Problem #2:

pdflatex
dyld: Library not loaded: /opt/local/lib/libpoppler.55.dylib
  Referenced from: /opt/local/bin/pdflatex
  Reason: image not found
Trace/BPT trap: 5

It is not good when one thing not upgrading screws up the whole system. Is my only option to reinstall macports? Done that once already, but it takes time I don't have to do and is bad.

Attachments (4)

error.txt (4.9 KB) - added by steve.kaeppler@… 9 years ago.
newerror.txt (1.5 MB) - added by steve.kaeppler@… 9 years ago.
New error after clean build
newerror1711.txt (1.3 MB) - added by steve.kaeppler@… 9 years ago.
akonadi-cxx11.diff (1.7 KB) - added by ryandesign (Ryan Carsten Schmidt) 9 years ago.
proposed patch

Change History (14)

Changed 9 years ago by steve.kaeppler@…

Attachment: error.txt added

comment:1 Changed 9 years ago by steve.kaeppler@…

Cc: steve.kaeppler@… added

Cc Me!

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

Cc: steve.kaeppler@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to nicos@…
Port: pdflatex removed
Summary: sudo port upgrade outdated failure of akonadi and pdflatexakonadi: build fails

One problem per ticket, please. Since you've filed two tickets for the same problems, let's let this ticket be about akonadi and #49566 be about pdflatex.

Reinstalling MacPorts is a drastic step that is seldom necessary.

comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

The log you attached is not from a clean build attempt. Please "sudo port clean akonadi", then try again, and if it fails again, attach the new main.log file.

comment:4 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Cc Me!

Changed 9 years ago by steve.kaeppler@…

Attachment: newerror.txt added

New error after clean build

comment:5 Changed 9 years ago by steve.kaeppler@…

SKaeppler-LT-2:Volumes srkaeppler$ sudo port clean akonadi
Password:
--->  Cleaning akonadi
SKaeppler-LT-2:Volumes srkaeppler$ sudo port install akonadi
--->  Computing dependencies for akonadi
--->  Fetching archive for akonadi
--->  Attempting to fetch akonadi-1.13.1.20141210_1+mariadb55.darwin_12.x86_64.tbz2 from http://packages.macports.org/akonadi
--->  Attempting to fetch akonadi-1.13.1.20141210_1+mariadb55.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/akonadi
--->  Attempting to fetch akonadi-1.13.1.20141210_1+mariadb55.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/akonadi
--->  Fetching distfiles for akonadi
--->  Verifying checksums for akonadi
--->  Extracting akonadi
--->  Configuring akonadi
--->  Building akonadi
Error: org.macports.build for port akonadi returned: command execution failed
Please see the log file for port akonadi for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port akonadi failed
SKaeppler-LT-2:Volumes srkaeppler$     /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/main.log
-bash: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/main.log: Permission denied
SKaeppler-LT-2:Volumes srkaeppler$ more /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/main.log > ~srkaeppler/Desktop/newerror.txt

comment:6 Changed 9 years ago by steve.kaeppler@…

SKaeppler-LT-2:Volumes srkaeppler$ sudo port clean akonadi
--->  Cleaning akonadi
SKaeppler-LT-2:Volumes srkaeppler$ sudo port upgrade outdated
--->  Computing dependencies for akonadi
--->  Fetching archive for akonadi
--->  Attempting to fetch akonadi-1.13.1.20141210_1+mariadb55.darwin_12.x86_64.tbz2 from http://packages.macports.org/akonadi
--->  Attempting to fetch akonadi-1.13.1.20141210_1+mariadb55.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/akonadi
--->  Attempting to fetch akonadi-1.13.1.20141210_1+mariadb55.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/akonadi
--->  Fetching distfiles for akonadi
--->  Verifying checksums for akonadi
--->  Extracting akonadi
--->  Configuring akonadi
--->  Building akonadi
Error: org.macports.build for port akonadi returned: command execution failed
Please see the log file for port akonadi for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
SKaeppler-LT-2:Volumes srkaeppler$ /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/main.log > ~srkaeppler/Desktop/newerror1711.txt
-bash: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/main.log: Permission denied
SKaeppler-LT-2:Volumes srkaeppler$ more /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_akonadi/akonadi/main.log > ~srkaeppler/Desktop/newerror1711.txt

Not sure what is going on. Best I could figure is that maybe there is a compiler error of some sort?

If I am doing something ridiculously stupid, let me know.

Changed 9 years ago by steve.kaeppler@…

Attachment: newerror1711.txt added

comment:7 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Thanks. I see the problem is related to undefined symbols in boost. I see that you are on OS X 10.8 Mountain Lion, which uses libstdc++ by default. I see that akonadi seems to require C++11, which libstdc++ does not support. I see that the akonadi port tries to do some fooling around with the compiler blacklist/whitelist to use gcc5 to try to support C++11. I don't see how this could possibly work since it would require all dependencies (including boost) to use that same compiler, which boost does not. I am attaching a patch that I propose as the fix. Nicolas, what do you think?

I have not yet tried to reproduce the problem on Mountain Lion, but I will try to do so now.

Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: akonadi-cxx11.diff added

proposed patch

comment:8 in reply to:  7 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign@…:

I have not yet tried to reproduce the problem on Mountain Lion, but I will try to do so now.

Issue confirmed.

comment:9 Changed 9 years ago by NicosPavlov

Resolution: fixed
Status: newclosed

Alright. The change was introduced following ticket #49299 in an attempt to enable compilation, but if this just induces linking problems, then there is no way around it. Some cleanup committed in r142081, and patch of this ticket committed in r142082. Akonadi also fully requires c++11 at configuration, so there is no possibility of building a "reduced" port which could be compliant with older OSes.

Thanks for the input, Ryan.

comment:10 in reply to:  9 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to nicos@…:

so there is no possibility of building a "reduced" port which could be compliant with older OSes.

This should work fine on older OSes, provided they've been configured as per LibcxxOnOlderSystems. I don't have test systems set up with that however so I haven't tested it.

Note: See TracTickets for help on using tickets.