Opened 8 years ago

Closed 7 years ago

#49902 closed defect (duplicate)

soprano fails to build on 10.11.1 (via krusader install)

Reported by: petrov@… Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: soprano

Description

I have new iMac and perform initial tuning for Android\iOS development. xCode installed from appStore before initial install of macports, Xcode command-line tools installed after macports instal && sync. Also, installed:

  • Android studio 1.5;
  • Android SDK;
  • Three versions of JVM:
    bash-3.2$ pwd
    /Library/Java/JavaVirtualMachines
    bash-3.2$ ls -l
    total 0
    drwxr-xr-x  3 root  wheel  102 15 июл 00:52 1.6.0.jdk
    drwxr-xr-x  3 root  wheel  102 26 ноя 17:47 jdk1.7.0_79.jdk
    drwxr-xr-x  3 root  wheel  102  3 дек 13:00 jdk1.8.0_65.jdk
    

what else... macports installed and synced via svn, because rsync TCP-ports is closed due to firewall restrictions

Attachments (1)

main.log (633.4 KB) - added by petrov@… 8 years ago.
log for soprano build process

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by petrov@…

Attachment: main.log added

log for soprano build process

comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: soprano krusader removed
Owner: changed from macports-tickets@… to pixilla@…

comment:2 Changed 8 years ago by petrov@…

I think I solve the problem and soprano now builds and can be installed on Mac OS with 64x Java only. The solution is: When compile halts with message

ndefined symbols for architecture i386:
  "_JNI_CreateJavaVM", referenced from:
      JNIWrapper::instance() in jniwrapper.cpp.o
ld: symbol(s) not found for architecture i386

go to the build directory

/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_devel_soprano

then go inside

soprano/work/build/backends/sesame2/CMakeFiles/soprano_sesame2backend.dir

locate the file

flags.make

find the line in it

CXX_FLAGS = -pipe -Os -stdlib=libc++  -DNDEBUG -arch x86_64 -arch i386 -mmacosx-version-min=10.11 -fPIC

and remove flag "-arch i386" from that line. That's it. After that port of soprano can be compiled without errors on linking java x32 libs:

sudo port build soprano
sudo port install soprano

comment:3 Changed 8 years ago by pixilla (Bradley Giesbrecht)

Do you have +universal in prefix/etc/macports/variants.conf?

comment:4 Changed 8 years ago by petrov@…

Yep:

iMac-Petrov:~ A.Petrov$ cat /opt/local/etc/macports/variants.conf
# -----===== Comments are skipped =====-----#
# Example:
#   -x11 +no_x11 +quartz
#   +gcc48
#   +universal
+universal
iMac-Petrov:~ A.Petrov$

comment:5 Changed 8 years ago by pixilla (Bradley Giesbrecht)

I just built soprano with +universal in variants.conf on El Capitan.

Did you build any ports before adding +universal to variants.conf?

comment:6 Changed 8 years ago by petrov@…

Timestamp of modifying the variants.conf:

bash-3.2$ ls -l /opt/local/etc/macports/variants.*
-rw-r--r--  1 root  admin  472  2 dec 16:37 /opt/local/etc/macports/variants.conf
-r--r--r--  1 root  admin  461  1 oct 22:42 /opt/local/etc/macports/variants.conf.default
bash-3.2$ 

other timestamps:

list of distfiles "chunks", sorted by date:

bash-3.2$ ls -lt /opt/local/var/macports/distfiles/
total 0
drwxr-xr-x   3 macports  admin   102 21 jan 12:43 krusader
drwxr-xr-x   2 macports  admin    68 21 jan 12:31 kde4-runtime
drwxr-xr-x   3 macports  admin   102 21 jan 12:28 samba3
///---------------
drwxr-xr-x   3 macports  admin   102  2 dec 17:08 attica
drwxr-xr-x   3 macports  admin   102  2 dec 17:08 phonon
drwxr-xr-x   3 macports  admin   102  2 dec 17:08 automoc
drwxr-xr-x   3 macports  admin   102  2 dec 16:36 qt4-mac
drwxr-xr-x   3 macports  admin   102  2 dec 16:34 lcms
drwxr-xr-x   5 macports  admin   170  2 dec 12:03 wine
drwxr-xr-x   3 macports  admin   102  2 dec 12:01 xorg-libXxf86vm
drwxr-xr-x   3 macports  admin   102  2 dec 12:01 xorg-xf86vidmodeproto
drwxr-xr-x   3 macports  admin   102  2 dec 12:01 libGLU
//----------------
drwxr-xr-x   4 macports  admin   136  1 dec 17:32 freetype
drwxr-xr-x   3 macports  admin   102  1 dec 17:30 m4
drwxr-xr-x   3 macports  admin   102  1 dec 17:29 bison
drwxr-xr-x   3 macports  admin   102  1 dec 17:05 mc
drwxr-xr-x   3 macports  admin   102  1 dec 17:02 slang2
drwxr-xr-x   3 macports  admin   102  1 dec 17:00 pkgconfig
drwxr-xr-x   3 macports  admin   102  1 dec 16:59 glib2
drwxr-xr-x   3 macports  admin   102  1 dec 16:58 zlib

sort of binaries:

bash-3.2$ ls -l /opt/local/bin/automoc4 
-rwxr-xr-x  1 root  admin  139792  3 dec 10:05 /opt/local/bin/automoc4
bash-3.2$ ls -l /opt/local/bin/wine
-rwxr-xr-x  1 root  admin  170  2 dec 12:10 /opt/local/bin/wine
bash-3.2$ ls -l /opt/local/bin/mc
-rwxr-xr-x  1 root  admin  864388  1 dec 17:06 /opt/local/bin/mc

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

Resolution: duplicate
Status: newclosed

Duplicate of #45745.

Note: See TracTickets for help on using tickets.