Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Dec 2016 20:20:58 +0100
From:      Bernt Hansson <bah@bananmonarki.se>
To:        Kyle Evans <kevans91@ksu.edu>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>, Patrick Mahan <mahan@mahan.org>
Subject:   Re: Looking for some direction
Message-ID:  <cc286a44-22fc-74c2-e3ec-e5b51c16ca1d@bananmonarki.se>
In-Reply-To: <67f7a23c-d450-ee58-1b5b-50bf575468e8@bananmonarki.se>
References:  <e1509360-bd68-9ea7-3a97-57f8140c1683@mahan.org> <CACNAnaHjbnePKDCDVTX%2B=_FFN991Da84-WaEbd88Q7B8vHfCQQ@mail.gmail.com> <fde44802-c273-d8c4-9b15-e4860943daa4@mahan.org> <063f11ba-3f83-c713-5a79-01d4e632e35e@bananmonarki.se> <CACNAnaGUKLGDjkxG1LD-vOd6GX7eQaeju-LTVdjU_MtwhJq1xQ@mail.gmail.com> <149b286a-bf0a-4ef7-1636-f956253df2c2@bananmonarki.se> <CACNAnaETGk0B6Gk6z7eNQSgudEmix8cYwG43LiWMgtftvL_zgw@mail.gmail.com> <67f7a23c-d450-ee58-1b5b-50bf575468e8@bananmonarki.se>

next in thread | previous in thread | raw e-mail | index | archive | help


On 2016-12-06 19:50, Bernt Hansson wrote:
> On 2016-12-05 21:27, Kyle Evans wrote:
>> On Mon, Dec 5, 2016 at 2:13 PM, Bernt Hansson <bah@bananmonarki.se> 
>> wrote:
>>>> Hello!
>>>>
>>>> 1.) What ${ARCH} is this?
>>> Atmega328
>> Sorry, I should have more specific. =) What is the ARCH of the host 
>> system?
>>
>> The problem is that the JRE is choosing the wrong JSSC and it's
>> failing to link the JNI bits. It looks like the other instance of
>> problem here was due to some remnant of another JSSC laying around.
>> What do the following look like?
>>
>> 1.) `pkg info -x jdk`
>> 2.) `find /usr/local/share/linux-jdk* -name 'jssc*'`
>>
>> If you could give me the above, I would appreciate it. =) In worst
>> case scenario, if it's doable, the following steps seemed to resolve:
>>
>>> pkg delete -x jdk
>>> rm -r /usr/local/share/linux-jdk* (was empty, only some directories 
>>> left)
>>> pkg install arduino16
> I'm reluctant to use pkg delete -x jdk since that will remove a lot of 
> stuff, like these
>
> Installed packages to be REMOVED:
>         bootstrap-openjdk-r351880_1
>         openjdk8-8.112.16
>         rxtx-openjdk8-2.2p2_2
>         lucene-3.6.2
>         hamcrest-1.3
>         java-simple-serial-connector-2.8.0
>         apache-openoffice-4.1.3
>         apache-ant-1.9.7
>         arduino16-1.6.12_4
>         junit-4.12
>         jakarta-commons-lang-2.6
>         libastylej-arduino-2.05.1
>         listserialc-1.1.0
>         jakarta-commons-httpclient-3.1_1
>         jakarta-commons-codec-1.10
>         bsh-2.0.b6
>         jakarta-commons-logging-1.2
>
> Number of packages to be removed: 17
>
> Well the arduino16 just takes 2-4 minutes to compile.
>
> The other stuff takes a bit longer, like OOo, but I can do it if 
> that's what it takes.
>>> Knowing if that works for you as well would also be helpful.
> OK I'll run the bleeding pkg delete -x jdk and reinstall.
>
> I'll let you know the outcome.
And the outcome of the make command is:

===>  Patching for arduino16-1.6.12_4
===>  Applying FreeBSD patches for arduino16-1.6.12_4
/usr/bin/sed -i.bak -e 's|%%PREFIX%%|/usr/local|' 
/usr/ports/devel/arduino16/work/Arduino-1.6.12/build/..//arduino-core/src/processing/app/BaseNoGui.java
/usr/bin/sed -i.bak -e 's:<BINARY_LOCATION>:arduino:' -e 
's:<ICON_NAME>:arduino:' 
/usr/ports/devel/arduino16/work/Arduino-1.6.12/build/..//build/linux/dist/desktop.template
===>   arduino16-1.6.12_4 depends on file: /usr/local/openjdk8/bin/java 
- not found
===>  openjdk8-8.112.16 is only for amd64 armv6 i386, while you are running
x86_64.
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/java/openjdk8
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/arduino16
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/arduino16

Machine is FreeBSD 10.3-RELEASE-p11 #0: Mon Oct 24 18:49:24 UTC 2016 
GENERIC amd64

Building openjdk8 by itself does not give the error: openjdk8-8.112.16 
is only for amd64 armv6 i386, while you are running x86_64.

Dmesg:

CPU: AMD Athlon(tm) II X2 250 Processor (3013.68-MHz K8-class CPU)
   Origin="AuthenticAMD"  Id=0x100f62  Family=0x10  Model=0x6 Stepping=2
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,S
   Features2=0x802009<SSE3,MON,CX16,POPCNT>
   AMD 
Features=0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!>
   AMD 
Features2=0x37ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT>
   SVM: NP,NRIP,NAsids=64
   TSC: P-state invariant
real memory  = 17179869184 (16384 MB)
avail memory = 16590544896 (15821 MB)

If you need more info let me know.

Thank you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cc286a44-22fc-74c2-e3ec-e5b51c16ca1d>