#24 ✓resolved
Peter Johnson

cannot find modules when run from different location

Reported by Peter Johnson | June 25th, 2011 @ 07:48 PM | in 0.4.0 (closed)

Originally posted on Trac by simonjpaulger@hotmail.com
Original Trac Ticket

  Description

  @@@

Hi,
i reported another bug, #23, about the failure of yasm to compile on my system.
Well i was eager to get it running so after looking at the error with the
macros.pl file i commented out the last else statement in marcos.pl, compiled
and it works fine but with some side effects. Thus, there probably not real bugs
but ill submit them anyway.

yasm assembles some code i have written that nasm would normally assemble, does
that fine. and it also assembled some basic amd64 code that i wrote (just 1 mov
instruction), works good.

Except the program can only understand the parse option when i run yasm from
within the source directory i make'd it in (i never ran make install). If i try
to call yasm outside the source directory it complains with unknown parser 'nasm'.

The command used to assemble my current 32bit code was
'./yasm -p nasm -f elf ' the command was used inside my own install script for my own project so filename
would be substituted for every asm file i have.

the command used to assembly my example amd64 code was
./yasm -p nasm -m amd64 -f elf ~/test.asm This was done within the src dir, else the above discussed error occures.

The example 64bit code i wrote is attached.

Simon.


  
h3. Trac Attachments

h3. Trac Comments
comment:1
    
                  
                  Changed 7 years ago by simonjpaulger@hotmail.com
  Created an attachment (id=5)

x86-64 asm example code


comment:2
    
                  
                  Changed 7 years ago by simonjpaulger@hotmail.com
  Created an attachment (id=6)

The REAL x86-64 example code used - the old the 32bit example code used ;)


comment:3
    
                  
                  Changed 7 years ago by peter@tortall.net
  Yes, we are aware of this problem.  It's due to the way libtool and the dynamic

library loader libltdl look for loadable modules. I've tried looking at fixing
this before, but have not yet found a solution.

There are two possible workarounds: run "make install" or build yasm statically
(with modules built into the main executable) by running "./configure --disable-shared" (rather than just ./configure) before building with make.

  comment:3

              Changed 7 years ago by peter@tortall.net

  Status
    changed from new to assigned

  Component
    changed from core to build tools / libraries

  Summary
    changed from yasm preprocessor to cannot find modules when run from different location

  Yes, we are aware of this problem.  It's due to the way libtool and the dynamic

library loader libltdl look for loadable modules. I've tried looking at fixing
this before, but have not yet found a solution.

There are two possible workarounds: run "make install" or build yasm statically
(with modules built into the main executable) by running "./configure --disable-shared" (rather than just ./configure) before building with make.

  Status
    changed from new to assigned

  Component
    changed from core to build tools / libraries

  Summary
    changed from yasm preprocessor to cannot find modules when run from different location

comment:4
    
                  
                  Changed 7 years ago by peter@tortall.net
  Fixed in CVS as of yasm.c rev 1.113.

  comment:4

              Changed 7 years ago by peter@tortall.net

  Status
    changed from assigned to resolved

  Resolution
    set to fixed

  Fixed in CVS as of yasm.c rev 1.113.

  Status
    changed from assigned to resolved

  Resolution
    set to fixed

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket

Pages