Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
50 user(s) are online (43 user(s) are browsing Forums)

Members: 1
Guests: 49

Amigafreak02, more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 3 4 5 (6) 7 8 »
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Quite a regular
Quite a regular


See User information
@MickJT

"you should only have to create /usr/local/amiga, and not any adtools directory inside that. Then, a directory symlink called "adtools" can be made there pointing to the original location."

Ah, interesting.

But if i don't create the inner directory /usr/local/amiga/adtools i can't execute the command:

sudo mkdir /usr/local/amiga
sudo chown <your-uwin-username>:users /usr/local/amiga
sudo chown <your-uwin-username>:users /usr/local/amiga/adtools

it gives me an error.

Retired
Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Home away from home
Home away from home


See User information
@AmigaBlitter

Quote:

But if i don't create the inner directory /usr/local/amiga/adtools i can't execute the command:

sudo mkdir /usr/local/amiga
sudo chown <your-uwin-username>:users /usr/local/amiga
sudo chown <your-uwin-username>:users /usr/local/amiga/adtools



Well it would because you haven't got a "/usr/local/amiga/adtools" until after you create the link.

sudo mkdir /usr/local/amiga
sudo ln 
-/usr/local/amiga/adtools-ppc-uwin64-20170623-404 /usr/local/amiga/adtools
sudo chown 
<your-uwin-username>:users /usr/local/amiga
sudo chown 
<your-uwin-username>:users /usr/local/amiga/adtools


Would be error free.

But before go down that route and try and redo that list /usr/local/amiga to see what is really there, if you have directory or a link.

ie do

ls -l /usr/local/amiga


then see if you can list /usr/local/amiga/adtools itself and see if it contains what you expect.



Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Quite a regular
Quite a regular


See User information
@broadblues


sudo chown amidev:users /usr/local/amiga/adtools
chown: cannot dereference '/usr/local/amiga/adtools': No such file or directory

the directory must exist before chown

Retired
Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Just can't stay away
Just can't stay away


See User information
My guess is that being a symlink, it'd be inheriting the permissions from the real location, and if you want to change the ownership, you need to change it at that location.

Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Home away from home
Home away from home


See User information
@amigablitter

Quote:


sudo chown amidev:users /usr/local/amiga/adtools
chown: cannot dereference '/usr/local/amiga/adtools': No such file or directory

the directory must exist before chown


No you misinterpret the error there, it saying it can't derefence the link /usr/local/amiga/adtools, not that link doesn't exist

This means the target of the link is broken. If you have colour enabled and you list the /usr/local/amiga/adtools with

ls -l /usr/local/amiga/adtools

it will likely show in black and red reverse field to show a broken link.

Either you mistyped the target or the target does not exist.

Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Quite a regular
Quite a regular


See User information
@broadblues

I tried this the way you've suggested:

Quote:
sudo mkdir /usr/local/amiga sudo ln -s /usr/local/amiga/adtools-ppc-uwin64-20170623-404 /usr/local/amiga/adtools sudo chown <your-uwin-username>:users /usr/local/amiga sudo chown <your-uwin-username>:users /usr/local/amiga/adtools


In this case compilation line fails.

If i first create the directories and then i issue the command: ln -s /usr/local/amiga/adtools-ppc-uwin64-20170623-404 /usr/local/amiga

the compilation goes OK, but the wrong compiler is picked.

Retired
Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Home away from home
Home away from home


See User information
@AmigaBlitter

Quote:

In this case compilation line fails.

If i first create the directories and then i issue the command: ln -s /usr/local/amiga/adtools-ppc-uwin64-20170623-404 /usr/local/amiga

the compilation goes OK, but the wrong compiler is picked.


Which compilation line?

And note that should be

ln -s /usr/local/amiga/adtools-ppc-uwin64-20170623-404 /usr/local/amiga/adtools


Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Just can't stay away
Just can't stay away


See User information
@AmigaBlitter

Quote:
If i first create the directories and then i issue the command: ln -s /usr/local/amiga/adtools-ppc-uwin64-20170623-404 /usr/local/amiga


Whoa hold on here. That would make "amiga" inside /usr/local, point to "/usr/local/amiga/adtools-ppc-uwin64-20170623-404".

That's impossible, because you're asking it to make a link "amiga" in /usr/local, called "amiga", to a directory inside /usr/local/amiga.

Whenever you're using "ln -s" you need to make sure the target link does not already exist as a real directory.

Take a look at broadblues line again:

sudo ln -s /usr/local/amiga/adtools-ppc-uwin64-20170623-404 /usr/local/amiga/adtools

