[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Unknown opcode error



Michal

Not a problem but I hope everyone accept work around solutions for a
first pass on the ports I working. As time permits, I plan to revisit
each port to clean things up.

The following lists what I'm trying to port and status. Please excuse
being spammed by this list but it might be of interest to someone.
1. iproute2 - ip with MPLS-Linux patches compiles, links and runs. TC
has not been ported yet. ip command testing is on going
2. sofia-sip - hand edited Makefiles, aka things like CC = gcc changed
to CC = mb-linux-gcc and library links hard coded by the application I
wrote which used the libraries. Test on going.
3. mysql - compiles but doesn't seem to work at runtime, debugging on
going.
4. OpenSSL - compiles but has linking issues. FYI, this is need to by
OpenVPN, the real goal.
5. libxml2 - compiling and linking issues. I probably need to review
the quick and dirty method for editing the original Makefiles which
could mean recreating the files altogether.
6. Kernel has been patched with James Leu's MPLS-linux patches.
Compiles and runs but real testing is still required.

To get sofia-sip to compile and link, pretty much everything was done by
hard editing. So far this brute force method isn't working as easily
for the other apps since their Makefiles are more complex.
I have a stack of notes on how I'm getting some of this to work. Would
it be useful to put them into an email to the list here or wait until
things are cleaned up?
Is there a HOWTO on what to edit to add libraries and/or user apps so
they show up with make menuconfig? I never found one and could put
something together if its wanted.

...chris

Michal Simek wrote:
> Hi Chris,
>
>
>> Michal
>>
>> Well, its Newbie hat back on my head again...... all you have to do is
>> run "config -no-asm". It compiles now, linking and running is still
>> being worked out, however.
>>
>
> No worries.
> If you are successful with your OpenSSL build and tests, please provide to community any manual
> how compile it.
>
> Thanks,
> Michal
>
>
>
>> ...Chris
>>
>> Michal Simek wrote:
>>
>>> Hi Chris,
>>>
>>>
>>>
>>>> How can the following error be corrected? I'm trying to port
>>>> OpenSSL-l-0.9.8b app so other apps like OpenVPN can be ported
>>>> ....Thanks....Chris
>>>>
>>>> mb-linux-gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT .
>>>> -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -Wall
>>>> -DOPENSSL_BN_ASM_PART_WORDS
>>>> -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
>>>> -c -o x86cpuid-elf.o x86cpuid-elf.s
>>>>
>>>> x86cpuid-elf.s: Assembler messages:
>>>> x86cpuid-elf.s:13: Error: unknown opcode "pushl"
>>>> x86cpuid-elf.s:25: Error: unknown opcode "pushfl"
>>>> x86cpuid-elf.s:26: Error: unknown opcode "popl"
>>>> x86cpuid-elf.s:27: Error: unknown opcode "xorl"
>>>> x86cpuid-elf.s:28: Error: unknown opcode "btl"
>>>> x86cpuid-elf.s:29: Error: unknown opcode "jnc"
>>>> x86cpuid-elf.s:30: Error: unknown opcode "movl"
>>>>
>>>>
>>> This can be solve only by removing x86 asm code which you are trying
>>>
>> to compile with mb tools.
>>
>>> Regards,
>>> Michal
>>>
>>>
>>>
>>>> ------------------------------------------------------------------------
>>>> Express your personality in color! Preview and select themes for
>>>> Hotmail®. See how.
>>>>
>>>>
>>>>
>>>
>>
>> ------------------------------------------------------------------------
>> Hotmail® is up to 70% faster. Now good news travels really fast. Find
>> out more.
>>
>>
>
>




Hotmail® is up to 70% faster. Now good news travels really fast. Find out more.