That's saying make a link (fake directory) called "adtools" inside "/usr/local/amiga", that points to the real directory /usr/local/amiga/adtools-ppc-uwin64-20170623-404

That should work fine so long as "adtools" doesn't exist in /usr/local/amiga at the time you run the "ln -s" command.

It might be worthwhile uploading your ~/.bashrc and we can take a look (make sure it's the one in ~/ and not anywhere else).

Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Just popping in
Just popping in


See User information
It may be that you need to execute:

sudo ln -s /usr/local/amiga/adtools-ppc-uwin64-20170623-404 /usr/local/amiga/adtools

to create the "adtools" symlink only after the toolchain build process has completed; just to ensure the top-level adtools-ppc-... directory has been created.

Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Quite a regular
Quite a regular


See User information
@broadblues

Sorry, i mean: sudo ln -s /usr/local/amiga/adtools-ppc-uwin64-20170623-404 /usr/local/amiga/adtools


The compile line is the: make -C native-build gcc-cross CROSS_PREFIX=/usr/local/amiga/adtools-ppc-uwin64-20170623-404

Can't post the exact error , i uninstalled the enviroment...

but i think i can replicate it.

Thank you all


Edited by AmigaBlitter on 2017/11/28 18:43:42
Retired
Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Quite a regular
Quite a regular


See User information
@stonecracker

Please check if this is ok:

ls -hal /usr/local/amiga/adtools/bin
total 37M
drwxr
-xr-x 0 root root  512 Nov 25 20:03 .
drwxr-xr-x 0 root root  512 Nov 25 20:47 ..
-
rwxr-xr-x 1 root root 1.1M Nov 25 19:26 ppc-amigaos-addr2line
-rwxr-xr-x 2 root root 1.1M Nov 25 19:26 ppc-amigaos-ar
-rwxr-xr-x 2 root root 1.6M Nov 25 19:26 ppc-amigaos-as
-
rwxr-xr-x 2 root root 3.1M Nov 25 20:03 ppc-amigaos-c++
-
rwxr-xr-x 1 root root 1.1M Nov 25 19:26 ppc-amigaos-c++filt
-rwxr-xr-x 1 root root 3.1M Nov 25 20:03 ppc-amigaos-cpp
-rwxr-xr-x 1 root root  38K Nov 25 19:26 ppc-amigaos-elfedit
-rwxr-xr-x 2 root root 3.1M Nov 25 20:03 ppc-amigaos-g++
-
rwxr-xr-x 2 root root 3.1M Nov 25 20:03 ppc-amigaos-gcc
-rwxr-xr-x 2 root root 3.1M Nov 25 20:03 ppc-amigaos-gcc-5.4.0
-rwxr-xr-x 1 root root 148K Nov 25 20:03 ppc-amigaos-gcc-ar
-rwxr-xr-x 1 root root 148K Nov 25 20:03 ppc-amigaos-gcc-nm
-rwxr-xr-x 1 root root 148K Nov 25 20:03 ppc-amigaos-gcc-ranlib
-rwxr-xr-x 1 root root 2.0M Nov 25 20:03 ppc-amigaos-gcov
-rwxr-xr-x 1 root root 2.0M Nov 25 20:03 ppc-amigaos-gcov-tool
-rwxr-xr-x 1 root root 1.1M Nov 25 19:26 ppc-amigaos-gprof
-rwxr-xr-x 4 root root 1.4M Nov 25 19:26 ppc-amigaos-ld
-rwxr-xr-x 4 root root 1.4M Nov 25 19:26 ppc-amigaos-ld.bfd
-rwxr-xr-x 2 root root 1.1M Nov 25 19:26 ppc-amigaos-nm
-rwxr-xr-x 2 root root 1.3M Nov 25 19:26 ppc-amigaos-objcopy
-rwxr-xr-x 2 root root 1.6M Nov 25 19:26 ppc-amigaos-objdump
-rwxr-xr-x 2 root root 1.1M Nov 25 19:26 ppc-amigaos-ranlib
-rwxr-xr-x 1 root root 481K Nov 25 19:26 ppc-amigaos-readelf
-rwxr-xr-x 1 root root 1.1M Nov 25 19:26 ppc-amigaos-size
-rwxr-xr-x 1 root root 1.1M Nov 25 19:26 ppc-amigaos-strings
-rwxr-xr-x 2 root root 1.3M Nov 25 19:26 ppc-amigaos-strip


ls -hal /usr/local/amiga
total 0
drwxr
-xr-x 0 amidev users 512 Nov 25 20:07 .
drwxr-xr-x 0 root   root  512 Nov 24 23:25 ..
lrwxrwxrwx 1 root   root   48 Nov 25 20:07 adtools -> /usr/local/amiga/adtools-ppc-uwin64-20170623-404
drwxr
-xr-x 0 root   root  512 Nov 25 20:47 adtools-ppc-uwin64-20170623-404


ls -hal /usr/local/amiga/adtools
lrwxrwxrwx 1 root root 48 Nov 25 20
:07 /usr/local/amiga/adtools -> /usr/local/amiga/adtools-ppc-uwin64-20170623-404


ls -hal /usr/local/amiga/adtools-ppc-uwin64-
20170623-404
total 0
drwxr
-xr-x 0 root   root  512 Nov 25 20:47 .
drwxr-xr-x 0 amidev users 512 Nov 25 20:07 ..
lrwxrwxrwx 1 root   root   47 Nov 25 20:46 adtools-ppc-cyg64-20170623-404 -> /usr/local/amiga/adtools-ppc-cyg64-20170623-404
lrwxrwxrwx 1 root   root   48 Nov 25 20
:47 adtools-ppc-uwin64-20170623-404 -> /usr/local/amiga/adtools-ppc-uwin64-20170623-404
drwxr
-xr-x 0 root   root  512 Nov 25 20:03 bin
drwxr
-xr-x 0 root   root  512 Nov 25 20:03 include
drwxr-xr-x 0 root   root  512 Nov 25 20:03 lib
drwxr
-xr-x 0 root   root  512 Nov 25 20:03 libexec
drwxr
-xr-x 0 root   root  512 Nov 25 20:03 ppc-amigaos
drwxr
-xr-x 0 root   root  512 Nov 25 20:04 share

Retired
Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Quite a regular
Quite a regular


See User information
@stonecracker


about the erroneously added:

lrwxrwxrwx 1 root   root   47 Nov 25 20:46 adtools-ppc-cyg64-20170623-404 -> /usr/local/amiga/adtools-ppc-cyg64-20170623-404


i already unlinked it

Retired
Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Quite a regular
Quite a regular


See User information
@thread

Anyone else successfully installed the UWin enviroment. I would like to compare the PATH and some other settings.


Retired
Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Home away from home
Home away from home


See User information
@AmigaBlitter

Did you try my suggestion in this post? I get the feeling that one got buried too quickly and might have been missed. The Skype entry in PATH has space characters in it, and precedes your adtools entries. We already know that GCC build tools can have trouble with spaces in paths, so it's entirely possible that those spaces are confusing the configuration script.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Quite a regular
Quite a regular


See User information
@Hans

Thank you, Hans. I will try as you suggested.

Retired
Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Quite a regular
Quite a regular


See User information
@Hans

tried, same results

Retired
Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Quite a regular
Quite a regular


See User information
@stonecracker

post #1 from stonecracker:

export PATH=$PATH:~/adtools/bin:/usr/local/amiga/adtools/bin

DStastny @ post #6

export PATH=$PATH:~/adtools/bin:/usr/local/amiga/adtools-ppc-uwin-20170623-404/bin
(which in my case should be: export PATH=$PATH:~/adtools/bin:/usr/local/amiga/adtools-ppc-uwin64-20170623-404/bin)

which one should be added, the first, the second or both?

Retired
Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Just can't stay away
Just can't stay away


See User information
I logged into AmigaBlitter's computer remotely and fixed it up.

It all seemed to be related to file permissions. If you use sudo in places where it's not needed, it might extract or copy files fine but with root permissions only. A few uses of chown and chmod here and there and it's all sorted :)

One thing that's interesting with the "Windows Subsystem for Linux" (isn't that backwards?) is that although I could see the directory structure in %LOCALAPPDATA%\lxss, anything I copied in the seemingly correct locations were not visible in the bash terminal. Copying the files from /mnt/c using the bash terminal worked fine.

Relevant:

https://superuser.com/questions/108396 ... g-files-outside-of-ubuntu
https://blogs.msdn.microsoft.com/comma ... g-windows-apps-and-tools/
https://blogs.msdn.microsoft.com/wsl/2 ... /wsl-file-system-support/

Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Quite a regular
Quite a regular


See User information
@MickJT

I big thank you to Michael, really.

Realized at least that installation worked. The problem, as Michael said, was related to permission.

Michael is a Guru (that meditates) on everything related configurations, libraries and so on...

Thank you again


Retired
Go to top
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
Home away from home
Home away from home


See User information
@MickJT

Yay! Nicely done.

Really glad that it's finally solved.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top

  Register To Post
« 1 ... 3 4 5 (6) 7 8 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project